Relative Strength Index (RSI)
By Chad Smith, Director of Research & Analysis · Updated
On this page
The Relative Strength Index (RSI) is a momentum oscillator that compares the size of recent gains with the size of recent losses and plots the result between 0 and 100. J. Welles Wilder introduced it in 1978 in New Concepts in Technical Trading Systems. It is one of the most widely used indicators in trading, and its main uses are spotting stretched conditions, momentum shifts and divergence.
What it measures
RSI measures the speed and balance of price changes. It does not look at the price level itself. Instead, it asks: over the last N bars, how big were the up moves compared with the down moves?
When up moves have been much larger than down moves, RSI rises toward 100. When down moves dominate, it falls toward 0. A reading near 50 means gains and losses have roughly balanced. Because of this, RSI is a measure of momentum, not of trend direction alone, and it can turn before price does.
Note that RSI is not the same thing as "relative strength" in the sense of comparing one stock against an index. Wilder's RSI looks at a single market only.
The formula
For each bar:
Change = Close(today) − Close(yesterday)
Gain = Change if Change > 0, otherwise 0
Loss = −Change if Change < 0, otherwise 0
First averages (over the first N bars):
AvgGain = sum of Gains / N
AvgLoss = sum of Losses / N
Later bars (Wilder smoothing):
AvgGain = (previous AvgGain × (N − 1) + current Gain) / N
AvgLoss = (previous AvgLoss × (N − 1) + current Loss) / N
RS = AvgGain / AvgLoss
RSI = 100 − 100 / (1 + RS)
where N = the RSI period (14 by default)
Wilder's smoothing is a form of exponential average with α = 1 / N, which is slower than a standard EMA of the same length. That is why RSI values differ slightly if a platform uses a simple average instead.
Worked example (illustrative numbers). Suppose over 14 bars the average gain is 0.60 and the average loss is 0.30. RS = 0.60 / 0.30 = 2. RSI = 100 − 100 / (1 + 2) = 100 − 33.3 = 66.7. If the next bar is a loss of 0.90, the new average gain becomes (0.60 × 13 + 0) / 14 = 0.557 and the new average loss becomes (0.30 × 13 + 0.90) / 14 = 0.343. RS is now 1.62 and RSI drops to about 61.9.
Default settings
| Setting | Conventional value |
|---|---|
| Period | 14 |
| Overbought | 70 |
| Oversold | 30 |
| Source | Close |
Shorter periods, such as 7 or 9, make RSI faster and more extreme. Longer periods, such as 21 or 25, make it smoother. RSI is built into MetaTrader, TradingView and practically every trading platform.
How to read it
Overbought and oversold. Readings above 70 are called overbought, and readings below 30 are called oversold. These describe recent momentum, not a guaranteed reversal. In strong trends, RSI can stay above 70 or below 30 for long stretches.
The 50 line. RSI above 50 means average gains exceed average losses. Some traders treat a hold above 50 as a sign of bullish momentum and a hold below 50 as bearish.
Trend ranges. In uptrends, RSI tends to stay in a higher band, often bouncing off the 40 to 50 area rather than reaching 30. In downtrends, it tends to fail in the 50 to 60 area. Recognizing the range helps avoid fighting the trend.
Divergence. Bearish divergence is a higher high in price with a lower high in RSI. Bullish divergence is a lower low in price with a higher low in RSI. Both suggest the move is losing force.
RSI vs the stochastic oscillator
RSI and the stochastic oscillator are often confused because both run from 0 to 100 and both mark overbought and oversold zones. They measure different things.
RSI compares the size of gains with the size of losses over time. The stochastic compares the latest close with the highest high and lowest low of the period, so it measures where price sits within its recent range. The stochastic is more sensitive and reaches its extremes more often. RSI is smoother and better suited to divergence work.
The stochastic RSI combines the two by applying the stochastic formula to RSI values, which produces a much faster oscillator.
Common strategies
Fading extremes in a range
In sideways markets, traders look to sell when RSI turns down from above 70 near resistance, and buy when it turns up from below 30 near support. Waiting for RSI to cross back inside the level filters some early entries.
Trading with the trend
In an uptrend, a dip in RSI toward 40 can mark a pullback to buy rather than a reason to sell. In a downtrend, a rise toward 60 can mark a rally to sell. This uses RSI to time entries within the larger trend.
Divergence at key levels
Divergence carries more weight when it forms at a clear price level or alongside a reversal pattern such as a double top or shooting star. On its own, divergence can persist through several new highs or lows.
Failure swings
Wilder described failure swings: RSI moves above 70, pulls back, fails to make a new high, then breaks below its pullback low. This signals a momentum failure independent of price patterns.
Weaknesses
RSI can stay overbought or oversold for a long time in trends. Selling every reading above 70 in a strong uptrend leads to repeated losses.
Divergence is early. It often appears several times before a reversal, and sometimes no reversal follows at all.
The fixed 70 and 30 levels are conventions, not laws. Different markets and periods behave differently, and the levels that work as context on one chart may be poor on another.
RSI ignores volume and gives no direct information about volatility. A large move on thin participation can produce the same reading as a broad move.
Indicators it pairs with
- A moving average or ADX, to decide whether the market is trending or ranging before reading RSI levels.
- MACD, for a second, trend-based view of momentum.
- Bollinger Bands, where an RSI extreme at a band touch adds context.
- The money flow index, a volume-weighted cousin of RSI.
- Support and resistance levels, which give RSI signals a location.
- The Relative Vigor Index, which measures momentum from where each bar closes relative to its open.
The technical analysis course explains how momentum oscillators fit with trend tools and price action.
Brokers with strong charting to practice on
Put this into practice on a demo account first, with no money at risk.
- Featured broker
Pepperstone4.7 / 5Visit
IC Markets4.9 / 5Visit
GO Markets4.8 / 5Visit
Frequently asked questions
What does RSI measure?
RSI compares the size of recent up moves with recent down moves and expresses the result on a scale from 0 to 100. High readings mean gains have dominated, and low readings mean losses have dominated.
What are the standard RSI overbought and oversold levels?
The classic levels are 70 for overbought and 30 for oversold. Some traders use 80 and 20 in strong trends to reduce early signals.
Does an overbought RSI mean price will fall?
No. Overbought only means recent gains have been strong. In a powerful uptrend RSI can stay high for a long time while price keeps rising.
What is the difference between RSI and the stochastic oscillator?
RSI compares the size of gains and losses over time, while the stochastic compares the close with the high-low range. The stochastic usually moves faster and reaches extremes more often.
What is RSI divergence?
Divergence happens when price makes a new high or low but RSI does not. It suggests momentum is fading behind the move, though it is a warning rather than a timing signal.