I am trying to calculate RSI for 10 days period RSI(10, close). I have 20 data points which I pass to the Ta-lib function which gives 10 records as a result. But the resultant values are wrong. I am matching my record with tradingview.com for stock ticker AAPL
How shall I get the correct result which matches tradingview result? My stackoverflow question regarding the same issue as follows.