What is RSI (relative strength index)?
The relative strength index (RSI) compares the size of recent gains with the size of recent losses and scales the result between 0 and 100.
Ours uses Wilder's smoothing over 14 bars: the first averages are simple means of the first 14 changes, and each later bar updates them with weight 1/14. It plots in its own pane with level lines at 70 and 30, reads the close by default, and can draw up to three lengths at once. When there were no losses at all in the window the value is 100.
How is RSI calculated?
RSI = 100 − 100 / (1 + RS), RS = Wilder avg gain(14) / Wilder avg loss(14)
The terms in the formula
- gain / loss
- Bar-to-bar change of the source when positive (gain) or the size of it when negative (loss); the other side counts as zero.
- Wilder avg
- avg[t] = (avg[t-1] × (N − 1) + value[t]) / N, seeded with a simple average.
- RS
- Average gain divided by average loss.
- N
- Length, 14 by default.
How do you read RSI?
- Above 70 is commonly called overbought and below 30 oversold: price has risen or fallen a lot relative to its recent swings, not necessarily that it must turn.
- In strong uptrends RSI tends to hold roughly 40 to 90, and in downtrends roughly 10 to 60, so the 50 line is often used as a trend filter.
- A divergence, such as price making a new high while RSI makes a lower high, shows momentum fading behind the move.
- Shorter lengths make it swing to the extremes more often; longer lengths keep it nearer 50.
What are the limits of RSI?
- In a persistent trend it can stay above 70 or below 30 for weeks, so the extremes alone are poor timing tools.
- It measures only closes; gaps and intrabar ranges are ignored.
- Wilder's smoothing carries memory of old bars, so the first values after a short history differ slightly from a long one.
- Thinly traded names produce jumpy readings from a few large closes.
Where can you see it on TickerBase?
Open a live chart and add the indicator