---
type: "Lesson"
title: "Relative Strength Index (RSI)"
description: "The Relative Strength Index (RSI) is a momentum oscillator, from 0 to 100, that compares the size of recent up-moves with recent down-moves."
tags: ["rsi","relative strength index","momentum oscillator","wilder","overbought","oversold","rsi 14"]
sources: [{"id":"s1","resource":"https://en.wikipedia.org/wiki/Relative_strength_index"}]
generated: {"by":"process:eqdoc-okf-export","at":"2026-10-25"}
stale_after: "2027-04-25"
x-eqdoc-id: "ta-rsi"
x-eqdoc-reviewed-at: "2026-10-25"
x-eqdoc-questions: ["What is RSI?","How do I read the RSI indicator?","What does an RSI of 70 mean?","How is RSI calculated?"]
x-eqdoc-licence-note: "Written by eqdoc in its own words; facts checked against the CC BY-SA page listed"
---

The Relative Strength Index (RSI) is a momentum oscillator, from 0 to 100, that compares the size of recent up-moves with recent down-moves.

- **Who and when.** J. Welles Wilder introduced it in 1978. The standard setting is 14 periods. The TA-Lib function is `RSI`.
- **How it is calculated.** For each session, a gain is the rise in close from the day before (zero if it fell) and a loss is the fall (zero if it rose). Average them over 14 sessions, then keep updating with Wilder's smoothing:
  `Average gain today = (previous average gain x 13 + today's gain) / 14`
  `Average loss today = (previous average loss x 13 + today's loss) / 14`
  `RS = average gain / average loss`
  `RSI = 100 - 100 / (1 + RS)`
  The first averages are simple averages of the first 14 gains and losses.
- **How analysts read it.** A reading above 70 is conventionally labelled overbought: recent gains have been large relative to recent losses. A reading below 30 is labelled oversold: losses have dominated. 50 is the midpoint. Neither label says what the price will do next.
- **Pitfalls.** In a strong trend RSI can stay above 70, or below 30, for weeks. Treating those levels as turning points has often been wrong in trending markets. Some analysts use 80 and 20 instead. Different charting tools can show slightly different values if they load different amounts of history, because Wilder's smoothing carries old data forward.
- **Divergence.** When price makes a new high but RSI makes a lower high, analysts call it a bearish divergence; a new price low with a higher RSI low is a bullish divergence. These describe fading momentum and can last a long time.
- **India note.** On a daily chart, 14 periods means 14 NSE or BSE trading sessions. Use split- and bonus-adjusted prices, or the adjustment date shows up as a false collapse in RSI.
