Learn / Guides

RSI indicator: formula, divergence and how to use RSI

RSI indicator explained: Wilder's formula with a 14-period worked example, bullish and bearish divergence, and why 70 and 30 stick in strong crypto trends.

By the CryptoPith research team · Published 17 November 2026 · Updated 17 November 2026 · 11 minute read. Educational content, not financial advice.
Price line with an oscillator below, moving in and out of a shaded middle band

The RSI indicator, or Relative Strength Index, is a momentum oscillator. It compares the size of recent gains with the size of recent losses and puts the result on a scale from 0 to 100. J. Welles Wilder Jr. published it in 1978 with a default of 14 periods and the levels 70 (overbought) and 30 (oversold). RSI tells you how one-sided recent moves have been, not where the price goes next. It is most useful for spotting fading momentum and reading trend strength, and least useful as a plain "sell at 70, buy at 30" rule.

This article is educational and is not financial advice.

What is RSI? The meaning of the number

RSI answers one question: over the last 14 candles, did the rises or the falls carry more weight? The number is a ratio of the two, squeezed into a fixed range.

  • Around 50: gains and losses were about equal.
  • 70 and above: gains clearly outweighed losses. By convention this is called overbought.
  • 30 and below: losses clearly outweighed gains. By convention this is called oversold.

The RSI meaning is about speed and balance, not value. "Overbought" does not mean the price is too high. It means the price rose quickly and with few pullbacks, which can continue for a long time in a strong trend.

Because RSI always stays between 0 and 100, you can compare readings across coins, even when their prices are very different.

The RSI formula, with Wilder's smoothing

The RSI formula has two parts: the relative strength (RS) and the conversion to a 0–100 scale. Wilder did not use a plain average. He used a smoothed one, so each new candle shifts the reading gradually.

1. change     = close − previous close
   gain       = change if positive, otherwise 0
   loss       = −change if negative, otherwise 0

2. first average gain = sum of gains over 14 candles / 14
   first average loss = sum of losses over 14 candles / 14

3. after that (Wilder's smoothing):
   average gain = (previous average gain × 13 + current gain) / 14
   average loss = (previous average loss × 13 + current loss) / 14

4. RS  = average gain / average loss
   RSI = 100 − 100 / (1 + RS)

The smoothing has a side effect. Every past candle keeps a small weight, so RSI depends on where the calculation started. StockCharts notes that it uses at least 250 earlier data points so that its values settle. Two sites can show slightly different RSI for the same coin because they start from different points, use a simple average instead of Wilder's, or close the daily candle at different times.

A worked example: RSI on 14 periods

All numbers below are examples. They are not a forecast and not current data.

Take 14 daily changes in the price of ETH, in dollars:

+40, −20, +20, +60, −30, +30, −10, +50, −40, +10, −20, +40, −20, +30

Step 1. Add up gains and losses.

  • Gains: 40 + 20 + 60 + 30 + 50 + 10 + 40 + 30 = 280
  • Losses: 20 + 30 + 10 + 40 + 20 + 20 = 140

Step 2. First averages.

  • Average gain = 280 / 14 = 20
  • Average loss = 140 / 14 = 10

Step 3. RSI.

  • RS = 20 / 10 = 2
  • RSI = 100 − 100 / (1 + 2) = 100 − 33.3 = 66.7

Step 4. The next candle rises by $50.

  • Average gain = (20 × 13 + 50) / 14 = 310 / 14 = 22.14
  • Average loss = (10 × 13 + 0) / 14 = 130 / 14 = 9.29
  • RS = 22.14 / 9.29 ≈ 2.385
  • RSI = 100 − 100 / 3.385 ≈ 70.5

Step 5. The candle after that falls by $80.

  • Average gain = (22.14 × 13 + 0) / 14 = 20.56
  • Average loss = (9.29 × 13 + 80) / 14 = 14.34
  • RS = 20.56 / 14.34 ≈ 1.434
  • RSI = 100 − 100 / 2.434 ≈ 58.9

One large down day moved RSI from 70.5 to 58.9. That is how RSI behaves: it reacts to the size of moves, not just their direction.

For comparison, a simple 14-candle average gives 67.4 at step 4 instead of 70.5, because it drops the oldest candle completely. Same prices, different method, different number.

How to use RSI: four common readings

How to use RSI depends on the question you ask. Traders read it in four main ways.

1. Overbought and oversold as context. A reading above 70 says the recent move was fast and one-sided. It is a prompt to look at the trend, volume and news, not an instruction.

2. The 50 line. RSI above 50 means average gains are larger than average losses. Some traders use it as a rough trend filter: in an uptrend, RSI dips often stop in the 40–50 zone, as the trend ranges below show.

3. Divergence. The price makes a new high or low but RSI does not. This shows momentum fading. It is covered in detail below.

4. Failure swings. Wilder also described a pattern that uses RSI alone. In a bullish failure swing, RSI falls below 30, bounces, pulls back but stays above 30, then breaks its last high. The bearish version is the mirror image around 70.

RSI divergence: bullish, bearish and hidden

RSI divergence means the price and RSI disagree. Wilder saw divergence as a sign of a possible reversal, because momentum is not confirming the price. It shows a change in momentum. It does not show when, or whether, the price turns.

TypePriceRSIUsually read as
Bearish divergenceHigher highLower highUpward momentum is fading
Bullish divergenceLower lowHigher lowDownward momentum is fading
Hidden bullishHigher lowLower lowPullback inside an uptrend
Hidden bearishLower highHigher highBounce inside a downtrend

The hidden versions are what Andrew Cardwell called positive and negative reversals. He read them as signs that the existing trend continues, not as reversals.

An example with invented numbers. Bitcoin makes a high at $100,000 with RSI at 78. Two weeks later it makes a higher high at $104,000, but RSI peaks at only 69. That is a bearish divergence: the second push went further with less force behind it.

Three things to keep in mind:

  • Divergence can repeat. A strong uptrend can print two or three bearish divergences before any real top. Cardwell treated bearish divergence as something that mostly appears in bull markets.
  • The swing points must be clear. Small wiggles create divergence everywhere. Use obvious highs and lows on the timeframe you are reading.
  • It has no fixed success rate. There is no reliable figure for how often divergence leads to a reversal. Results depend on the coin, the timeframe and the period studied.

RSI in a strong trend: why 70 and 30 stick in crypto

In a strong trend, RSI moves inside a shifted range instead of swinging between 30 and 70. In her work on RSI, Constance Brown observed that in bull markets RSI tends to stay between about 40 and 90, with 40–50 acting as support. In bear markets it tends to stay between about 10 and 60, with 50–60 acting as resistance. Cardwell described similar ranges.

The reason is built into the formula. If most candles in the window close higher, average gains stay above average losses, however far the price has already gone. RSI stays high because the trend is doing exactly what RSI measures.

Crypto adds three details:

  • Big single candles carry a lot of weight. One news-driven candle can outweigh several small opposite ones. Wilder's smoothing then keeps part of its effect for many candles, so RSI can stay at an extreme after one large move.
  • Every day has a candle. Crypto trades 24/7, so 14 daily candles are exactly two calendar weeks. On a stock chart the same 14 candles stretch over almost three weeks. A two-week run is enough to fill the whole crypto window.
  • Short charts flip often. On 1-hour and 4-hour charts, 14 candles cover hours or days, so readings above 70 or below 30 come and go far more often than on a daily chart.

Some traders widen the levels to 80 and 20 for volatile coins. StockCharts notes that the 70/30 levels can be adjusted in this way. A wider level fires less often. It does not make the signal more reliable on its own.

Choosing an RSI timeframe for crypto

The timeframe changes what RSI measures. Fourteen candles always means 14 candles, but they cover very different stretches of time.

Chart14 candles coverWhat RSI describes
1 hour14 hoursIntraday bursts
4 hoursabout 2.3 daysSwings of a few days
1 day14 daysMoves of several weeks
1 week14 weeksThe broad trend

A 1-hour RSI of 80 inside a daily RSI of 55 is a short burst. A daily and a weekly RSI both above 70 describe a long, strong move. Reading two timeframes together tells you more than one alone. Crypto also has no official daily close. Many charts end the day at 00:00 UTC, but some use another time zone, so the daily candle, and the RSI built on it, can differ between sites.

MACD vs RSI in brief

RSI and MACD both measure momentum, but in different ways. RSI is bounded from 0 to 100 and compares gains with losses. MACD is the gap between two moving averages, has no fixed range and is measured in price units, so it is better at showing trend direction and worse at showing "stretched" conditions. They often agree, because both come from the same closing prices. A full comparison table is in the MACD indicator guide.

How to use it in CryptoPith

  1. Open the Crypto RSI heatmap to see RSI(14) for the main coins on several timeframes, plus the market average.
  2. Compare one coin across timeframes before reading anything into a single cell.
  3. In the Crypto screener, filter by daily RSI together with the position against the 200-day average, so you see the RSI reading next to the trend.
  4. Before you rely on an RSI level, run it through the Alert backtest (Pro). It shows how many times an RSI alert would have fired in the last year and what the price did afterwards.
  5. If a term is unclear, switch on Learn mode and glossary for plain-word definitions.

In CryptoPith, RSI is calculated in code from checked candles. The AI only explains the reading. CryptoPith does not trade, gives no buy or sell signals and does not connect to wallets or exchanges.

Common mistakes and limits

  • Selling every 70 and buying every 30. In trends, RSI can stay at the extremes for weeks.
  • Ignoring the trend. The same reading of 35 means one thing in a downtrend and another as a pullback in an uptrend.
  • Seeing divergence in noise. If the swing points are not obvious, the divergence is not either.
  • Comparing RSI across sites. Start point, smoothing and daily close time change the number.
  • Over-tuning the settings. Changing 14 to 9 or 70 to 75 until the past looks perfect fits the indicator to history. That fit rarely carries forward.
  • Treating RSI as a forecast. It is built only from past closing prices. It knows nothing about news, liquidity or positioning.

FAQ

What is RSI in trading?

RSI, the Relative Strength Index, is a momentum indicator that compares average gains with average losses over a set number of candles, usually 14. It returns a value from 0 to 100. High values mean recent rises dominated; low values mean recent falls dominated.

What does an RSI of 70 mean?

It means average gains over the period were about 2.3 times average losses. By convention that is called overbought. It describes a fast rise, not a price that must fall.

How do you use RSI for divergence?

Compare two clear swing highs or lows on the price chart with the RSI values at the same points. A higher price high with a lower RSI high is a bearish divergence. A lower price low with a higher RSI low is a bullish divergence. Both show momentum fading, not a confirmed turn.

What is the best RSI setting for crypto?

There is no best setting. Fourteen periods is the standard and makes readings comparable across sites. Shorter settings react faster and swing more. Some traders use 80 and 20 instead of 70 and 30 for volatile coins.

Is RSI better than MACD?

Neither is better. RSI shows how stretched momentum is on a fixed scale. MACD shows the direction and change of trend momentum. Both come from closing prices, so using both adds less than it seems.

Sources

  • Relative Strength Index (RSI), StockCharts ChartSchool: Wilder's 1978 book, the smoothing, divergences, failure swings, Cardwell's reversals and Brown's trend ranges.
  • Relative strength index, Wikipedia: the 1978 publication, the smoothing formula and Cardwell's trend ranges.

Related tools: Crypto RSI heatmap, Alert backtest and Crypto screener. Your first AI report in CryptoPith is free.

AI reports are on the way

CryptoPith is getting ready to launch AI coin reports, market tools and alerts. The guides are open now, and plans are listed with their prices.

See plans and prices

Related guides

Bollinger Bands: formula, squeeze and strategy explainedMACD indicator: formula, crossovers and MACD vs RSITake profit and stop loss: risk reward and trailing stopsAll guides