1. Valmy
  2. Learn
  3. Technical analysis
  4. T7

What does RSI measure, and why do "overbought" signals fail?

Intermediate 14 min read

Short answerThe relative strength index (RSI) compares the size of a market's recent up-closes with its recent down-closes. It averages close-to-close gains and losses over the last 14 bars and scales the result from 0 to 100: near 100 means almost all recent movement was up, near 0 down, and 50 a balance. Readings above 70 are called "overbought" and below 30 "oversold", but they describe the recent past. "Overbought" signals fail because a strong uptrend keeps producing mostly up-closes: in a synthetic uptrend shown later, RSI closed above 70 on 29 of 56 days while price rose 26.7%, and a rule that sold short there lost twice.

Before treating a reading above 70 as a reason to sell, check whether the market is trending or moving sideways, and which smoothing method your platform uses, because two platforms can show different RSI values for the same chart.

Valmy noteValmy's v1 strategy language includes the simple moving average and no other indicator, so RSI is taught here for reading charts (as of 26 November 2026).

Relative strength index (RSI): how far recent gains outweigh recent losses#

The relative strength index (RSI) is a momentum oscillator published by J. Welles Wilder Jr. in his 1978 book New Concepts in Technical Trading Systems. Its only input is the closing price; it ignores the open, high, low and volume. Each close is compared with the previous one, and the change counts as a gain if positive or a loss if negative. RSI = 100 − 100 ÷ (1 + RS), where RS is the average gain divided by the average loss over the lookback. The result has no units and always lies between 0 and 100. The default lookback is 14 bars, averaged with Wilder's smoothing, and Wilder treated readings above 70 as overbought and below 30 as oversold.

Turning the formula around shows what a reading means: RS = RSI ÷ (100 − RSI).

  • RSI 50: recent average gains equal recent average losses.
  • RSI 70: average gains are 2.33 times average losses.
  • RSI 80: average gains are 4 times average losses.
  • RSI 30: average gains are only 0.43 times average losses.

RSI measures how one-sided recent movement has been, not how far price has traveled. A market that creeps up by small amounts almost every day can show a higher RSI than one that jumped 20% and then had a few sharp down days.

A naming trap. "Relative strength" in RSI compares a market's up-moves with its own down-moves. It is unrelated to the relative strength that compares a stock or token with a benchmark, which is covered in How fast is price moving, and is it beating the market?

Calculating RSI step by step#

To calculate RSI with a lookback of n bars: split each close-to-close change into a gain or a loss, take the simple average of the first n gains and of the first n losses, then update each average on every later bar as (previous average × (n − 1) + this bar's value) ÷ n. RSI = 100 − 100 ÷ (1 + average gain ÷ average loss). The example below uses n = 5 on nine invented closes so the arithmetic stays short; RSI(14) follows the same steps with 14 in place of 5. It gives 73.33 at bar 5, 80.41 at bar 6, 69.73 at bar 7 and 55.84 at bar 8.

Bar Close Change Gain Loss Average gain Average loss RSI(5)
0 100.00
1 101.20 +1.20 1.20 0
2 100.50 −0.70 0 0.70
3 101.80 +1.30 1.30 0
4 102.60 +0.80 0.80 0
5 102.10 −0.50 0 0.50 0.6600 0.2400 73.33
6 103.40 +1.30 1.30 0 0.7880 0.1920 80.41
7 102.80 −0.60 0 0.60 0.6304 0.2736 69.73
8 101.90 −0.90 0 0.90 0.5043 0.3989 55.84
  1. Split each change. A change of +1.20 is a gain of 1.20 and a loss of 0. A change of −0.70 is a gain of 0 and a loss of 0.70.
  2. Start with simple averages. The first five changes contain gains of 3.30 in total and losses of 1.20. Average gain = 3.30 ÷ 5 = 0.66. Average loss = 1.20 ÷ 5 = 0.24.
  3. Compute RSI. RS = 0.66 ÷ 0.24 = 2.75. RSI = 100 − 100 ÷ 3.75 = 73.33 at bar 5.
  4. Smooth each later bar. Wilder's rule is: new average = (previous average × 4 + this bar's value) ÷ 5. With 14 bars it is (previous × 13 + this bar's value) ÷ 14. At bar 6 the gain is 1.30: average gain = (0.66 × 4 + 1.30) ÷ 5 = 0.788, and average loss = (0.24 × 4 + 0) ÷ 5 = 0.192. RS = 4.10 and RSI = 80.41.
  5. Repeat. Bar 7 falls 0.60: average gain = 0.788 × 4 ÷ 5 = 0.6304, average loss = (0.192 × 4 + 0.60) ÷ 5 = 0.2736, RSI = 69.73. Bar 8 falls 0.90: average gain = 0.5043, average loss = 0.3989, RS = 1.26, RSI = 55.84.

Two small down-closes took price only 1.45% below its bar 6 close, yet RSI dropped 24.6 points. RSI reacts to the mix of up and down closes, so a few losses after a run of gains move it quickly, especially with a short lookback.

Wilder's smoothing compared with simple and exponential averages#

Platforms do not all average gains and losses the same way, so the same chart can show different RSI values. Wilder's smoothing is an exponential average that gives each new bar a weight of 1 ÷ n, which is 1 ÷ 14 ≈ 0.071 for RSI(14). TA-Lib's open-source RSI follows Wilder's method, and TradingView's help page writes its RSI formula with a running average it calls rma. Two other variants are common:

  • Simple-average RSI, often called Cutler's RSI, uses the plain mean of the last n gains and losses. Old bars drop out completely after n bars.
  • EMA-based RSI uses a standard exponential moving average with weight 2 ÷ (n + 1), which is 2 ÷ 15 ≈ 0.133 for 14 bars. Each new bar gets almost twice the weight it gets in Wilder's version.

On the nine closes above, at bar 8, Wilder's RSI(5) is 55.84, the simple-average version is 51.22 and the EMA version is 43.49 (all three start from the same averages at bar 5). On the synthetic uptrend in Figure 2 below, the last day reads 81.5 with Wilder's smoothing, 97.8 with simple averages and 90.3 with an EMA. Only 3 of the last 14 closes were down, and those losses summed to 0.34 against gains of 15.38, so the simple average sees almost no losses while Wilder's average still remembers older ones. Over the 56 trend days, RSI closed above 70 on 29 days with Wilder's smoothing, 35 with simple averages and 34 with an EMA. A threshold rule therefore fires on different days depending on the variant. When you compare RSI values across tools, check which method each one documents.

Warm-up: why early RSI values depend on how much history is loaded#

Wilder's smoothing never completely forgets its starting point. The first RSI uses a simple average of the first 14 changes, and every later value carries a shrinking share of that start: after 60 more bars about 1.2% of the starting average is still in the current one (13/14 multiplied by itself 60 times). So an RSI computed on a short history can differ from one computed on a long history, even for the same day.

The last day of the synthetic uptrend in Figure 2 shows the effect. With all 111 bars loaded, RSI(14) is 81.5. With only the last 60 bars it is 81.6, with 30 bars 77.7, with 20 bars 78.7, and with the minimum 15 bars it is 97.8, because that first value is a plain average.

Platforms handle this differently. TA-Lib outputs a value from the 15th close by default and offers an optional "unstable period" setting that discards early values; at its recommended level, a 14-bar RSI needs 154 bars before the first value it reports. StockCharts says its charts compute RSI from at least 250 earlier data points. A chart that starts its calculation at the first visible bar can show early RSI values that disagree with another platform's.

Reading RSI on a chart#

On a chart, RSI sits in its own panel below price, with dashed lines at 70 and 30. In a market without a lasting trend, readings beyond those lines often arrive near the end of a swing, because a swing that has run for a week is made mostly of closes in one direction. Figure 1 shows 63 days of synthetic daily candles whose closes stay between 91.08 and 108.17. The candles open at the previous close, as in a market that trades around the clock.

Synthetic daily candlestick chart with RSI(14) below it. Closes swing between 91.08 and 108.17 over 63 days. Point A marks RSI at 23 on day 8 after a slide, followed by a bounce to 98.13. Point B marks RSI at 72 on day 29, followed by a fall to 92.90. Point C marks RSI at 70 on day 45, followed by sideways trading.
Figure 1. Synthetic data, designed for this lesson. In a market without a trend, RSI extremes at A and B came near the ends of swings, while C was followed only by a sideways drift.
  • Point A, day 8. After seven days of mostly lower closes, from 100.46 to 91.08 (−9.3%), RSI fell to 23.2. It was below 30 on days 5 to 8. Price then bounced to 98.13 by day 15, a rise of 7.7%.
  • Point B, day 29. A climb took RSI to 72.0 at a close of 103.81. Suppose a trader's rule is to sell short at the next candle's open after RSI first closes above 70, and to buy back at the next open after RSI closes below 50. The short opens on day 30 at 103.81 and is closed on day 34 at 97.65, a gain of 5.9% before fees. Price kept falling to a close of 92.90.
  • Point C, day 45. RSI reached 70.3 at 106.97. The same rule shorts at 106.97, but RSI never closes below 50 before the chart ends, and the position shows only +2.4% at the last close of 104.40.

Even in this friendly setting, RSI crossed 70 or 30 only three times in 63 days, and one of the three led to little. These examples were designed to show the mechanism and cannot tell you how often such signals work in real markets.

When RSI misleads: "overbought" in an uptrend#

In a steady uptrend RSI can stay above 70 for long stretches, because most closes in the 14-bar window are up and the average gain stays several times the average loss. An "overbought" reading then describes the trend's strength, and a rule that sells on it fights the trend. In the synthetic uptrend of Figure 2, price rose 26.7% in 56 days, RSI closed above 70 on 29 of them, and a rule that sold short when RSI crossed above 70 lost 6.2% and then 4.7%.

Synthetic daily candlestick chart with RSI(14) below it. After a quiet stretch, closes climb from 100.82 on day 16 to 127.72 on day 71. RSI closes above 70 on 29 of the 56 trend days and never falls below 46.7. Short 1 opens on day 22 at 106.08 and is covered on day 58 at 112.68. Short 2 opens on day 66 at 121.94.
Figure 2. Synthetic data, designed for this lesson. RSI stayed high while the trend continued, and both short sales triggered by RSI rising above 70 lost money.

From day 16 to day 71, the close rose from 100.82 to 127.72. RSI peaked at 82.1 and never fell below 46.7. The rule is the one used at point B of Figure 1: sell short at the next open after RSI first closes above 70, and buy back at the next open after RSI closes below 50.

  • Short 1. RSI crossed above 70 on day 21. The rule sold short at the day 22 open of 106.08. RSI did not close below 50 until day 57, so the short was covered at the day 58 open of 112.68: a loss of 6.2% before fees.
  • Short 2. RSI crossed above 70 again on day 65. The short opened on day 66 at 121.94 and was still open at the last close of 127.72: a loss of 4.7%.

Traders read the same chart in competing ways. One treats RSI above 70 as a warning that the move is stretched. Another treats it as confirmation that buyers are in control and looks for entries when RSI pulls back toward 40 to 50 instead. StockCharts describes an observation by the analyst Constance Brown that RSI tends to move within a band of about 40 to 90 in uptrends and about 10 to 60 in downtrends, with the exact ranges depending on settings and volatility. Deciding whether a market is trending comes first; Is this market trending or stuck in a range? covers that question.

When RSI misleads: a bullish divergence that fails#

A bullish divergence occurs when price makes a lower low but RSI makes a higher low. Wilder treated divergences as warnings that a move was losing momentum. A higher RSI low only says the second decline was made of smaller or fewer losses than the first. It does not say that selling has finished, and a falling market can produce several divergences before it turns, or none at all. In the synthetic example of Figure 3, a buy after the divergence lost 4.8% with a predefined exit, and price went on to fall 19.1% below the entry.

Synthetic daily candlestick chart with RSI(14) below it. Low 1 on day 13 closes at 87.94 with RSI 16. Low 2 on day 29 closes lower at 87.09 with a higher RSI of 31. RSI closes above 50 on day 33, a buy follows at 90.37 on day 34, and price then falls to 86.04 by day 39 and to 73.10 by day 52.
Figure 3. Synthetic data, designed for this lesson. The lower price low came with a higher RSI low, yet price fell to new lows after the buy.
  • Low 1, day 13: close 87.94, RSI 16.1.
  • Low 2, day 29: close 87.09, lower than Low 1, with RSI 30.5, higher than at Low 1. This is the divergence.
  • Confirmation and entry. Suppose a trader waits for RSI to close back above 50, which happened on day 33 (50.3), and buys at the next open, 90.37 on day 34.
  • Outcome. On day 39 price closed at 86.04, below Low 2's close. A trader who had decided in advance to exit after such a close sold at the day 40 open of 86.04, a loss of 4.8% before fees. Without that exit, the position would have been down 19.1% at the last close of 73.10 on day 52.

The divergence was real, and so was the failure. A predefined exit turned a 19.1% decline into a 4.8% loss.

RSI on stock and crypto charts#

RSI counts bars, not calendar days, so the same setting covers different spans of time in different markets. Crypto pairs trade every day, so RSI(14) on daily candles covers 14 calendar days. US stocks trade about 252 days a year, so 14 daily bars span almost three calendar weeks, more when a holiday falls inside.

  • Gaps. A stock's overnight gap is part of the first bar's close-to-close change, so a large gap can move RSI sharply in one bar. On intraday stock charts the first candle of each session carries the overnight move. Crypto pairs have no session breaks, although quiet hours and weekends can still produce long runs of small changes.
  • Which close. A crypto daily candle closes at a time the platform or exchange chooses, because the market never closes. Two platforms using different daily cutoffs, or different exchanges' prices for the same pair, can show different RSI values.
  • History. As the warm-up section shows, the amount of history each platform loads also changes early values.

Check your understanding: RSI#

Question. A daily RSI(14) uses Wilder's smoothing. After yesterday's close, the average gain was 1.20 and the average loss was 0.80. Today's close is 2.00 higher than yesterday's.

  1. What was yesterday's RSI?
  2. What are today's average gain, average loss and RSI?
  3. Over the next eight days the market keeps rising, and RSI reaches 78. A trader proposes selling short because RSI is "overbought". What does a reading of 78 tell you, and what would you want to know before acting on it?
Show the answers

Answer.

  1. RS = 1.20 ÷ 0.80 = 1.5, so RSI = 100 − 100 ÷ 2.5 = 60.0.
  2. Average gain = (1.20 × 13 + 2.00) ÷ 14 = 17.60 ÷ 14 = 1.2571. Today has no loss, so average loss = 0.80 × 13 ÷ 14 = 0.7429. RS = 1.2571 ÷ 0.7429 = 1.69, and RSI = 100 − 100 ÷ 2.69 = 62.86. One strong up-close moved RSI less than 3 points, because Wilder's smoothing gives it a weight of only 1 ÷ 14.
  3. RSI 78 means the average gain is 78 ÷ 22 = 3.55 times the average loss: recent closes have been mostly and strongly up. It says nothing on its own about a reversal. Before acting, a trader would want to know whether the market is trending or ranging, whether price itself has shown a sign of turning (for example a close below a recent swing low), which smoothing method the platform uses, and where the exit would be if the rise continues. In the synthetic uptrend of Figure 2, the same kind of rule lost 6.2% and then 4.7%.