导航:首页 > 股市基金 > macd与kd背离共振指标源码

macd与kd背离共振指标源码

发布时间:2021-03-20 07:36:39

⑴ 通达信MACD KDJ金叉共振的公式,满意答案一定重赏。

公式不是万能的,但没有公式可万万不能,主要是自己。
DIF:(EMA(CLOSE,12)-EMA(CLOSE,26))*100;
DEA:EMA(DIF,9);
MACD:(DIF-DEA)*2,COLORSTICK;
DRAWICON(CROSS(DIF,DEA),DEA,1);
DRAWICON(CROSS(DEA,DIF),DEA,2);
IF(DIF<DEA,DIF,DRAWNULL),COLORGREEN;
DD:=C=HHV(C,180);
EE:=DEA< REF(DEA,1) AND REF(DEA< REF(DEA,1),1)=1;
CC:=C> REF(C,1) AND REF(C> REF(C,1),1)=1;
顶背离:=(DD AND EE AND DEA< HHV(DEA,180))*DEA;
A2:=BARSLAST(REF(CROSS(DEA,DIF),1));
{顶背:=REF(CLOSE,A2+1)<CLOSE AND REF(DIF,A2+1)>DIF AND CROSS(DEA,DIF);}
DRAWLINE(A2=0,DEA,顶背离,DEA,0),COLORRED,LINETHICK2;
RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K:SMA(RSV,9,3),COLORYELLOW;
D:SMA(K,9,3),COLORWHITE;
J:3*K-2*D,COLORMAGENTA;
IF(J<D,J,DRAWNULL),COLORFFEE44;
A1:=BARSLAST(REF(CROSS(DIF,DEA),1));
B1:=REF(C,A1+1)>C AND REF(DIF,A1+1)<DIF AND CROSS(DIF,DEA);
A22:=BARSLAST(REF(CROSS("KDJ.K"(9,3,3),"KDJ.D"(9,3,3)),1));
B2:=REF(C,A22+1)>C AND REF("KDJ.K"(9,3,3),A22+1)<"KDJ.K"(9,3,3) AND CROSS("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)>C AND REF("RSI.RSI1"(6,12,24),A3+1)<"RSI.RSI1"(6,12,24) AND CROSS("RSI.RSI1"(6,12,24),"RSI.RSI2"(6,12,24));
DRAWTEXT(B1,DEA-0.20,'▲MACD底背'),COLORWHITE;
DRAWTEXT(B2,D-0.20,'●KDJ底背'),COLORFF00FF;
{DJ:=CROSS(J,D) AND D<20;
DRAWTEXT(DJ,J-0.3,'低金叉'),COLORCYAN;
MDJ:=CROSS(DIF,DEA) AND DEA<0;
DRAWTEXT(MDJ,DEA-0.3,'低金叉'),COLORGREEN;
DRAWTEXT(CROSS(DEA,DIF),DIF+0.3,'死叉'),COLORYELLOW;
DRAWTEXT(CROSS(D,J),J+0.3,'死叉'),COLORRED;}
A:=CROSS(DIF,DEA) AND CROSS(K,D) AND CROSS(J,D);
DRAWICON(A,LOW*0.98,1);
B4:CROSS(DIF,DEA) AND CROSS("KDJ.K"(9,3,3),"KDJ.D"(9,3,3));
DRAWTEXT(B4,L-0.20,'★金叉共振'),COLOR0099FF;
DRAWICON(CROSS(K,D),D,1);
DRAWICON(CROSS(D,K),D,2);
BA:=DEA>REF(DEA,1);
BB:=SUM(BA,5)>=4;
BC:=C<O;
BD:=SUM(BC,5)>=2;
BXG:FILTER(BB AND BD AND J>REF(J,1) AND REF(J,1)<REF(J,2),3);
STICKLINE(BXG,HHV(J,60),HHV(J,60)-20,1,0),COLORRED;

SS:=EMA(C,11);
LL:=(EMA(C,1)+EMA(C,2)+EMA(C,3)+EMA(C,5))/4;
{短:EMA(LL,2),COLORGREEN,LINETHICK2;}
{长:EMA(SS,2),COLORMAGENTA,LINETHICK2;}
AA:=(C-LLV(C,10))/(HHV(C,10)-LLV(C,10));
(CROSS(AA,0.05)-1);

⑵ 哪位老师有通达信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) AND REF(DEA< REF(DEA,1),1)=1;
CC:=C> REF(C,1) AND REF(C> REF(C,1),1)=1;
FF:=C=LLV(C,180);
GG:=DEA> REF(DEA,1) AND REF(DEA> REF(DEA,1),1)=1;
LL:=C< REF(C,1) AND REF(C< REF(C,1),1)=1;
底背离:(FF AND GG AND DEA> LLV(DEA,180))*DEA;

⑶ 求通达信公式 KD背离金叉公式 如图 万分感谢高人!

我会编,在我即可!

⑷ 请老师将MACD,KDJ,CCI,RSI四指标共振,进行选股。附图公式如下。谢谢老师。

这个公式验证了一下,没有实际的意义。劝你不要浪费精力了。

⑸ 求通达信K线和MACD背离时,MACD指标就变色或出现记号的码原。。。。

{这都是答过的问题,网上搜搜};
DIFF:EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:EMA(DIFF,9);
MACD:2*(DIFF-DEA),COLORSTICK,LINETHICK2;
A1:=BARSLAST(REF(CROSS(DIFF,DEA),1));
底背离:=REF(CLOSE,A1+1)>CLOSE AND DIFF>REF(DIFF,A1+1) AND CROSS(DIFF,DEA);
底背:DRAWLINE(A1=0,DEA,底背离,DEA,0),COLORRED,LINETHICK2;
A2:=BARSLAST(REF(CROSS(DEA,DIFF),1));
顶背离:=REF(CLOSE,A2+1)<CLOSE AND REF(DIFF,A2+1)>DIFF AND CROSS(DEA,DIFF);
顶背:DRAWLINE(A2=0,DEA,顶背离,DEA,0),COLORGREEN,LINETHICK2;

⑹ 请高手帮忙写个MACD和KDJ共振的指标,看图

看图就是花花绿绿的,没看出名堂,咋振就是共振了?还是文字说说的好,我就看见一只猫。好的,我知道了,那就是背离,指标源码呢?没有源码知道什么是背离?我要说当前价和五日线背离,你说什么意思?

⑺ 哪位大侠给下列KDJ MACD RSI三背离共振幅图做个选股公式(出现手指),谢谢!

把以上公式中的所有输出“:”后加一个“=”号,再在后面加一句
AG:MACD底背离 AND KDJ底背离 AND RSI底背离;
选股公式只能有一个输出,记住这点自己动手也不会很难的。
DIFZ:=EMA(C,12)-EMA(C,26);
DEAZ:=EMA(DIFZ,9);
MACDZ:=8*(DIFZ-DEAZ);
RSV:=((CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21)))*247.2-123.6;
SQX:=(C-MA(CLOSE,13))*10;
DIF:=EMA(MA(SQX,7),1);
DEA:=EMA(DIF,7);
MACD:=(DIF-DEA)*2;
K:=SMA(SMA( RSV,3,1),3,1),COLORWHITE;
D:=MA(EMA(K,3),3),COLORYELLOW;
J:=3*K-2*D,COLORMAGENTA;
A11:=BARSLAST(REF(CROSS(DIF,DEA),1));
B1:=REF(C,A11+1)>C AND REF(DIF,A11+1)<DIF AND CROSS(DIF,DEA);
A12:=BARSLAST(REF(CROSS("KDJ.K","KDJ.D"),1));
B2:=REF(C,A12+1)>C AND REF("KDJ.K",A12+1)<"KDJ.K" AND CROSS("KDJ.K","KDJ.D");
A13:=BARSLAST(REF(CROSS("RSI.RSI1","RSI.RSI2"),1));
B3:=REF(C,A13+1)>C AND REF("RSI.RSI1",A13+1)<"RSI.RSI1"AND CROSS("RSI.RSI1","RSI.RSI2");
C1:=BARSLAST(REF(CROSS(DEA,DIF),1));
D1:=REF(C,C1+1)<C AND REF(DIF,C1+1)>DIF AND CROSS(DEA,DIF);
C2:=BARSLAST(REF(CROSS("KDJ.D","KDJ.K"),1));
D2:=REF(C,C2+1)<C AND REF("KDJ.K",C2+1)>"KDJ.K" AND CROSS("KDJ.D","KDJ.K");
C3:=BARSLAST(REF(CROSS("RSI.RSI2","RSI.RSI1"),1));
D3:=REF(C,C3+1)<C AND REF("RSI.RSI1",C3+1)>"RSI.RSI1" AND CROSS("RSI.RSI2","RSI.RSI1");
MACD底背:=IF(B1>0,50,0),LINETHICK2,COLORRED;
KDJ底背:=IF(B2>0,65,0),LINETHICK2,COLORFF00FF;
RSI底背:=IF(B3>0,80,0),LINETHICK2,COLORYELLOW;
MACD顶背:=IF(D1>0,-50,0),LINETHICK2,COLOR00FF00;
KDJ顶背:=IF(D2>0,-65,0),LINETHICK2,COLORFFCC66;
RSI顶背:=IF(D3>0,-80,0),LINETHICK2,COLORWHITE;
AG:MACD底背 AND KDJ底背 AND RSI底背;

⑻ 通达信多空趋势,kdj,macd,rsi顶底背离信号提示的指标源码

可以编写通达信德多空趋势,kdj,macd,rsi,顶背离的指标,但这些条件你好说明清楚如专何判断,例如顶背离最属少要有高点确认条件你才能判断,这三个指标每个指标都不是一个输出,都有3个具体对比哪个这些具体条件说明清楚才能编写指标公式。

⑼ macd和kdj共振

就是意思说,都金叉,或是死叉,或是背离,等等,在实战中,意义不大

阅读全文

与macd与kd背离共振指标源码相关的资料

热点内容
信贷资产证券化交易所市场 浏览:277
家庭杠杆率排名 浏览:626
哪家银行理财收益比较高 浏览:127
传热科技股份有限公司产品 浏览:371
天津文化产权交易所下载 浏览:667
空港股份股票价格 浏览:154
光大银行理财产品有风险 浏览:68
什么叫会银行理财产品 浏览:441
外汇入金进不去是怎么回事 浏览:261
荆门金融投资证券企业名录 浏览:922
有哪个金店回收黄金 浏览:212
兰州证券公司最低佣金 浏览:650
两物体对地面压强一样且杠杆平衡 浏览:422
汇率变动调整的分录 浏览:840
2019理财基金排名 浏览:885
重庆长寿湖土地挂牌价格 浏览:813
买银行理财需要注意什么 浏览:812
温州三方理财公司怎么样 浏览:948
杠杆配资开户联系卓信宝配资 浏览:95
m2超发汇率 浏览:242