N:=12;M:=26;
DIFF:=EMA(CLOSE,N)-EMA(CLOSE,M);
DEA:=EMA(DIFF,9);
指导线:MA(C,8),COLORRED,LINETHICK2;
趋势线:MA(C,21),COLORYELLOW,LINETHICK2;
多头:STICKLINE(DIFF>DEA,C,O,3,-1),COLORRED;
STICKLINE(DIFF>DEA,H,L,0,0),COLORWHITE;
空头:STICKLINE(DIFF<=DEA,C,O,3,0),COLORYELLOW;
STICKLINE(DIFF<=DEA,H,L,0,0),COLORYELLOW;
DIFF1:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA1:=EMA(DIFF1,9);
多头1:STICKLINE(DIFF1>DEA1,C,O,3,0),COLORRED;
STICKLINE(DIFF>DEA1,H,L,0,0),COLORRED;
E(DIFF1<=DEA1,C,O,3,1),COLORGREEN;
STICKLINE(DIFF1<=DEA1,H,L,0,1),COLORGREEN; |