Hi, I am trying to calculate RSI using the general formula RSI = 100 - (100 / (1 + RS)) Where RS = (Avg(Gain)/Avg(Loss)) does not match with RSI shown in Kite. I searched for the same and tried using Exponential Average and Weighted Average for Gain and Loss but it didn't work. If anyone has a solution please share.