The Relative Strength Index (RSI), introduced by J. Welles Wilder in 1978, measures how strongly a price has been rising compared with how strongly it has been falling over a recent window, usually 14 periods. The result moves between 0 and 100.
High readings mean recent gains have dominated; low readings mean losses have dominated. RSI is one of the most widely used indicators in the world and is built into almost every charting platform.
- Price (sample data)
- RSI (14)
Calculated on an illustrative price series, not real market data. Dashed lines mark the common 30 and 70 levels.
How it is calculated
RSI = 100 − 100 ÷ (1 + RS), RS = average gain ÷ average loss
- average gain
- Wilder’s smoothed average of up-moves over n periods (losses count as 0)
- average loss
- Wilder’s smoothed average of down-moves over n periods, as positive numbers
- n
- look-back period, 14 by default
Wilder’s smoothing: new average = (previous average × (n − 1) + current value) ÷ n. Different platforms may show slightly different values if they smooth differently.
How traders read it
- Overbought and oversold: readings above 70 are often called overbought and below 30 oversold. In strong trends RSI can stay above 70 or below 30 for a long time, so these are warnings, not signals on their own.
- Trend regime: in uptrends RSI tends to hold between roughly 40 and 80; in downtrends between roughly 20 and 60. Where it oscillates says something about the trend.
- Divergence: price makes a new high but RSI makes a lower high (bearish divergence), or the reverse at lows. It suggests momentum is fading, but divergences can persist for many bars.
- Centre line: some traders treat moves above or below 50 as a simple momentum filter.
Common settings
- 14 periods is the standard. Shorter settings (such as 9) react faster and give more signals; longer ones (such as 21) are smoother.
- Some traders use 80/20 instead of 70/30 to reduce false signals in strong trends.
- The same settings behave differently on daily, hourly or weekly charts.
Limitations
RSI is calculated only from past closing prices, so it lags and cannot know about news. “Oversold” markets can keep falling, and buying every reading below 30 in a downtrend has often meant buying too early.
Academic evidence on simple oscillator rules is mixed, and results usually weaken after trading costs. RSI is best used as one piece of evidence alongside trend, volatility and volume.
Works well with
A trend filter such as the 200-day moving average or ADX helps decide whether to read RSI as a reversal tool (in ranges) or a pullback tool (in trends). Bollinger Bands add a volatility view. See how to combine indicators.
Worked example
Worked example
Over the last 14 days the average gain on up days was 1.20 and the average loss on down days was 0.80. RS = 1.20 ÷ 0.80 = 1.5, so RSI = 100 − 100 ÷ (1 + 1.5) = 60.
A reading of 60 means gains have outweighed losses recently, but not to an extreme. If the average loss fell close to zero during a straight run of up days, RSI would approach 100.
Common mistakes
- Treating 70 as an automatic sell. In strong uptrends RSI can stay above 70 for weeks.
- Ignoring the trend. Oversold readings in a downtrend are common and often followed by further falls.
- Comparing RSI values calculated with different periods or methods.
Frequently asked questions
What is a good RSI setting?
14 periods is the default and the most widely used. Shorter periods make RSI more sensitive; longer periods make it smoother. No setting works best in every market.
Does RSI above 70 mean sell?
Not by itself. It means recent gains have been strong. In a strong uptrend RSI can stay above 70 for weeks while the price keeps rising.
Related
More momentum oscillators
- Relative Strength Index (RSI)
- Stochastic Oscillator
- Williams %R
- Commodity Channel Index (CCI)
- Rate of Change (ROC)
Indicators describe what prices have done; none of them predicts what prices will do. Charts use an illustrative price series, not real market data. This page is education, not investment advice.