How to calculate
Start with the average gains and losses from the first complete window of price changes. For later closes, update each average with a smoothing weight of one divided by the period. Divide average gains by the sum of average gains and losses and multiply by 100.
Worked example
Use RSI periods 3 · Closing prices in chronological order 100, 104, 102, 106, 104, 105. The result is ≈ 67.2131148.
Input and result notes
A 14-period RSI requires at least 15 closing prices. When both smoothed averages are zero, this calculator reports a neutral RSI of 50.
Fidelity relative strength index method