DIFF:=EMA(CLOSE,N)-EMA(CLOSE,M);
DEA:=EMA(DIFF,9);
MA(C,8),colorwhite;
MA(C,21),coloryellow;
多头:STICKLINE(DIFF>DEA,C,O,3,-1),colorred;
STICKLINE(DIFF>DEA,H,L,0,0),colorwhite;
空头:STICKLINE(DIFF<=DEA,C,O,3,0),colorwhite;
STICKLINE(DIFF<=DEA,H,L,0,0),colorwhite;
DRAWTEXT(CROSS(DIFF,DEA),L*0.98,'买'),coloryellow;
DRAWTEXT(CROSS(DEA,DIFF),H*1.02,'卖'),colorgreen;
DIFF1:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA1:=EMA(DIFF1,9);
MA(C,8),colorwhite;
MA(C,21),coloryellow;
多头1:STICKLINE(DIFF1>DEA1,C,O,3,0),colorred;
STICKLINE(DIFF>DEA1,H,L,0,0),colorred;
空头1:STICKLINE(DIFF1<=DEA1,C,O,3,0),coloryellow;
STICKLINE(DIFF1<=DEA1,H,L,0,0),coloryellow;
DRAWTEXT(CROSS(DIFF1,DEA1),L*0.98,'买'),colorwhite;
DRAWTEXT(CROSS(DEA1,DIFF1),H*1.02,'卖'),colorgreen;