I am using two indicators (BBANDS, RSI) from talib library.
When I double-checked the values from my codes and the values in tradingview, I found that the output of rsi is different from the value of rsi in tradingview.
My codes are like this:
closes = # Candle data I've prepared
upper, middle, lower = talib.BBANDS(closes, timeperiod=20, nbdevup=2, nbdevdn=2, matype=0)
rsi = talib.RSI(closes, timeperiod=14)
print(middle[-1])
print(rsi[-1])
The values of BBANDS from my codes are exactly the same to the ones in tradingview.
However, the RSI value is a little different from the rsi value in tradingview.
I set the same parameters on tradingview as well.
My tradingview parameters for RSI was length=14.
I don't what makes this issue. Could you help me a little?
Thanks.