MA7:EMA(CLOSE,7),COLORFFFFFF;
MID:MA(CLOSE,20),COLORYELLOW;
UPPER:MID+2*STD(CLOSE,20),COLORRED,DOTLINE;
LOWER:MID-2*STD(CLOSE,20),COLORGREEN,DOTLINE;
{
选股公式:
MA7:=EMA(CLOSE,7);
MID:=MA(CLOSE,20);
UPPER:=MID+2*STD(CLOSE,20);
LOWER:=MID-2*STD(CLOSE,20);
XG:UPPER<REF(UPPER,1) AND LOWER>REF(LOWER,1) AND crOSS(MA7,MID);
}