通达信KDJ底背离(主图 副图/选股 源码)

{主图}
T:=BARSLAST(L=LLV(L,10));
 K:=KDJ.K;
 L1:=REF(L,T);
 L2:=REF(L1,T+1);
 K1:=REF(K,T);
 K2:=REF(K1,T+1);
 TJ:=L1<L2 AND K1>K2 AND T=0 AND REF(T,1)>3;
 TJT:=BARSLAST(TJ);
 QF:=BACKSET(TJ,REF(T,1)+2);
 QT:=BARSLAST(CROSS(QF=1,0.5));
 VV:=HHV(VOL,20)/VOL;
 KK:=IF(QF=1,K,-9999);
 HH:=HHV(KK,QT);
 TT:=BARSLAST(KK=HH);
 TC:=QT-TJT;
 XG:=CROSS(K,REF(KK,TT)) AND QT<20 AND VV>2.5 AND TC<7;
 DRAWLINE(QT=0,L,TJT=0,L,0),COLORRED;
 STICKLINE(XG,C,O,2,0),COLORBROWN;
 STICKLINE(XG,H,L,0,0),COLORBROWN;
 DRAWTEXT(QT=0,L*0.95,'底背离'),COLORYELLOW;
 DRAWICON(XG,H*1.05,9);
 {幅图}

RSV1:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
 K:SMA(RSV1,3,1);
 D:SMA(K,3,1);
 J:3*K-2*D,LINETHICK1;
 T:=BARSLAST(L=LLV(L,10));
 L1:=REF(L,T);
 L2:=REF(L1,T+1);
 K1:=REF(K,T);
 K2:=REF(K1,T+1);
 TJ:=L1<L2 AND K1>K2 AND REF(T,1)>3 AND T=0;
 TJT:=BARSLAST(TJ);
 QF:=BACKSET(TJ,REF(T,1)+2);
 QT:=BARSLAST(CROSS(QF=1,0.5));
 KK:=IF(QF=1,K,-9999);
 HH:=HHV(KK,QT);
 TT:=BARSLAST(KK=HH);
 TC:=QT-TJT;
 XG:=CROSS(K,REF(KK,TT)) AND QT<20 AND V<REF(V,1) AND HHV(VOL,20)/VOL>2.5 AND TC<7;
 DRAWLINE(TT=0,K,REF(TT=0,1),REF(K,1),1),COLORGREEN;
 DRAWLINE(QT=0,K,TJ,K,0),COLORRED,LINETHICK2;
 DRAWICON(XG,K,1);
 DRAWTEXT(QT=0,K,'底背离'),COLORYELLOW;


 {选股}

RSV1:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
 K:=SMA(RSV1,3,1);
 D:=SMA(K,3,1);
 J:=3*K-2*D;
 T:=BARSLAST(L=LLV(L,10));
 L1:=REF(L,T);
 L2:=REF(L1,T+1);
 K1:=REF(K,T);
 K2:=REF(K1,T+1);
 TJ:=L1<L2 AND K1>K2 AND REF(T,1)>3 AND T=0;
 TJT:=BARSLAST(TJ);
 QF:=BACKSET(TJ,REF(T,1)+2);
 QT:=BARSLAST(CROSS(QF=1,0.5));
 KK:=IF(QF=1,K,-9999);
 HH:=HHV(KK,QT);
 TT:=BARSLAST(KK=HH);
 TC:=QT-TJT;
 XG:CROSS(K,REF(KK,TT)) AND QT<20 AND V<REF(V,1) AND HHV(VOL,20)/VOL>2.5 AND TC<7;





未来函数检测结果如下:
该公式包含未来函数:BACKSET
解密、定制、编写股票指标请联系QQ或微信同号:88652583
相关股票指标公式

联系我们  |  股票指标网  |  指标网   |  指标公式  |   加入收藏   |  设为主页

@2005-2023 粤ICP备2023063687号-2 股票指标网别名指标网仅为互联网文章,所有股票指标公式及文章仅供学习研究,并不构成投资建议,请勿以此为依据进行股票交易,由此引起的投资亏损与本站无关。股票指标网均来源互联网收集整理,如不慎侵犯了你的权益,请联系我们告知,我们将做删除处理
QQ:88652583 微信 88652583
sitemap站点地图