調整如下,僅供參考
DIFF1:=EMA(CLOSE,16) - EMA(CLOSE,58),COLORWHITE;
DEA1:=EMA(DIFF1,88),COLORYELLOW;
MACD1:2*(DIFF1-DEA1)*100,COLORWHITE;
MAMACD1:MA(MACD1,5),COLORRED;
DIFF:=EMA(CLOSE,8) - EMA(CLOSE,26),COLORWHITE;
DEA:=EMA(DIFF,50),COLORYELLOW;
MACD:2*(DIFF-DEA)*100 ,LINETHICK1,COLOR00FFFF;
MAMACD:MA(MACD,5),LINETHICK1,COLORFFFF00;
STICKLINE1(MACD1<MAMACD1,0,MACD1,1,0),COLORGREEN;
STICKLINE1(MACD>MAMACD,MACD1*0.6,0,1,0),COLORYELLOW;
STICKLINE1(MACD<0,MAMACD,MACD1,1,0),COLORGREEN;
STICKLINE1(MACD1>MAMACD1 AND MACD>MAMACD ,0,MACD1,1,0),COLORRED;