MA5:MA(CLOSE,5),colorwhite,DOTLINE;
MA10:MA(CLOSE,10),coloryellow,DOTLINE;
MA20:MA(CLOSE,20),colormagenta,DOTLINE;
//MA30:MA(CLOSE,30),colorgray,DOTLINE;
//MA60:MA(CLOSE,60),colorgray,DOTLINE;
//MA120:MA(CLOSE,120),colorgray,DOTLINE;
MTM:=C-REF(C,1);
DX:=100*EMA(EMA(MTM,6),6)/EMA(EMA(ABS(MTM),6),6);
买:=IF(LLV(DX,2)=LLV(DX,7) AND COUNT(DX<0,2) AND CROSS(DX,MA(DX,2)),1,0),colorred,LINETHICK0;
卖:=IF(HHV(DX,2)=HHV(DX,7) AND COUNT(DX>50,2) AND CROSS(MA(DX,2),DX),1,0),COLOR00FF00,LINETHICK0;
DRAWTEXT(FILTER(买=1,5),LOW*0.97,'⊙'),colorred;
DRAWTEXT(FILTER(卖=1,1),HIGH*1.02,'^O^'),COLOR00FF00;
主力线:=EMA(C,3);
跟随主力线:=EMA(C,5);
辅助主力线:=EMA(C,7);
短线回踩支撑:=EMA(C,10);
启动线:=EMA(C,20);
SS00:=C>O AND C>REF(C,1) AND C/REF(C,1)>=1.018 AND MA(C,20)>REF(MA(C,20),2);
SS05:=CROSS(跟随主力线,短线回踩支撑) AND SS00;
SS06:=CROSS(跟随主力线,启动线) AND CROSS(主力线,启动线) AND SS00;
SS07:=CROSS(辅助主力线,短线回踩支撑) AND SS00;
TM:=SS05 OR SS06 OR SS07;
DRAWTEXT(TM,L*0.98,'□发动'),coloryellow;
DRAWTEXT_FIX(ISLASTBAR,0.05,0.02,0,'20周期均线+高低杠+红柱量'),colorwhite;