欢迎来到 -欧意ok交易所!
首页 >> 股票知识>macd的三种指标背离源码(MACD柱线与K线背离指标源码)

macd的三种指标背离源码(MACD柱线与K线背离指标源码)

股票知识 2023-07-09 18:01:322互联网彩云红
【导读】 Q1:求通达信中把MACD顶底背离信号叠加到分时主图上的公式源码 顶背离,你要确定一下是,dif的背离,还是,dea线的背离,还是macd柱子高低的背离.提示方式是画线提示还是文字提示还是图标提示例如下图中的是划线提示的 Q2:有谁能给我编写个cci、macd、kdj三个指标共同底背离,通达信

macd的三种指标背离源码(MACD柱线与K线背离指标源码)-图1

Q1:求通达信中把MACD顶底背离信号叠加到分时主图上的公式源码

顶背离,你要确定一下是,dif的背离,还是,dea线的背离,还是macd柱子高低的背离.提示方式是画线提示还是文字提示还是图标提示例如下图中的是划线提示的

Q2:有谁能给我编写个cci、macd、kdj三个指标共同底背离,通达信能用的选股公式,谢谢

底背离:REF(CLOSE,t+1)>CLOSEANDk>REF(k,t+1)ANDCROSS(k,D);...

Q3:macd指标背离选股公式?

觉得股市不是用公式的地方,有资金流入,有成交量就是好股,但是一定要在底部。

Q4:求指标编辑高手指导,MACD背离程序,思路如下:

DIFF:EMA(CLOSE,12)-EMA(CLOSE,27);DEA:EMA(DIFF,9);MACD:2*(DIFF-DEA),COLORSTICK,LINETHICK2;低位金叉:=CROSS(DIFF,DEA)ANDDIFF<-0.1;STICKLINE(低位金叉,0,0.08,6,0),COLORYELLOW;DRAWTEXT(低位金叉,0.16,'低位金叉'),COLORWHITE;JCCOUNT:=COUNT(CROSS(DIFF,DEA),BARSLAST(DEA>=0));二次金叉:=CROSS(DIFF,DEA)ANDDEA<0ANDCOUNT(JCCOUNT=2,21)=1;STICKLINE(二次金叉,0,0.06,6,0),COLORFF00FF;DRAWICON(二次金叉,DEA*0.9,1);DRAWTEXT(二次金叉,0.2,'二次金叉'),COLORYELLOW;A1:=BARSLAST(REF(CROSS(DIFF,DEA),1));底背离:=REF(CLOSE,A1+1)>CLOSEANDDIFF>REF(DIFF,A1+1)ANDCROSS(DIFF,DEA);STICKLINE(底背离,0,0.03,6,0),COLOR00FF00;底背:DRAWLINE(A1=0,DEA,底背离,DEA,0),COLORRED,LINETHICK4;DRAWTEXT(底背离,0.12,'底背离'),COLORFF00FF;A2:=BARSLAST(REF(CROSS(DEA,DIFF),1));顶背离:=REF(CLOSE,A2+1)<CLOSEANDREF(DIFF,A2+1)>DIFFANDCROSS(DEA,DIFF);顶背:DRAWLINE(A2=0,DEA,顶背离,DEA,0),COLORGREEN,LINETHICK4;DRAWTEXT(低位金叉AND二次金叉AND底背离,0.25,'三全项'),COLOR0000FF,LINETHICK2;

Q5:请高手编写个通达信的简单公式:MACD红绿柱子背离

MACD顶底背离(同时包含KDJ背离,RSI背离)公式如下:DIFF:EMA(CLOSE,12)-EMA(CLOSE,26);DEA:EMA(DIFF,9);MACD:2*(DIFF-DEA),COLORSTICK;A1:=BARSLAST(REF(CROSS(DIFF,DEA),1));B1:=REF(C,A1+1)>CANDREF(DIFF,A1+1)<DIFFANDCROSS(DIFF,DEA);A2:=BARSLAST(REF(CROSS("KDJ.K"(9,3,3),"KDJ.D"(9,3,3)),1));B2:=REF(C,A2+1)>CANDREF("KDJ.K"(9,3,3),A2+1)<"KDJ.K"(9,3,3)ANDCROSS("KDJ.K"(9,3,3),"KDJ.D"(9,3,3));A3:=BARSLAST(REF(CROSS("RSI.RSI1"(6,12,24),"RSI.RSI2"(6,12,24)),1));B3:=REF(C,A3+1)>CANDREF("RSI.RSI1"(6,12,24),A3+1)<"RSI.RSI1"(6,12,24)ANDCROSS("RSI.RSI1"(6,12,24),"RSI.RSI2"(6,12,24));C1:=BARSLAST(REF(CROSS(DEA,DIFF),1));D1:=REF(C,C1+1)<CANDREF(DIFF,C1+1)>DIFFANDCROSS(DEA,DIFF);C2:=BARSLAST(REF(CROSS("KDJ.D"(9,3,3),"KDJ.K"(9,3,3)),1));D2:=REF(C,C2+1)<CANDREF("KDJ.K"(9,3,3),C2+1)>"KDJ.K"(9,3,3)ANDCROSS("KDJ.D"(9,3,3),"KDJ.K"(9,3,3));C3:=BARSLAST(REF(CROSS("RSI.RSI2"(6,12,24),"RSI.RSI1"(6,12,24)),1));D3:=REF(C,C3+1)<CANDREF("RSI.RSI1"(6,12,24),C3+1)>"RSI.RSI1"(6,12,24)ANDCROSS("RSI.RSI2"(6,12,24),"RSI.RSI1"(6,12,24));MACD底背:IF(B1>0,-0.1,0),COLORRED,POINTDOT;KDJ底背:IF(B2>0,-0.1,0),COLORFF00FF,POINTDOT;RSI底背:IF(B3>0,-0.1,0),COLORYELLOW,POINTDOT;MACD顶背:IF(D1>0,0.1,0),COLOR00FF00,POINTDOT;KDJ顶背:IF(D2>0,0.1,0),COLORFFCC66,POINTDOT;RSI顶背:IF(D3>0,0.1,0),COLORWHITE,POINTDOT;STICKLINE(B1>0,-0.1,0,2,0),COLORRED;STICKLINE(B2>0,-0.1,0,2,0),COLORFF00FF;STICKLINE(B3>0,-0.1,0,2,0),COLORYELLOW;STICKLINE(D1>0,0.1,0,2,0),COLOR00FF00;STICKLINE(D2>0,0.1,0,2,0),COLORFFCC66;STICKLINE(D3>0,0.1,0,2,0),COLORWHITE;

Q6:哪位老师有通达信MACD柱体背离的指标公式分享一个,真心感谢

偷懒,前一位弄的公式,给更正一下,其他内容纹丝没动。DIFF:=EMA(CLOSE,12)-EMA(CLOSE,26);DEA:=EMA(DIFF,9);MACD:=2*(DIFF-DEA);DD:=C=HHV(C,180);EE:=DEA<REF(DEA,1)ANDREF(DEA<REF(DEA,1),1)=1;CC:=C>REF(C,1)ANDREF(C>REF(C,1),1)=1;FF:=C=LLV(C,180);GG:=DEA>REF(DEA,1)ANDREF(DEA>REF(DEA,1),1)=1;LL:=C<REF(C,1)ANDREF(C<REF(C,1),1)=1;底背离:(FFANDGGANDDEA>LLV(DEA,180))*DEA;

Q7:macd如何判断背离

DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);DEA:=EMA(DIF,9);MACD:=(DIF-DEA)*2;背离是MACD与股价的发展方向是相对的,也可以说是背道而驰的。

网站声明:本文“macd的三种指标背离源码(MACD柱线与K线背离指标源码)”文章内容来源于互联网整理,以学习为目的,不拥有所有权,不承担相关法律责任如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件至 1150287142@qq.com 举报,一经查实,本站将立刻删除。

欧意ok交易所汇集了几乎全部的期货交易知识、期货实用操作技巧以及股票入门基础知识等内容应有尽有,让您寻找相关的期货交易知识轻而易举!

Copyright @ 2023 欧意ok交易所知识分享助你重塑交易认知! 版权所有 备案号:粤ICP备2023010256号

联系QQ: 951153822 邮箱地址:951153822@qq.com XML地图