联系方式 Contact

云指标公式网

淘宝:zb-mart.taobao.com

电话:18020657357

微信:18020657357

Q Q:396950280

点击这里给我发消息

网址:www.yzhibiao.com

搜索 Search

实用指标 KDJ 顶底背离 (副图+选股)指标

2016-5-11 11:21:27点击:

N:=9;
M1:=3;
M2:=3;


RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;
K:SMA(RSV,M1,1);
D:SMA(K,M2,1);
J:3*K-2*D;


U1:=BARSLAST(REF(CROSS(K,D),1));
U2:=REF(C,U1+1)>C AND REF(K,U1+1)<K AND CROSS(K,D)AND D<50; 
底背离:=IF(U2>0,1,0);
DRAWTEXT(底背离,REF(D,U1)*1.00,' ←底背离'),COLORYELLOW;
RR:=MAX(C,O);
Q1:=HHV(RR,5);
Q2:=D<REF(D,1) AND REF(D,1)>REF(D,2);
A2:=BARSLAST(REF(Q2,1));
顶背离:= REF(Q1,A2+1)<Q1 AND K<REF(K,A2+1) AND Q2;
DRAWTEXT(顶背离,REF(D,A2)*1.02,' ←顶背离'),COLORGREEN;