Can anyone explain how the KDJ indicator is calculated on BitcoinWisdom? I'm trying to figure out the math of the K, D, and J lines but none of the explainations from google are matching the outcome of the BitcoinWisdom one.
I'd like to be able to duplicate the KDJ indicator from BitcoinWisdom for use in a trade bot if I can figure out how it is calculated.
The formula is
RSV = (CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K = SMA(RSV,3,1);
D = SMA(K,3,1);
J = 3*K-2*D;
LLV means lowest value in period
HHV means highest value in period
SMA is Simple Moving Average
What does the 1 in SMA(RSV,3,1); mean? I took the SMA of RSV over 3 periods and get a similar result to yours but it's still not quite right. For my SMA calc I just did a simple SMA = (day1 + day2 + day3) / 3
Sorry for misleading. I fogot SMA is not Simple Moving Average in this formula.
The formula I used is
Y=SMA(RSV,n,m)=(m*RSV+(n-m)*Y')/n
Y' means previous Y
when n = 3 and m = 1
Y=SMA(RSV,3,1)=(RSV+2*Y')/3
when m = 2, it close to EMA
hi, I want to calculate KDJ for data analyze, I am using the formula you use, but the result are not the same with the one in your website.
Does the default parameter in your site are KDJ(9,3,3) , K = SMA(RSV,3,1)?
another question is when calcuate RSV = (CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100, if the HHV equals LLV, what the value of RSV should be? 0 or 50?