源码: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; 要求:1. 7日均线上穿MID; 2. MID趋势走平或向上。 谢谢!
爱约股解答:
MA7:=EMA(CLOSE,7);
MID:=MA(CLOSE,20);
CROSS(MA7,MID) AND (MID>REF(MID,1) OR (MID-REF(MID,1))/REF(MID,1)<0.01);