VAR1:=EMA(C,2);
MA12:=EMA(SLOPE(C,21)*20+C,42);
XG:=crOSS(VAR1,MA12);
XG1:=CROSS(MA12,VAR1);
STICKLINE(VAR1
MA1:MA(CLOSE,5);
MA2:MA(CLOSE,13);
MA3:MA(CLOSE,21),COLORFF00FF;
MA4:MA(CLOSE,34);
STICKLINE(XG,OPEN,CLOSE,2,0),COLORYELLOW;
DRAWICON(XG,LOW - 0.2,1),COLORYELLOW;
DRAWTEXT(XG,LOW - 0.8,'进攻'),COLORYELLOW;
DRAWICON(XG1,HIGH + 0.2,2),COLORFFFF00;
DRAWTEXT(XG1,HIGH + 0.8,'撤退'),COLORWHITE;
STICKLINE(XG1,OPEN,CLOSE,2,0),COLORWHITE;