DIFF :=(EMA(CLOSE,12) - EMA(CLOSE,26));
DEA := EMA(DIFF,5);
macd :=2*(DIFF-DEA);
gj:=MAX(C,O);
STICKLINE(MacD>0 AND MACD>=REF(MACD,1),0,MACD,9,0),color0000FF;
STICKLINE(MACD>0 AND MACD
STICKLINE(MACD<0 AND MACD>=REF(MACD,1),0,MACD,9,0),colorFF8800;
STICKLINE(MACD<0 AND MACD
OSC:=100*(CLOSE-MA(CLOSE,11.5));
MaoSC:=EMA(OSC,4.5);
STICKLINE(MACD
//{ _同花顺股票指标公式}
STICKLINE(MACD>REF(MACD,1)AND CROSS(OSC,MAOSC),0,MACD,5,0),COLOR09FFFF;
F1:=zig(5,20);
DRAWICON(CROSS(DIFF,DEA) AND F1> REF(F1,1),DEA,'卖');
DRAWICON(CROSS(DEA,DIFF),DEA,'买');