不需金钻的金钻指标,寻庄KD,副图源码,说明及选股信号

此指标是本人改选后的KD指标,黄色和红色五角星为选股信号,其中TK选股信号36可以调整,也可以去掉。本指标原始函数为飞狐,若要改为其它股软只需要把ANY(存在)和ALL(一直存在)调整为自己股软相对应的函数即可。如果要改为选股公式也很简单,只需要把前面表达式没有等于号的句子加上等于号,再把PK,TK二句后面的等于号和后面显示文字的二行去掉就是选股公式。

STICKLINE(C>0,80,80,5,0),COLORRED;
 STICKLINE(C>0,50,50,5,0),COLORYELLOW;
 STICKLINE(C>0,20,20,5,0),COLORCYAN;
 jx:=(0.75*C+0.25*REF(0.75*C+0.25*ref(0.75*C+0.25*REF(0.75*C+0.25*ref(0.75*C+0.25*ref(0.75*C
 +0.25*ref(0.75*C+0.25*ref(0.75*C+0.25*ref(0.75*C+ref(0.25*C,1),1),1),1),1),1),1),1),1));
 jH:=(0.75*H+0.25*REF(0.75*H+0.25*ref(0.75*H+0.25*REF(0.75*H+0.25*ref(0.75*H+0.25*ref(0.75*H
 +0.25*ref(0.75*H+0.25*ref(0.75*H+0.25*ref(0.75*H+ref(0.25*H,1),1),1),1),1),1),1),1),1));
 jL:=(0.75*L+0.25*REF(0.75*L+0.25*ref(0.75*L+0.25*REF(0.75*L+0.25*ref(0.75*L+0.25*ref(0.75*L
 +0.25*ref(0.75*L+0.25*ref(0.75*L+0.25*ref(0.75*L+ref(0.25*L,1),1),1),1),1),1),1),1),1));
 RSV:=(jx-LLV(jL,360))/(HHV(jH,360)-LLV(jL,360))*100;
 K:SMA(RSV,3,1),COLORWHITE;
 D:SMA(K,8,1),COLORMAGENTA;
 jk:SMA(d,11,1),COLORGREEN;
 RSV1:=(HHV(jH,36)-JX)/(HHV(jH,36)-LLV(jL,36))*100;
 fK:SMA(RSV1,3,1),COLORWHITE;
 pK:=(CROSS(k,JK)and ANY(cross(K,FK),4))OR (CROSS(k,fk)and ANY(cross(K,JK),4)),COLOR0099FF;
 DRAWTEXT(pk,D,'★'),COLORRED;
 TK:=(CROSS(k,80)and ref(ALL(K<80,36),1));
 DRAWTEXT(tk,75,'★'),COLORYELLOW;STICKLINE(C>0,80,80,5,0),COLORRED;
 STICKLINE(C>0,50,50,5,0),COLORYELLOW;
 STICKLINE(C>0,20,20,5,0),COLORCYAN;
 jx:=(0.75*C+0.25*REF(0.75*C+0.25*ref(0.75*C+0.25*REF(0.75*C+0.25*ref(0.75*C+0.25*ref(0.75*C
 +0.25*ref(0.75*C+0.25*ref(0.75*C+0.25*ref(0.75*C+ref(0.25*C,1),1),1),1),1),1),1),1),1));
 jH:=(0.75*H+0.25*REF(0.75*H+0.25*ref(0.75*H+0.25*REF(0.75*H+0.25*ref(0.75*H+0.25*ref(0.75*H
 +0.25*ref(0.75*H+0.25*ref(0.75*H+0.25*ref(0.75*H+ref(0.25*H,1),1),1),1),1),1),1),1),1));
 jL:=(0.75*L+0.25*REF(0.75*L+0.25*ref(0.75*L+0.25*REF(0.75*L+0.25*ref(0.75*L+0.25*ref(0.75*L
 +0.25*ref(0.75*L+0.25*ref(0.75*L+0.25*ref(0.75*L+ref(0.25*L,1),1),1),1),1),1),1),1),1));
 RSV:=(jx-LLV(jL,360))/(HHV(jH,360)-LLV(jL,360))*100;
 K:SMA(RSV,3,1),COLORWHITE;
 D:SMA(K,8,1),COLORMAGENTA;
 jk:SMA(d,11,1),COLORGREEN;
 RSV1:=(HHV(jH,36)-JX)/(HHV(jH,36)-LLV(jL,36))*100;
 fK:SMA(RSV1,3,1),COLORWHITE;
 pK:=(CROSS(k,JK)and ANY(cross(K,FK),4))OR (CROSS(k,fk)and ANY(cross(K,JK),4)),COLOR0099FF;
 DRAWTEXT(pk,D,'★'),COLORRED;
 TK:=(CROSS(k,80)and ref(ALL(K<80,36),1));
 DRAWTEXT(tk,75,'★'),COLORYELLOW;STICKLINE(C>0,80,80,5,0),COLORRED;
 STICKLINE(C>0,50,50,5,0),COLORYELLOW;
 STICKLINE(C>0,20,20,5,0),COLORCYAN;
 jx:=(0.75*C+0.25*REF(0.75*C+0.25*ref(0.75*C+0.25*REF(0.75*C+0.25*ref(0.75*C+0.25*ref(0.75*C
 +0.25*ref(0.75*C+0.25*ref(0.75*C+0.25*ref(0.75*C+ref(0.25*C,1),1),1),1),1),1),1),1),1));
 jH:=(0.75*H+0.25*REF(0.75*H+0.25*ref(0.75*H+0.25*REF(0.75*H+0.25*ref(0.75*H+0.25*ref(0.75*H
 +0.25*ref(0.75*H+0.25*ref(0.75*H+0.25*ref(0.75*H+ref(0.25*H,1),1),1),1),1),1),1),1),1));
 jL:=(0.75*L+0.25*REF(0.75*L+0.25*ref(0.75*L+0.25*REF(0.75*L+0.25*ref(0.75*L+0.25*ref(0.75*L
 +0.25*ref(0.75*L+0.25*ref(0.75*L+0.25*ref(0.75*L+ref(0.25*L,1),1),1),1),1),1),1),1),1));
 RSV:=(jx-LLV(jL,360))/(HHV(jH,360)-LLV(jL,360))*100;
 K:SMA(RSV,3,1),COLORWHITE;
 D:SMA(K,8,1),COLORMAGENTA;
 jk:SMA(d,11,1),COLORGREEN;
 RSV1:=(HHV(jH,36)-JX)/(HHV(jH,36)-LLV(jL,36))*100;
 fK:SMA(RSV1,3,1),COLORWHITE;
 pK:=(CROSS(k,JK)and ANY(cross(K,FK),4))OR (CROSS(k,fk)and ANY(cross(K,JK),4)),COLOR0099FF;
 DRAWTEXT(pk,D,'★'),COLORRED;
 TK:=(CROSS(k,80)and ref(ALL(K<80,36),1));
 DRAWTEXT(tk,75,'★'),COLORYELLOW;




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

解密、定制、编写股票指标请联系QQ或微信同号:88652583
相关股票指标公式

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

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