RSI explained

BEGINNER·15 min read·Reviewed 16 October 2026·Technical Analysis

What you will learn

  • What the relative strength index (RSI) measures, and how to calculate it by hand from closing prices.
  • What the 70, 30 and 50 lines mean, and why “overbought” is a misleading word in a trend.
  • How RSI divergence is defined, and what it looks like on a real chart.
  • What published tests and our own event study on five instruments show about trading on RSI levels.

The idea in plain words

Over any stretch of candles, some closes are higher than the one before and some are lower. The relative strength index (RSI) asks one question: of all the movement lately, how much of it was up? It compares the typical size of the up-moves with the typical size of the down-moves and squeezes the answer into a number between 0 and 100.

If nearly all the recent movement was up, the RSI is close to 100. If nearly all was down, it is close to 0. If up-moves and down-moves have been about equal, it sits near 50. That is all it is: a measure of how one-sided the recent closes have been.

J. Welles Wilder Jr. introduced the RSI in his 1978 book New Concepts in Technical Trading Systems, the same book that the ATR and the ADX in other lessons come from. Because it has a fixed range, it looks the same on any instrument and any timeframe, which is why it is one of the most popular indicators. It is also one of the most misread, because a high number looks like a warning when in a strong trend it is simply a description.

How it works

The calculation, step by step

The standard setting is 14 candles. Using the closes:
1. For each candle, find the change from the previous close. If it is positive it is a gain, if it is negative it is a loss (stored as a positive number). A candle with no change is zero in both.
2. For the first RSI, add up the 14 gains and divide by 14, and do the same for the 14 losses, to get the average gain and the average loss. (Candles with no gain count as zero gain.)
3. Divide the average gain by the average loss. This is the relative strength: RS = average gain ÷ average loss.
4. RSI = 100 − 100 ÷ (1 + RS).

For every candle after the first, the averages are updated with Wilder’s smoothing, a running average that gives the older data a gradually fading weight:

new average gain = (previous average gain × 13 + current gain) ÷ 14
new average loss = (previous average loss × 13 + current loss) ÷ 14

and the RSI is recalculated from the new averages. The same smoothing underlies Wilder’s ATR. Because of this carry-over, the RSI at a given candle depends on the whole history, not just the last 14 candles, and different platforms start the first average differently, so values can differ by a point or two between platforms. Our engine follows the common convention of seeding with the simple averages of the first 14 changes.

When the average gain is much larger than the average loss, RS is large and the RSI approaches 100. When they are equal, RS is 1 and the RSI is exactly 50. When the average loss dominates, RS is small and the RSI approaches 0.

The lines: 70, 30 and 50

The conventional reading, usually attributed to Wilder, treats values above 70 as overbought and below 30 as oversold. These are conventions, not laws, and other traders use 80 and 20, or 60 and 40 in trends. The 50 line is the balance point: above 50 means gains have outweighed losses recently, below 50 the reverse. The word “overbought” suggests price has gone too far and must fall, and that is exactly what needs testing, as we do below. In plain terms, an RSI above 70 means that recent closes have been strongly one-sided, nothing more.

RSI in a trend

A strong trend produces one-sided closes for a long time, so the RSI can stay above 70 for many candles. We measured how much more often this happens in trends. For each instrument and timeframe we counted the share of candles with an RSI above 70, overall and split by the ADX trend-strength label from the trends lesson:

RSI in a trend
Instrument and timeframe RSI above 70, all candles When ADX is 25 or more When ADX is below 20
EUR/USD H4 4.3% 7.9% 0.4%
GBP/USD H4 4.9% 9.3% 0.9%
XAU/USD H4 7.8% 12.4% 1.4%
XAU/USD D1 11.5% 20.7% 1.0%
BTC/USD D1 10.5% 17.5% 2.3%

In nine of the ten instrument-and-timeframe combinations we measured, RSI readings above 70 were several times more common when the ADX showed a strong trend, and were rare when it showed a range. The exception was USD/JPY on H4, where the share was about 8.5% in both states. Readings above 70 are therefore mostly a feature of trending markets, which is exactly where “overbought” is least likely to mean “about to fall”.

RSI divergence

A divergence is when price and RSI disagree. In a regular bearish divergence, price makes a higher high while the RSI makes a lower high, which says the push to the new high was less one-sided than the previous one. A regular bullish divergence is the mirror image: price makes a lower low while the RSI makes a higher low. Hidden divergences are the continuation versions: a higher low in price with a lower RSI low (hidden bullish), or a lower high in price with a higher RSI high (hidden bearish).

Our engine defines them exactly. It finds the last two swing highs (or lows) of price, requires them to be at least five candles apart, requires the second to be recent, and requires the RSI values at the two points to differ by at least one point. It reports the divergence only after the second swing is confirmed (three candles later). Whether divergences predict anything is a separate question, and we did not find a rigorous test of RSI divergence signals.

What the research says

  • Wong, Manzur and Chew (Applied Financial Economics, 2003) tested moving-average and RSI rules on Singapore stock data and report that the indicators generated significantly positive returns.
  • Chong and Ng (Applied Economics Letters, 2008) tested the RSI and MACD rules on 60 years of data for the London Stock Exchange FT30 index and report that the rules could generate returns higher than buy and hold in most cases.
  • Park and Irwin (Journal of Economic Surveys, 2007) surveyed the field and found 56 of 95 modern studies positive, 20 negative and 19 mixed, and warned of data snooping, rules chosen after the fact and weak handling of costs.

Both RSI studies are about stock indices, over long histories. Neither says anything about a forex pair or a CFD today. They are evidence that rules like this have sometimes worked, in some markets, and they sit inside a literature that its own surveyors call mixed.

Our event study

We looked at what happened after the RSI first crossed above 70 (from 70 or below) and after it first crossed below 30. For each event we measured the change in price over the next 12 candles, in units of that candle’s ATR, so the instruments are comparable. We compared it with the average 12-candle change after any candle in the same data. The results for EUR/USD, GBP/USD, USD/JPY, XAU/USD and BTC/USD on H4 and D1 candles (the last 1,500 candles of each, to 15 October 2026) are:

Our event study
Timeframe, instrument All candles After first close above 70 (events, mean, standard error) After first close below 30
D1 EUR/USD −0.17 16, −0.90 (0.50) 25, +0.15 (0.33)
D1 GBP/USD −0.09 17, −0.86 (0.42) 19, +0.62 (0.46)
D1 USD/JPY +0.46 30, +0.27 (0.62) 16, +0.22 (0.62)
D1 XAU/USD +0.58 34, +0.94 (0.54) 9, +0.98 (0.52)
D1 BTC/USD +0.53 26, +1.14 (0.84) 15, +0.49 (0.82)
H4 EUR/USD −0.11 17, +0.20 (0.57) 29, +0.28 (0.34)
H4 GBP/USD +0.05 18, −0.11 (0.41) 26, +0.67 (0.31)
H4 USD/JPY 0.00 34, −0.97 (0.61) 17, −0.73 (0.72)
H4 XAU/USD +0.07 30, +0.06 (0.51) 19, −0.01 (0.48)
H4 BTC/USD +0.18 22, −0.05 (0.69) 12, +0.99 (0.90)

How to read it. The numbers are average moves in ATR units, with standard errors in brackets. A mean is only convincing if it is well away from the all-candle average in comparison with its standard error.
– The standard errors are large, between 0.3 and 0.9 ATR, because there are only 9 to 34 events per row.
– After a reading above 70, the move was below the all-candle average in 7 of the 10 rows, and after a reading below 30 it was above the average in 6 of the 10. That is a faint tilt in the direction the “overbought and oversold” idea suggests, but the other rows go the other way, and in most rows the gap to the average is within about one standard error.
– The events overlap (each event looks 12 candles ahead, and events can be close together), so the real uncertainty is larger than the standard errors suggest.
– This is one feed, one window, five instruments and a plain definition of an event. It is not a test of a trading strategy, because it ignores costs, stops and position size. We read it as “no clear, consistent signal in this data”, not as proof that RSI levels are useless.

Worked examples

Example 1: calculate an RSI by hand

These are 15 consecutive 4-hour closes of EUR/USD on the demo feed, oldest first:
1.12033, 1.12091, 1.11950, 1.11290, 1.11236, 1.11554, 1.11961, 1.12155, 1.12159, 1.12140, 1.12070, 1.12188, 1.12124, 1.12290, 1.12451.

  1. The 14 changes, in pips, are: +5.8, −14.1, −66.0, −5.4, +31.8, +40.7, +19.4, +0.4, −1.9, −7.0, +11.8, −6.4, +16.6, +16.1.
  2. Gains: 5.8 + 31.8 + 40.7 + 19.4 + 0.4 + 11.8 + 16.6 + 16.1 = 142.6 pips. Losses: 14.1 + 66.0 + 5.4 + 1.9 + 7.0 + 6.4 = 100.8 pips.
  3. Average gain = 142.6 ÷ 14 = 10.19 pips. Average loss = 100.8 ÷ 14 = 7.20 pips.
  4. RS = 10.19 ÷ 7.20 = 1.415.
  5. RSI = 100 − 100 ÷ (1 + 1.415) = 100 − 41.4 = 58.6.

An RSI of 58.6 says that gains have outweighed losses over these 14 candles, but not overwhelmingly. The engine’s RSI at the last candle, which also carries the history before these 15 closes through Wilder’s smoothing, was 61.7, so the two numbers differ for exactly the reason given above.

EUR/USD 4-hour candles with the RSI(14) panel: the largest loss (-66.0 pips), three large gains and a final RSI of 58.6
What to notice: That one large down candle early in the window pulls the RSI down for as long as it remains in the average.

Example 2: “overbought” in a trend, and a divergence that preceded a fall

In a trend. On 22 to 27 January 2026 EUR/USD rose about 364 pips on the 4-hour chart in an up-trend by our swing rule (the up-trend example in the trends lesson). The RSI started at 52.8 on 22 January 00:00, first closed above 70 on 23 January at 16:00 (71.2), and stayed above 70 on 14 of the 24 candles. It peaked at 89.6 at the final swing high. At the swing highs the readings were 65.8, 78.5, 78.3 and 89.6, rising. A trader who sold at the close when the RSI first passed 70 (1.17943) would have sold 251 pips below the final close of the move (1.20457) and 289 pips below its last swing high (1.20830).

A divergence. On the same feed, EUR/USD made two swing highs on 20 and 21 August 2026 (the double top in the support and resistance lesson): 1.17106 with an RSI of 76.9, then 1.17113 with an RSI of 68.2. Price made a marginally higher high (0.7 pips) while the RSI made a lower high, 8.7 points lower. By our engine’s definition that is a regular bearish divergence. It was confirmed after the second swing high needed three more candles, at the Monday 24 August 00:00 candle, when price closed at 1.16851. In the following 30 candles price traded as low as 1.16365, 74.8 pips below the high, and it never exceeded 1.17113 in the remaining data.

Both examples were chosen after the fact. The first shows that a high RSI says little about when a trend will end. The second is one divergence that was followed by a fall. We did not test how often divergences work, and a divergence can easily be followed by a new high.

EUR/USD 4-hour candles with RSI(14): swing highs 1.17106 and 1.17113 with RSI 76.9 and 68.2, the RSI highs sloping down
What to notice: That price barely changed between the highs while the RSI fell by 8.7 points.

How to apply it step by step

  1. Add RSI(14) to the chart and note which side of 50 it is on.
  2. Check the trend first, using swings or the ADX. In a strong trend, treat readings above 70 (or below 30) as a description of strength, not a reversal signal.
  3. In a range, note how price behaved at the last three times the RSI reached 70 or 30 on this chart. Do not assume the next time is the same.
  4. If you look for divergence, use the engine’s definition or your own written one: two swing points, a minimum gap, a minimum RSI difference, and wait for the swing to be confirmed.
  5. Compute the RSI by hand once, as in Example 1, so you know what it is made of.
  6. Keep a log of every RSI signal you consider, what happened over the next 12 candles in ATR units, and the number of cases. Do not rely on any pattern with fewer than 30 cases.
  7. Never rely on one indicator. Pair the RSI with structure, levels and a plan with fixed risk.

Common mistakes

  • Selling just because the RSI is above 70. It is high because recent closes were one-sided. In a trend it can stay there for many candles, as it did for 14 of 24 candles in January.
  • Treating 70 and 30 as laws. They are conventions. Our data shows readings above 70 are mostly a feature of trending markets.
  • Ignoring the history in the calculation. The RSI depends on all previous candles through the smoothing, so two platforms can show slightly different numbers.
  • Trading divergence as a sure signal. We found no rigorous test of it, and a divergence can be followed by a new high.
  • Using the same settings everywhere. A shorter period (such as 7) reacts faster and spends more time at the extremes, a longer one is smoother. Choose before you look at results.
  • Testing on a few cases. Our event study had 9 to 34 events per row and standard errors of 0.3 to 0.9 ATR. A handful of examples proves nothing.

When it works and when it does not

The RSI works as a measure of how one-sided recent movement has been, and as a way to compare strength across instruments and timeframes. It is most informative in a range, where price tends to return from the extremes, and least reliable as a reversal signal in a strong trend, where it stays at the extremes.

The evidence on trading RSI levels is thin and mixed. Two published tests of stock-index data found RSI rules profitable, a major survey found the whole field mixed and warned about data snooping and costs, and our own event study found a faint tilt toward reversal that was not consistent across instruments and was mostly within statistical noise. Treat the RSI as a description of past price, and test any rule you build on it with costs and fresh data before you trust it.

Practice exercise

Use a 5-period RSI on these closes, oldest first: 44.0, 44.5, 44.2, 44.8, 45.1, 44.9.

  1. What are the five changes, and which are gains and losses?
  2. What is the average gain, average loss, RS and RSI (first RSI, using simple averages over 5 changes)?
  3. The next close is 45.3, a change of +0.4. Update the averages with Wilder smoothing (period 5) and find the new RSI.
  4. A trader sees an RSI of 76 on the daily chart during a strong up-trend and wants to sell. What should they check first?

Answers:
1. Changes: +0.5, −0.3, +0.6, +0.3, −0.2. Gains: 0.5, 0.6, 0.3. Losses: 0.3, 0.2.
2. Average gain = 1.4 ÷ 5 = 0.28. Average loss = 0.5 ÷ 5 = 0.10. RS = 2.8. RSI = 100 − 100 ÷ 3.8 = 73.7.
3. The change is +0.4 (a gain, zero loss). New average gain = (0.28 × 4 + 0.4) ÷ 5 = 0.304. New average loss = (0.10 × 4 + 0) ÷ 5 = 0.08. RS = 3.8. RSI = 100 − 100 ÷ 4.8 = 79.2.
4. They should check whether the market is trending (swings, ADX). In a strong trend a high RSI is common and is not a reversal signal by itself.

Key terms

RSI (relative strength index) – an indicator from 0 to 100 that measures how one-sided recent closes have been.
Gain / loss – the up-change or down-change of a close from the previous close.
RS (relative strength) – the average gain divided by the average loss.
Wilder’s smoothing – the running average (previous × 13 + new) ÷ 14 used in the RSI and ATR.
Overbought / oversold – labels for readings above 70 and below 30, which describe one-sided movement and do not predict a reversal.
Divergence – price and RSI making different highs or lows.
Regular divergence – a possible reversal pattern, such as a higher price high with a lower RSI high.
Hidden divergence – a possible continuation pattern, such as a higher price low with a lower RSI low.

Frequently asked questions

What does an RSI of 70 mean?

It means recent upward movement has been much larger than recent downward movement: with the standard 14 candles, the average gain is about 2.3 times the average loss. It is called overbought by convention, but it describes one-sided movement and does not say price will fall.

How is RSI calculated?

Find each close’s change from the previous close, average the gains and the losses over 14 candles, divide the average gain by the average loss to get RS, and compute 100 − 100 ÷ (1 + RS). After the first value, update the averages with Wilder’s smoothing.

Is RSI overbought a sell signal?

Not reliably. In our data an RSI above 70 was several times more common in strong trends than in ranges, and in EUR/USD in January 2026 it stayed above 70 for 14 of 24 candles during a 364-pip rise. Our event study found no clear, consistent drop after the first close above 70.

What is RSI divergence?

It is when price and the RSI disagree: for example, price makes a higher high while the RSI makes a lower high. Whether divergences predict reversals has not, to our knowledge, been shown in a rigorous test we could find.

What RSI setting is best?

No setting has been shown to be best. 14 is Wilder’s standard. Shorter periods such as 7 react faster and reach the extremes more often, longer ones are smoother.

Why does my RSI differ from another platform’s?

Because of how the first average is started and because of rounding. The RSI depends on the full history through the smoothing, so a different start can shift the values by a point or two.

Key takeaways

  • RSI = 100 − 100 ÷ (1 + average gain ÷ average loss), using Wilder’s smoothing over 14 candles.
  • 70 and 30 are conventions. Readings above 70 are several times more common in strong trends than in ranges.
  • Divergence is defined by two swing points and a minimum RSI gap, and it is confirmed only after the second swing.
  • Published tests on stock indices found RSI rules profitable, but the field is mixed and our own event study found no clear, consistent signal.
  • Treat RSI as a description of recent movement. Test any rule with costs and fresh data.

Quick quiz

Q1. Average gain is 0.30 and average loss is 0.10. What is the RSI?
A: RS = 3.0. RSI = 100 − 100 ÷ 4 = 75.

Q2. If average gain equals average loss, what is the RSI?
A: RS = 1, so RSI = 100 − 100 ÷ 2 = 50.

Q3. Why can RSI stay above 70 for many candles in a trend?
A: In a strong trend recent closes are mostly gains, so the average gain stays much larger than the average loss.

Q4. Price makes a lower low while the RSI makes a higher low. What is this called?
A: A regular bullish divergence.

Q5. Why do two platforms show slightly different RSI values?
A: The RSI carries the whole history through Wilder’s smoothing, and platforms start the first average in different ways.

Q6. Our event study found 7 of 10 rows below the average after a reading above 70. Why is that not strong evidence?
A: The standard errors were large, the events overlap, and the other rows went the other way, so the tilt is within noise.

Going deeper

Educational content only, not financial advice. Trading involves substantial risk of loss.