操作简单,稳定复利:零轴以下出现红色就进,零轴以上出现绿色就出
DIFF1:=EMA(CLOSE,16) -
EMA(CLOSE,58);DEA1:=EMA(DIFF1,88);MACD1:2*(DIFF1-DEA1)*100,COLORFF00FF;
MAMACD1:MA(MACD1,5),COLORWHITE;DIFF:=EMA(CLOSE,8)
- EMA(CLOSE,26);DEA:=EMA(DIFF,50);
MACD:2*(DIFF-DEA)*100
;MAMACD:MA(MACD,5),COLORWHITE;
STICKLINE(MACD1<MAMACD1,0,MACD1,4,0),COLORGREEN;STICKLINE(MACD>MAMACD,MACD1*0.6,0,4,0),COLORYELLOW;
STICKLINE(MACD<0,MAMACD,MACD1,4,0),COLORGREEN;STICKLINE(MACD1>MAMACD1
AND MACD>MAMACD ,0,MACD1,4,0),COLORRED;