M1:=5;
M2:=10;
M3:=20;
M4:=50;
M5:=100;
M6:=250;
EXP5:EMA(CLOSE,5);
EXP10:EMA(CLOSE,10),COLORGREEN;
EXP20:EMA(CLOSE,20),COLORRED;
EXP50:EMA(CLOSE,50),COLORFF00FF;
EXP100:EMA(CLOSE,100),COLORYELLOW;
EXP200:EMA(CLOSE,200),COLORFF0000 ;
DIFF:=EMA(CLOSE,6)-EMA(CLOSE,12);
DEA:=EMA(DIFF,9);
A:=MA(C,8),COLORRED;
B:=MA(C,21),COLORGREEN;
多头1:=STICKLINE(DIFF>DEA,C,O,3,0),COLORRED;
E:=STICKLINE(DIFF>DEA,H,L,0,0),COLORRED;
空头1:=STICKLINE(DIFF<=DEA,C,O,3,0),COLORGREEN;
F:=STICKLINE(DIFF<=DEA,H,L,0,0),COLORGREEN;
DRAWTEXT(crOSS(DIFF,DEA),L*0.999,'多'),COLORFF00FF;
DRAWTEXT(CROSS(DEA,DIFF),H*1.003,'空'),COLORYELLOW;