Open kiransalian91 opened 3 years ago
Yes, the calculations vary b/w tradingview & RSI in this lib. I suppose it is the duplicate of #216
the lib works, try to add more data to RSI, I think the values starts to match with the tv RSI with 100+ candles
@marcusmota thanks for the reply. Are you saying that the lib works only with 100+ candles (meaning the period should always be >100 ?) Is this documented anywhere? I've been trying to get a fix for this issue for a very long time now. Please see if you can provide any input on this: https://github.com/anandanand84/technicalindicators/issues/216#issuecomment-864588738
This isn't documented, this is just how I "fixed" the issue :P the value does not need to be 100, try to add more candles until you start to have the same value of tv.
Below I am passing 15 days closing price (oldest close price first).
I get response as below. console.log(rsi) // [58.67].
But actual RSI value which is displayed in Zeroda or TradingView is : 60.79.
Please help me if I am missing something here.