通达信MACD起涨指标公式

 

SHORT:=12;
LONG:=27;
MID:=9;
DIFF:=EMA(CLOSE,SHORT)-EMA(CLOSE,LONG);
DEA:=EMA(DIFF,MID);
macd:=2*(DIFF-DEA);
MacD上拐:= REF(MACD,1)<REF(MACD,2) AND REF(MACD,1)<MACD AND REF(DIFF,1)<REF(DIFF,2);
MACD下拐:= REF(MACD,1)>REF(MACD,2) AND REF(MACD,1)>MACD;
DIFF上拐:={REF(DIFF,4)<REF(DIFF,3) AND REF(DIFF,3)<REF(DIFF,2) AND} REF(DIFF,1)<REF(DIFF,2) AND REF(DIFF,1)<DIFF;
DIFF短调再上:={REF(DIFF,4)<REF(DIFF,3) AND} REF(DIFF,3)<REF(DIFF,2) AND REF(DIFF,1)<REF(DIFF,2) AND REF(DIFF,1)<DIFF;
DIFF在DEA上:={REF(DEA,4)<REF(DIFF,4) AND} REF(DEA,3)<REF(DIFF,3) AND REF(DEA,2)<REF(DIFF,2) AND REF(DEA,1)<REF(DIFF,1) AND DEA<DIFF;
放量起涨:= V>REF(V,1)*1.618;
BUYDIFF再上:IF(DIFF短调再上 {AND DIFF在DEA上} {AND 放量起涨},1,0),COLORBLUE;
BUYDIF上拐:IF(DIFF上拐 AND NOT(BUYDIFF再上),1.1,0.1),COLORRED;
BUYMACD上拐:IF(MACD上拐,2.3,1.3),COLORMAGENTA;
SELLMACD下拐:IF(MACD下拐,4,5),COLOR008000;




来函数检测结果如下
该公式没有未来函数


解密、定制、编写公式指标请联系QQ或微信同号:88652583
置顶指标

相关指标公式

SHORT赋值:12
LONG赋值:27
MID赋值:9
DIFF赋值:收盘价的SHORT日指数移动平均-收盘价的LONG日指数移动平均
DEA赋值:DIFF的MID日指数移动平均
MACD赋值:2*(DIFF-DEA)
MACD上拐赋值: 1日前的MACD<2日前的MACD AND 1日前的MACDMACD下拐赋值: 1日前的MACD>2日前的MACD AND 1日前的MACD>MACD
DIFF上拐赋值: 1日前的DIFF<2日前的DIFF AND 1日前的DIFFDIFF短调再上赋值: 3日前的DIFF<2日前的DIFF AND 1日前的DIFF<2日前的DIFF AND 1日前的DIFFDIFF在DEA上赋值: 3日前的DEA<3日前的DIFF AND 2日前的DEA<2日前的DIFF AND 1日前的DEA<1日前的DIFF AND DEA放量起涨赋值: 成交量(手)>1日前的成交量(手)*1.618
输出BUYDIFF再上:如果DIFF短调再上,返回1,否则返回0,画蓝色
输出BUYDIF上拐:如果DIFF上拐ANDNOT(BUYDIFF再上),返回1.1,否则返回0.1,画红色
输出BUYMACD上拐:如果MACD上拐,返回2.3,否则返回1.3,画洋红色
输出SELLMACD下拐:如果MACD下拐,返回4,否则返回5,COLOR008000

指标安装下载帮助  |   联系我们  |  乐淘公式网  |  公式网   |  指标公式  |   加入收藏   |  设为主页

@2005-2025 浙ICP备2024071487号-1 乐淘公式网公式网均来源互联网收集整理,如不慎侵犯了你的权益,请联系我们告知,我们将做删除处理
免责声明:乐淘公式网所有指标公式及文章由网络收集,不保障实时性和真实性, 仅供学习研究并不构成投资建议,请勿以此为依据进行股票交易,由此引起的投资亏损与本站无关。
QQ:88652583 微信 88652583
sitemap站点地图