此指标是本人改选后的KD指标,黄s和红色五角星为选股信号,其中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; |