改良的传统指标KDJ-W&R副图源码
传统指标KDJ-W&R合并后效果不错,同时修改了一些参数,更适合“波段”的操作。
{KDJ-W&R}{改良的指标副图}
{参数N:25 1 100 1 ; M1:3 1 100 1; M2:3 1 100 1; M3:10 1 100 1; M4:6 1 100 1}
RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;
K:SMA(RSV,M1,1),colorwhite;
D:SMA(K,M2,1),coloryellow;
J:3*K-2*D,colorff00ff;
WR1:100*(HHV(HIGH,M3)-CLOSE)/(HHV(HIGH,M3)-LLV(LOW,M3)),colorwhite;
WR2:100*(HHV(HIGH,M4)-CLOSE)/(HHV(HIGH,M4)-LLV(LOW,M4)),coloryellow;