您的位置:>股票公式>通达信指标公式> 通达信MACD短期指标公式源码详解

通达信MACD短期指标公式源码详解

2019-07-01 22:55:00 来源:通达信指标公式 本篇文章有字,看完大约需要13分钟的时间

通达信MACD短期指标公式源码详解

时间:2019-07-01 22:55:00 来源:通达信指标公式

学会这个方法,抓10倍大牛股的概率提升10倍>>

通达信MACD短期指标公式源码详解

SHORT:=12;

LONG:=26;

MID:=9;

DIFF :(EMA(C,SHORT) - EMA(C,LONG))*1000;

DEA :EMA(DIFF,MID);

MACD :2*(DIFF-DEA),COLORSTICK;

A0:=BARSLAST(REF(CROSS(DEA,0),1));

A1:=BARSLAST(CROSS(DEA,DIFF));

A2:=REF(BARSLAST(CROSS(DEA,DIFF)),A1+1);

A3:=REF(BARSLAST(CROSS(DEA,DIFF)),A2+A1+2);

A4:=REF(BARSLAST(CROSS(DEA,DIFF)),A3+A2+A1+3);

A5:=REF(BARSLAST(CROSS(DEA,DIFF)),A4+A3+A2+A1+4);

A11:=LLV(C,A1)REF(LLV(DIFF,A1+1),A1+1);

A22:=LLV(C,A1)

LLV(DIFF,A1)>REF(LLV(DIFF,A1+A2+2),A1+A2+2);

A33:=LLV(C,A1)

LLV(DIFF,A1)>REF(LLV(DIFF,A1+A2+A3+3),A1+A2+A3+3);

A44:=LLV(C,A1)

LLV(DIFF,A1)>REF(LLV(DIFF,A1+A2+A3+A4+4),A1+A2+A3+A4+4) AND A11 AND A22 AND A33;

A55:=LLV(C,A1)

LLV(DIFF,A1)>REF(LLV(DIFF,A1+A2+A3+A4+A5+5),A1+A2+A3+A4+A5+5) AND A11 AND A22 AND A33

AND A44;

DIBL:=(A11 OR A22 OR A33 OR A44 OR A55) AND DIFF<0 AND REF(COUNT(MACD<0,2)=2,1) AND CROSS(DIFF,DEA);

DIBL1:=(A11 OR A22 OR A33 OR A44 OR A55) AND DIFF<0 AND DIFFREF(DIFF,1)

AND DIFF>REF(DIFF,2);

底背离:IF(DIBL,0,DEA),COLORRED;

IF(DIFF<0 AND CROSS(DIFF,DEA) AND DIBL=0,0,DEA),COLORYELLOW;

B0:=BARSLAST(REF(CROSS(0,DEA),1));

B1:=BARSLAST(CROSS(DIFF,DEA));

B2:=REF(BARSLAST(CROSS(DIFF,DEA)),B1+1);

B3:=REF(BARSLAST(CROSS(DIFF,DEA)),B1+B2+2);

B4:=REF(BARSLAST(CROSS(DIFF,DEA)),B1+B2+B3+3);

B5:=REF(BARSLAST(CROSS(DIFF,DEA)),B1+B2+B3+B4+4);

B11:=HHV(C,B1)>REF(HHV(C,B1+1),B1+1) AND HHV(DIFF,B1)

B22:=HHV(C,B1)>REF(HHV(C,B1+B2+2),B1+B2+2) AND

HHV(DIFF,B1)

B33:=HHV(C,B1)>REF(HHV(C,B1+B2+B3+3),B1+B2+B3+3) AND

HHV(DIFF,B1)

B44:=HHV(C,B1)>REF(HHV(C,B1+B2+B3+B4+4),B1+B2+B3+B4+4) AND

HHV(DIFF,B1)

B55:=HHV(C,B1)>REF(HHV(C,B1+B2+B3+B4+B5+5),B1+B2+B3+B4+B5+5) AND

HHV(DIFF,B1)

AND B44;

DINGBL:=(B11 OR B22 OR B33 OR B44 OR B55) AND DIFF>0 AND REF(COUNT(MACD>0,2)=2,1) AND CROSS(DEA,DIFF);

DINGBL1:=(B11 OR B22 OR B33 OR B44 OR B55) AND DIFF>0 AND DEA

AND DIFF

顶背离:IF(DINGBL,0,DEA),COLORGREEN;

IF(DIFF>0 AND CROSS(DEA,DIFF) AND DINGBL=0,0,DEA),COLORBLUE;

STICKLINE(DIBL1,DIFF,DEA,2,0),COLORRED;

STICKLINE(DINGBL1,DIFF,DEA,2,0),COLORGREEN;

MB:=EMA(DIFF,20);

UB:=MB+1.9104*STD(DIFF,20),COLORYELLOW,POINTDOT;

LB:=MB-1.9104*STD(DIFF,20),COLORLIBLUE,POINTDOT;

ZJS:=HHV(DEA,B0)/2;

ZJX:=LLV(DEA,A0)/2;

IF(DEA>DIFF AND DIFF>0 ,ZJS,DRAWNULL),COLORRED;

IF(DEA


来源:通达信指标公式编辑:

阅读了该文章的用户还阅读了

热门关键词

相关阅读

为您推荐

移动平均线
MACD
老丁说股
热点题材
KDJ指标
读懂
成交量
股票技术指标
股票大盘
分时图
股市名家
概念股
缠中说禅
强势股
波段操作
股票盘口
短线炒股
股票趋势
涨停板
股票投资
长线炒股
股票问答
股票术语
财务分析
炒股软件
上证早知道
经济学术语
期货
股票黑马
股票震荡市场
理财
炒股知识
散户炒股
外汇
炒股战术
港股
基金
黄金


























































































































































































































































































































































































































































































































































































































































































相关栏目推荐

栏目导航

友情链接

网站首页
股票问答
股票术语
网站地图

copyright 2016-2024 保留所有权 免责声明:网站部分内容转载至网络,如有侵权请告知删除 友链,商务链接,投稿,广告请联系qq:253161086

保留所有权

免责声明:网站部分内容转载至网络,如有侵权请告知删除

Baidu
map