https://www.programmersought.com/article/83794296041/ adresinde yayınlanan formüle göre KDJ indikatörü.
N := input("Period", 1, 1000, 9);
M1 := input("K", 1, 1000, 3);
M2 := input("D", 1, 1000, 3);
RSV := (C-LLV(L,N))/(HHV(H,N)-LLV(L,N))*100;
K := MOV(RSV, M1, S);
D := MOV(K, M2, S);
J := (3*K) - (2*D);
K;
D;
J