Module 02 · Reading price and volume
Momentum and the relative strength index
Lesson 08 / 105 min read5 sections
The relative strength index, or RSI, compares the size of a stock’s recent rises with the size of its recent falls and puts the answer on a scale from 0 to 100. This chapter computes one by hand, explains the 70 and 30 lines, and shows why a high reading in a strong trend describes the trend rather than predicting its end.
What the RSI measures
Momentum here means the speed and persistence of recent price changes. Despite the name, the RSI does not compare a stock with the market or with other stocks. It compares the stock’s own up-moves with its own down-moves. J. Welles Wilder Jr. published it in 1978 and used 14 periods, and most charting software still defaults to 14.
The recipe has four steps. For each of the last 14 sessions, note the rise or the fall in the close, both as positive numbers. Add the rises and divide by 14 to get the average gain. Do the same with the falls for the average loss. Divide average gain by average loss to get RS. Then RSI = 100 − 100 ÷ (1 + RS). A stock that only rose scores 100. One that only fell scores 0. Equal gains and losses give 50.
After the first reading, Wilder smoothed the averages instead of recomputing them. The new average gain is the old one multiplied by 13, plus today’s gain, divided by 14. The average loss is updated the same way. Old sessions fade out gradually rather than dropping out all at once, which is different from the simple average in the moving-average chapter.
A worked reading
An illustrative chemicals company starts at ₹400. Over the next 14 sessions it rises on 8 days by a total of ₹35 and falls on 6 days by a total of ₹25, closing at ₹410. Average gain is 35 ÷ 14 = 2.50. Average loss is 25 ÷ 14 = 1.786. RS is 1.40, so RSI = 100 − 100 ÷ 2.40 = 58.3.
Session 15 closes ₹7 higher, at ₹417. The new average gain is (2.50 × 13 + 7) ÷ 14 = 2.82. There was no fall, so the average loss shrinks to 1.786 × 13 ÷ 14 = 1.66. RS becomes 1.70 and the RSI rises to 63.0. The table continues for three more sessions.
| Session | Close (₹) | Change (₹) | Avg gain | Avg loss | RS | RSI |
|---|---|---|---|---|---|---|
| 1–14 | 410 | +35 on 8 days, −25 on 6 days | 2.50 | 1.79 | 1.40 | 58.3 |
| 15 | 417 | +7 | 2.82 | 1.66 | 1.70 | 63.0 |
| 16 | 423 | +6 | 3.05 | 1.54 | 1.98 | 66.4 |
| 17 | 431 | +8 | 3.40 | 1.43 | 2.38 | 70.4 |
| 18 | 430 | −1 | 3.16 | 1.40 | 2.26 | 69.3 |
Seventy, thirty, and the trend that ignores them
Wilder treated readings above 70 as overbought and below 30 as oversold. Both words promise more than the arithmetic delivers. Above 70 means only that recent gains have been much larger than recent losses. In the example, the RSI first passed 70 at session 17, with the stock at ₹431. It was above 70 on six of the next seven sessions while the price climbed to ₹453. Selling on the first reading above 70 would have missed the next ₹22 a share.
That is normal behaviour in a strong trend, because a trend is exactly a run of gains larger than losses. Readings near 70 and 30 make more sense as possible turning points when a stock is moving sideways inside a range, where the price has a boundary to turn from. Before reading the extremes, decide which of the two situations you are in, using the descriptions from the chapter on trends and ranges.
Divergence is a slowdown, not a reversal
A bearish divergence is a higher high in price with a lower high in the RSI. In the example, the stock peaked at ₹453 on session 24 with an RSI of 76.7. After a pullback it made a new high of ₹456 on session 33, but the RSI reached only 71.2, because the second climb was made of smaller up-days. Two sessions later the stock was at ₹446. A bullish divergence is the mirror image at lows.
Divergence says the advance slowed. It does not say when, or whether, the price will fall, and a strong trend can produce several divergences before any top. A sensible use is as a prompt to re-read a position or to check an exit you have already written down, not as a trade on its own. Choose the period before you look, as with any average. A 9-session RSI is jumpier than a 14-session one, and switching between them until one gives the answer you want is not analysis.
What to remember
- RSI compares a stock’s own average gain with its own average loss over a window, usually 14 sessions. It does not compare the stock with the market.
- RSI = 100 − 100 ÷ (1 + average gain ÷ average loss), with Wilder’s smoothing after the first reading.
- Above 70 means recent gains have dominated. In a strong trend that can last for many sessions.
- A divergence shows a slowing move. It can persist through several new highs before any fall.
- Fix the period and the levels in advance, and use readings as prompts to review, not as orders.
End of lesson 8
Ready for the next lesson?
Next · Lesson 09 · 4 minMACD and Bollinger bands← Previous: A moving average, and its limits