飞狐KDJ再改进指标公式

[复制链接]
查看172 | 回复0 | 2021-8-21 11:32:28 | 显示全部楼层 |阅读模式

RSV:=(CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8))*100;
K:SMA(RSV,3,1),colorred;
D:SMA(K,3,1),COLORblue;
J:=3*K-2*D;
v1:=if (high>=hhv(high,8) and k<hhv(k,63) and k<=ref(k,1),1,0);
v2:=if (low<=llv(low,8) and k>=llv(k,63) and k>=ref(k,1),1,0);
drawicon(cross(k,d) and k<=20,d,10);
drawicon(cross(d,k),d,11);
drawicon(cross(k,d) and k<=45 and k>20,d,12);
drawicon(v1,50,9);
drawicon(v2,50,8);
交叉位:=((3*REF(D,1)-2*REF(K,1))*(HHV(H,8)-LLV(L,8))/100)+LLV(L,8);
n1:=sysparam(3); n2:=sysparam(2); n3:=(n1-n2)+1; hh:=hhv(J,n3); ll:=llv(J,n3);
zhh:=hh[n1]; zll:=ll[n1];
预测价:交叉位 , ColorFF8EFF;
DRAWTEXT(BARPOS=SYSPARAM(3)&&交叉位<C,zhh,'预测死叉价: '+NUMTOSTR(交叉位,3)),ALIGN2,SHIFT3,PXDN10,ColorFF8E00;
DRAWTEXT(BARPOS=SYSPARAM(3)&&交叉位>C,zll,'预测金叉价: '+NUMTOSTR(交叉位,3)),ALIGN2,SHIFT3,PXUP10,ColorFF8EFF;

202108211127.jpg

202108211127.jpg

 

回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则