通达信MACD强弱多空分析走势指标公式
- 指标类别: 通达信指标公式
- 授权方式: 免费版
- 指标评级: ★★★★★
- 指标分类: 趋势
- 画线方法: 副图
- 日期:2020-12-18 来源:互联网
通达信MACD强弱多空分析走势指标公式:
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(MACD<REF(MACD,1)AND MACD>0,0,MACD,1,0),COLORGREEN;
STICKLINE(MACD<REF(MACD,1)AND MACD<0,0,MACD,1,0),COLORFFCC33;
STICKLINE(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 DIFF<REF(DIFF,1),DIFF,' ↓向下趋势'),COLORFFFFFF;
DRAWTEXT(ISLASTBAR AND MACD>REF(MACD,1),MACD,' ↑上涨柱'),COLOR0000FF;
DRAWTEXT(ISLASTBAR AND MACD<REF(MACD,1),MACD,' ↓下跌柱'),COLOR00FF00;
通达信MACD强弱多空分析走势指标公式实例图解:
通达信MACD强弱多空分析走势指标公式