简洁KDJ
更多金钻指标股票技术讨论QQ群:966329692 技术讨论QQ群:220302856 技术讨论QQ群:39652085 如群满可换一个

编写要求:

解答:

 网友求助:

请老师帮助改下公式(大智慧)
1.J线底部变色时为绿色
2.且当K大于90,D大于85形成死叉时 能变色为下图所示的颜色
3.最好能有下图小箭头提示
谢谢!


源码:
{input N(9,1,100),M1(3,2,40),M2(3,2,40)}
RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;
K:SMA(RSV,M1,1),LINETHICK1;
D:SMA(K,M2,1),LINETHICK1;
J:3*K-2*D,COLORFF00FF,LINETHICK1;
PARTLINE(j,j<10 or j>80,rgb(255,230,0)),LINETHICK1;

 
解答如下:
input: N(9,1,100),M1(3,2,40),M2(3,2,40);
RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;
K:SMA(RSV,M1,1),LINETHICK1;
D:SMA(K,M2,1),LINETHICK1;
J:3*K-2*D,COLORFF00FF,LINETHICK1;
PARTLINE(j,j<10 ,rgb(0,230,0)),LINETHICK3;
PARTLINE(j,j>80,rgb(250,0,0)),LINETHICK3;
PARTLINE(K,K>90,rgb(0,0,250)),LINETHICK3;
PARTLINE(D,D>85,rgb(0,220,250)),LINETHICK3;
DRAWICON(CROSS(J,K),J,7);
DRAWICON(CROSS(K,J),J,8);
 

 


选股票看什么指标最好 >股票指标网