正点财经首页     加入收藏
指标首页 通达信指标 同花顺指标 大智慧指标 飞狐指标 指标教程 指标实战 指标百科 股市学院
指标源码搜索: 热词:买卖  黑马  K线  牛股  量能  波段  顶底  抄底  成本  逃顶  MACD  涨停  换手率
你的位置: > 正点财经 > 炒股指标公式 > 通达信指标公式 > 正文

通达信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指标公式

通达信K线+MACD指标公式

  • 风云榜
  • 总点击榜
  • 最新指标
月点击榜指标公式
更多指标百科
关于我们 | 商务合作 | 联系投稿 | 联系删稿 | 合作伙伴 | 法律声明 | 网站地图