MA8:MA(CLOSE,8),colorwhite,LINETHICK1;
MA21:MA (CLOSE,21),colormagenta,LINETHICK1;
MA60:MA(CLOSE,60),colorgreen,LINETHICK1;
买线:=EMA (C,2);
卖线:=EMA(SLOPE(C,8)*1+C,8);
BUY1:=CROSS(买线,卖线);
SEL:=CROSS(卖线,买线);DRAWTEXT(BUY1,LOW*0.95,'出击'),colorwhite,LINETHICK5;
DRAWTEXT (SEL,HIGH*1.05,'回营'),colorwhite,LINETHICK5;
STICKLINE(买线>=卖线,LOW,HIGH,0.1,0),colorred ;
STICKLINE(买线>=卖线,CLOSE,OPEN,3,3),colorred ;
STICKLINE(买线<卖线,CLOSE,OPEN,3,3),colorcyan;
STICKLINE(买线<卖线,LOW,HIGH,0.1,0),colorcyan;
STICKLINE(CROSS(买线,卖线) OR CROSS(卖线,买线),OPEN,CLOSE,2.5,0),colorwhite;