The RSI indicator: momentum, overbought and divergence
How the Relative Strength Index is calculated, what overbought and oversold really mean, and how to use RSI divergence and ranges.
What RSI measures
The Relative Strength Index (RSI), created by J. Welles Wilder in 1978, measures the speed and size of recent price changes. It compares the average gains of recent candles with their average losses and squeezes the result into a scale from 0 to 100. High values mean recent gains have dominated; low values mean recent losses have dominated.
How it is calculated
For the standard 14-period RSI:
- For each candle, the gain is the rise in close (or 0), and the loss is the fall in close (or 0).
- Average the gains and the losses over 14 periods, using Wilder's smoothing (a type of moving average).
- Relative strength:
RS = average gain / average loss. RSI = 100 - 100 / (1 + RS).
If the price only rose for 14 candles, RSI approaches 100; if it only fell, RSI approaches 0. Equal gains and losses give 50.
Overbought and oversold - with care
The classic levels are 70 (overbought) and 30 (oversold). They are often misunderstood. Overbought does not mean "about to fall"; it means the price has risen fast. In a strong uptrend RSI can stay above 70 for a long time while the price keeps climbing. Selling simply because RSI crossed 70 is one of the most common beginner mistakes.
A more useful reading:
- In an uptrend, RSI tends to move between about 40 and 80; dips towards 40-50 can mark pullbacks where the trend resumes.
- In a downtrend, RSI tends to move between about 20 and 60; rallies towards 50-60 can mark the end of bounces.
- Readings above 70 or below 30 are most meaningful in sideways markets, where prices really do tend to return to the middle of the range.
Divergence
A divergence happens when the price and RSI disagree. In a bearish divergence the price makes a higher high but RSI makes a lower high: the new high was reached with less momentum. In a bullish divergence the price makes a lower low but RSI makes a higher low.
Divergence is a warning, not a trigger. Momentum can weaken for a long time before the price turns, and strong trends produce many divergences that fail. Wait for the price itself to confirm - for example a break of a recent swing point - before acting on one.
The 50 line
RSI above 50 means average gains exceed average losses over the period; below 50, the opposite. Some traders use crosses of 50 as a simple momentum filter: only look for buys when RSI is above 50, and only for sells when it is below.
Settings
Fourteen periods is the standard. Shorter settings (such as 7 or 9) make RSI more sensitive and reach extremes more often; longer settings (21 or 25) make it smoother. Changing the setting does not make RSI predictive - it changes how quickly it reacts.
RSI on TradeMuv
Add RSI from the Indicators menu; it opens in its own pane under the chart, with adjustable length, source, levels and colours. Combine it with a moving average on the price chart to see trend and momentum together, and use bar replay to see how RSI behaved before past turning points - and how often its "signals" failed.
One account. Every screen.
TradeMuv is the free trading chart platform: live charts, footprint and order flow, bar replay, paper trading, Pine Script, unlimited indicators and alerts - on your computer, tablet and phone, with one free account.
Explore all TradeMuv featuresFree · no card · no downloadEverything in this guide works in TradeMuv, free - no card, no trial.
Create free accountThis guide is for education only and is not financial advice. Trading involves risk. Risk disclaimer.
Keep learning
Bar replay hides the future and plays the market candle by candle. A step-by-step routine to practise reading charts and testing ideas without risk.
6 min readPracticeHow to paper trade: practise trading without risking moneyWhat paper trading is, how to start a free demo account on live charts, a practice routine that builds real skill, and the mistakes that mislead.
7 min readScriptingPine Script basics: write your first indicatorA gentle introduction to Pine Script: series, plots, inputs and a moving-average crossover - step by step, ready to run on a live chart.
8 min read