通达信kdj变色副图公式源码
送一个kdj变色,给喜欢kdj的朋友玩。参数是kdj默认的
源码 :
REFLINE: 0, 20, 50, 80, 100;
RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;
K:SMA(RSV,M1,1);
D:SMA(K,M2,1);
J:3*K-2*D;
partline(K,K =ref(K,1),rgb(255,0,0),K ref(K,1),rgb(0,250,0)),linethick1;
partline(D,D =ref(D,1),rgb(255,0,0),D ref(D,1),rgb(0,250,0)),linethick1;
partline(J,J =ref(J,1),rgb(255,0,0),J ref(J,1),rgb(0,250,0)),linethick1;