MACD变色

DIF0:EMA(CLOSE,12)-EMA(CLOSE,26);
DEA0:EMA(DIF1,9);
MACD1:(DIF0-DEA0)*2,COLORSTICK;
MACD2:=EMA(MACD1,2);
STICKLINE(MACD1>MACD2 AND MACD1>0,0,MACD1,1,0),COLORRED;
STICKLINE(MACD1>MACD2 AND MACD1<0,0,MACD1,1,0),COLORGREEN;
STICKLINE(MACD1<MACD2,0,MACD1,1,0),COLORFEAA43;
STICKLINE(MACD1>=0 OR MACD1<=0,0,0,50,1),COLORFEAA43;
(0)

相关推荐