Jump to Section (Table of Contents)▼
Key Takeaways
- Internal Velocity of Price Action: Developed by J. Welles Wilder Jr. in 1978, the Relative Strength Index (RSI) is a bounded momentum oscillator (0 to 100) that measures the speed and magnitude of recent price changes.
- The Classical 70/30 Boundaries: Traditionally, an RSI reading above 70 indicates an overbought condition vulnerable to mean reversion, while an RSI below 30 signals an oversold territory where selling exhaustion may occur.
- Divergences Outperform Static Levels: Trading purely on overbought/oversold levels leads to severe whipsaws during strong trending runs; institutional traders prioritize RSI Divergences where momentum disagrees with price direction.
Among technical momentum indicators, the Relative Strength Index (RSI) is the most widely deployed oscillator on trading desks globally. Whether screening for exhaustion pullbacks on daily charts or executing intraday scalps, traders use RSI to quantify whether buying or selling pressure has reached statistical extremes.
However, many beginner traders treat the 70 and 30 thresholds as mechanical buy and sell switches. In powerful structural bull trends, a stock's RSI can remain pinned above 70 for weeks while the price doubles, inflicting massive losses on premature short sellers.
The RSI Calculator computes the exact Relative Strength Index value from average gains and losses across any 14-period dataset.
Mathematical Mechanics of J. Welles Wilder's Formula
The calculation of RSI normalizes price changes onto a standardized scale between 0 and 100 through a two-step mathematical process:
Relative Strength (RS) & RSI Formulas
Wilder's Smoothing Method:
For the initial 14 periods, Average Gain is the simple sum of positive close-to-close gains divided by 14. For subsequent periods, Wilder applied an exponential smoothing formula:
Average Gain_Today = [(Previous Average Gain * 13) + Current Gain] / 14.
This smoothing technique eliminates sudden jumps in the oscillator caused by single abnormal sessions dropping off the lookback window.
Range Rules: Bull Markets vs Bear Markets
A common technical error is applying rigid 70/30 thresholds regardless of broader market trend context. As documented by market technician Constance Brown, RSI operating ranges shift dramatically across market regimes:
Normal Operating Range
Overbought Threshold
Oversold Support Floor
Institutional Signal
Market Phase Context
| Features & Metrics | Bull Market Regime (Uptrend)Momentum Floor Shifting | Bear Market Regime (Downtrend)Momentum Ceiling Shifting |
|---|---|---|
| Normal Operating Range | Oscillates between 40 and 85 | Oscillates between 15 and 60 |
| Overbought Threshold | Pushes deep into 75 to 85+ during explosive impulse legs | Struggles to break above 55 to 60 on counter-trend rallies |
| Oversold Support Floor | Pullbacks reliably hold at the 40 to 45 support zone | Plunges into extreme oversold territory below 20 to 25 |
| Institutional Signal | RSI dipping to 40-45 represents a high-probability buy | RSI rallying to 55-60 represents a high-probability short |
| Market Phase Context | Accumulation and markup phases (Nifty in secular bull) | Distribution and markdown phases (Cyclical bear market) |
In a strong bull market, an RSI pullback to 40 is not a sign of weakness; it represents an institutional dip-buying zone.
Step-by-Step Schedule: Calculating RSI Across Scenarios
The table below illustrates how different ratios of Average Gain to Average Loss dictate final RSI values and market classification:
RSI Value Matrix Across Gain / Loss Ratios
Calculations based on standard 14-period lookback data
| Average Gain (₹) | Average Loss (₹) | Relative Strength (RS) | Calculated RSI | Technical Classification | Tactical Action |
|---|---|---|---|---|---|
| 4.50 | 0.50 | 9.00 | 90.00 | Extreme Euphoric Overbought | Prepare for blow-off exhaustion; tighten stops |
| 3.50 | 1.00 | 3.50 | 77.78 | Overbought Momentum Expansion | Ride trend with trailing stops; avoid fresh longs |
| 2.50 | 1.25 | 2.00 | 66.67 | Bullish Momentum | Healthy trend continuation |
| 1.50 | 1.50 | 1.00 | 50.00 | Neutral Equilibrium | Market at balance; wait for directional breakout |
| 1.00 | 2.00 | 0.50 | 33.33 | Approaching Oversold Floor | Watch for reversal candlestick patterns |
| 0.80 | 3.20 | 0.25 | 20.00 | Deep Oversold Panic | High probability of sharp mean-reversion bounce |
| 0.20 | 4.00 | 0.05 | 4.76 | Extreme Capitulation Sell-Off | Institutional liquidity absorption zone |
Zerodha Kite Technical Indicators & RSI Alerts
Plot 14-period RSI, Stochastic RSI, and automated overbought/oversold crossing alerts directly on multi-timeframe charts on Zerodha Kite.
Bullish and Bearish RSI Divergences
The most reliable technical setups generated by the RSI indicator are Divergences, which occur when the price chart and momentum oscillator move in opposite directions:
RSI Divergence Formations
1. Regular Bullish Divergence
The stock falls to a new low, but the RSI prints a distinctly higher low compared to the previous swing. This demonstrates that downward selling velocity has weakened, signaling an impending upward reversal.
2. Regular Bearish Divergence
The stock rallies to a fresh high, but the RSI peaks at a lower level than its prior peak. This reveals that buying volume and momentum are drying up, warning of an upcoming correction or distribution breakdown.
Wilder's Failure Swings: The Leading Indicator
J. Welles Wilder regarded Failure Swings as the most reliable indicator signal because they are completely independent of price action:
- Bullish Failure Swing:
- RSI drops below 30 (oversold).
- RSI bounces back above 30 to form a peak (Point A).
- RSI pulls back again, but holds above 30 (Point B, higher low).
- RSI breaks out above its prior peak (Point A). This breakout provides an objective confirmation that buyers have regained institutional control.
Why does RSI stay overbought in strong bull trends?
In strong trending markets, sustained institutional accumulation drives consecutive positive closes. Because average gains far exceed average losses, the mathematical ratio remains elevated. In strong trends, never short an asset simply because its RSI is above 70.
What is the difference between RSI and Stochastic Oscillator?
RSI measures the speed and change of price movements based on average gains and losses over 14 periods. The Stochastic Oscillator measures the location of the current closing price relative to the high-low range over 14 periods. Stochastics is faster and more reactive, while RSI is smoother and less prone to false whipsaws.
Can I change the default 14-period setting?
Yes. While 14 periods is the universal standard, short-term day traders often use 9-period RSI for faster signals, while long-term swing traders use 21 or 25-period RSI to smooth out intermediate volatility.
What is a Hidden Divergence?
While regular divergences signal trend reversals, Hidden Divergences signal trend continuation. A Bullish Hidden Divergence occurs when the price makes a higher low while RSI makes a lower low, indicating that a pullback has ended and the primary uptrend will resume.
Put this into practice
Model your investments, loans, and taxes with our free computational planners.

