RSI
The Relative Strength Index — a momentum oscillator.
01RSI (14)The Relative Strength Index is a momentum oscillator that measures the speed and magnitude of recent price movements on a 0–100 scale.
The Relative Strength Index is a momentum oscillator that measures the speed and magnitude of recent price movements on a 0–100 scale. It tells you whether a stock has been bought or sold too aggressively.
RSI is the most popular momentum indicator in the world. It answers one simple question: is the stock overbought or oversold? Above 70 suggests overbought; below 30 suggests oversold. Traders use it to time entries; investors use it to avoid chasing peaks. It's also the foundation of divergence analysis — one of the few leading indicators in technical analysis.
Yahoo Finance, NSE
We compute RSI using the standard 14-period Wilder smoothing method — the original, most widely used formula. Prices come from the stock's daily close history. Wilder's method gives more weight to recent data while still smoothing out the noise.
- Above 70 → overbought; may see a pullback.
- 60 to 70 → strong momentum; trend is up.
- 40 to 60 → neutral; no clear bias.
- 30 to 40 → weakening momentum.
- Below 30 → oversold; may see a bounce.
- RSI can stay overbought or oversold for weeks in strong trends — never use it alone.
- Assuming overbought = sell — in a strong uptrend, RSI stays above 70 for weeks.
- Buying just because RSI is below 30 — some stocks keep falling to RSI 10.
- Using RSI without trend context — combine with moving averages or price structure.
02RSI SentimentA five-band interpretation of the RSI value, from Very Positive (oversold) to Very Negative (overbought).
A five-band interpretation of the RSI value, from Very Positive (oversold) to Very Negative (overbought). It converts the raw 0–100 number into an instantly readable label.
RSI is a continuous number that's hard to judge at a glance. This sentiment translates it into a clear reading. The bands are deliberately inverted from intuition: low RSI is 'Very Positive' because an oversold stock has higher bounce potential; high RSI is 'Very Negative' because an overbought stock is at higher reversal risk.
Computed
The RSI value is bucketed into five bands using fixed thresholds (30, 40, 60, 70). Note that lower RSI gets more positive sentiment — this reflects the mean-reverting bias of the oscillator.
- Very Positive → deeply oversold; strongest bounce potential.
- Positive → near oversold.
- Neutral → RSI in the middle of its range.
- Negative → near overbought.
- Very Negative → overbought; highest reversal risk.
- Works best in ranging markets — less reliable in strong trends.
- Trading purely on the sentiment band — context matters.
- Ignoring the trend — oversold in a downtrend isn't a buy.
- Forgetting that RSI can stay extreme for weeks.
03RSI DivergenceDivergence occurs when price and RSI move in opposite directions — price making a new high while RSI makes a lower high, or vice versa.
Divergence occurs when price and RSI move in opposite directions — price making a new high while RSI makes a lower high, or vice versa. It's a warning that momentum is fading. We detect four types: Regular Bullish, Regular Bearish, Hidden Bullish, and Hidden Bearish.
Divergence is one of the few leading signals in technical analysis — it often precedes a reversal before price confirms. Regular divergence suggests a trend is about to reverse; hidden divergence suggests a trend is about to continue. It's a favourite of experienced traders for early entries.
Computed
We use argrelextrema to find swing highs and lows in both the price series and the RSI series. Then we compare the last two swing points in each series over a rolling 20-day window. When price and RSI disagree on direction, we classify the divergence type.
- Regular Bullish → potential reversal UP; strongest when RSI was oversold.
- Regular Bearish → potential reversal DOWN; strongest when RSI was overbought.
- Hidden Bullish → continuation of an uptrend expected.
- Hidden Bearish → continuation of a downtrend expected.
- 'No divergence' means price and momentum are aligned.
- Divergence is a warning, not a trigger — wait for price confirmation.
- Acting on divergence immediately — it can persist for weeks before price responds.
- Missing hidden divergences — they're less famous but equally useful.
- Over-trading — divergences are common; filter for ones that occur at obvious support/resistance.
