DIFF:=EMA(CLOSE,12) - EMA(CLOSE,26);
DEA:=EMA(DIFF,9);
MACD:=2*(DIFF-DEA), COLORSTICK;
DRAWBAND(DIFF,RGB(255,50,0),DEA,RGB(0,255,50));
STICKLINE(MACD0,0,MACD,1,0),COLORGREEN;
STICKLINE(MACDSTICKLINE(MACD>REF(MACD,1)AND MACD,0,MACD,1,0),COLORYELLOW;
STICKLINE(MACD>REF(MACD,1)AND MACD>0,0,MACD,1,0),COLORMAGENTA;
强弱分界:0,COLORBLUE,LINETHICK2;
{股旁网-股票公式网站 }
DRAWTEXT(ISLASTBAR AND DIFF>REF(DIFF,1),DIFF,' ↑向上趋势'),COLORFFFFFF;
DRAWTEXT(ISLASTBAR AND DIFFDRAWTEXT(ISLASTBAR AND MACD>REF(MACD,1),MACD,' ↑上涨柱'),COLOR0000FF;
DRAWTEXT(ISLASTBAR AND MACD
[股票基础知识]通达信MACD强弱分柝走势指标公式
特别声明:文章内容仅供参考,不造成任何投资建议。投资者据此操作,风险自担。