difF:=Ema(CLOSE,12)-ema(CLOSE,26);
DEA:=EMA(DIFF,9);
MA(C,8),COLORRED;
MA(C,21),COLORBLUE;
多头:STICKLINE(DIFF>DEA,C,O,8,0),COLORWHITE;
STICKLINE(DIFF>DEA,H,L,0,0),COLORWHITE;
空头:STICKLINE(DIFF<=DEA,C,O,8,0),COLORF0F000;
STICKLINE(DIFF<=DEA,H,L,0,0),COLORF0F000;
DRAWTEXT(crOSS(DIFF,DEA),L-0.2,'买入'),COLORRED;
DRAWTEXT(CROSS(DEA,DIFF),H+0.2,'卖出'),COLORCYAN;