通达信K线+MACD指标公式
- 指标类别: 通达信指标公式
- 授权方式: 免费版
- 指标评级: ★★★★★
- 指标分类: 趋势
- 画线方法: 副图
- 日期:2024-06-14 来源:互联网
通达信K线+MACD指标公式:
DIFF : EMA(CLOSE,12) - EMA(CLOSE,26);
DEA : EMA(DIFF,9);
MACD : 2*(DIFF-DEA);
STICKLINE(MACD>0,MACD,0,0.5,1),COLORRED;
STICKLINE(MACD<0,MACD,0,0.5,1),COLORGREEN;
STICKLINE(MACD>0 AND MACD<REF(MACD,1),MACD,0,0.5,1),COLORWHITE;
STICKLINE(MACD<0 AND MACD>REF(MACD,1),MACD,0,0.5,1),COLORFF00FF;
绿柱面积:IF (MACD<0,SUM(MACD,BARSLAST(MACD>0)),0),NODRAW,COLORGREEN;
红柱面积:IF (MACD>0,SUM(MACD,BARSLAST(MACD<0)),0),NODRAW,COLORRED;
DRAWTEXT(CROSS(DIFF,80),DIFF,'强'),COLORRED;
DRAWTEXT(CROSS(-80,DIFF),DIFF,'弱'),COLORGREEN;
DRAWTEXT(CROSS(DIFF,-80),DIFF,'强'),COLORRED;
DRAWTEXT(CROSS(80,DIFF),DIFF,'弱'),COLORGREEN;
DRAWTEXT(CROSS(DIFF,30),DIFF,'强'),COLORRED;
DRAWTEXT(CROSS(-30,DIFF),DIFF,'弱'),COLORGREEN;
DRAWTEXT(CROSS(DIFF,-30),DIFF,'强'),COLORRED;
DRAWTEXT(CROSS(30,DIFF),DIFF,'弱'),COLORGREEN;
DRAWTEXT(CROSS(DIFF,50),DIFF,'强'),COLORRED;
DRAWTEXT(CROSS(-50,DIFF),DIFF,'弱'),COLORGREEN;
DRAWTEXT(CROSS(DIFF,-50),DIFF,'强'),COLORRED;
DRAWTEXT(CROSS(50,DIFF),DIFF,'弱'),COLORGREEN;
DRAWTEXT(CROSS(DIFF,80),DIFF,'强'),COLORRED;
DRAWTEXT(CROSS(-8,DIFF),DIFF,'弱'),COLORGREEN;
DRAWTEXT(CROSS(DIFF,-8),DIFF,'强'),COLORRED;
DRAWTEXT(CROSS(8,DIFF),DIFF,'弱'),COLORGREEN;
DRAWTEXT(CROSS(DIFF,5),DIFF,'强'),COLORRED;
DRAWTEXT(CROSS(-50,DIFF),DIFF,'弱'),COLORGREEN;
DRAWTEXT(CROSS(DIFF,-5),DIFF,'强'),COLORRED;
DRAWTEXT(CROSS(5,DIFF),DIFF,'弱'),COLORGREEN;
DRAWTEXT(CROSS(DIFF,3),DIFF,'强'),COLORRED;
DRAWTEXT(CROSS(-3,DIFF),DIFF,'弱'),COLORGREEN;
DRAWTEXT(CROSS(DIFF,-3),DIFF,'强'),COLORRED;
DRAWTEXT(CROSS(3,DIFF),DIFF,'弱'),COLORGREEN;
DRAWTEXT(CROSS(DIFF,10),DIFF,'强'),COLORRED;
DRAWTEXT(CROSS(-10,DIFF),DIFF,'弱'),COLORGREEN;
DRAWTEXT(CROSS(DIFF,-10),DIFF,'强'),COLORRED;
DRAWTEXT(CROSS(10,DIFF),DIFF,'弱'),COLORGREEN;
DRAWTEXT(CROSS(DIFF,1),DIFF,'强'),COLORRED;
DRAWTEXT(CROSS(-1,DIFF),DIFF,'弱'),COLORGREEN;
DRAWTEXT(CROSS(DIFF,-1),DIFF,'强'),COLORRED;
DRAWTEXT(CROSS(1,DIFF),DIFF,'弱'),COLORGREEN;
DRAWTEXT(CROSS(DIFF,2),DIFF,'强'),COLORRED;
DRAWTEXT(CROSS(-2,DIFF),DIFF,'弱'),COLORGREEN;
DRAWTEXT(CROSS(DIFF,-2),DIFF,'强'),COLORRED;
DRAWTEXT(CROSS(2,DIFF),DIFF,'弱'),COLORGREEN;
DRAWTEXT(CROSS(DIFF,20),DIFF,'强'),COLORRED;
DRAWTEXT(CROSS(-20,DIFF),DIFF,'弱'),COLORGREEN;
DRAWTEXT(CROSS(DIFF,-20),DIFF,'强'),COLORRED;
DRAWTEXT(CROSS(20,DIFF),DIFF,'弱'),COLORGREEN;
通达信K线+MACD指标公式实例图解:
通达信K线+MACD指标公式