Free trial
Menu
Learn guide

RSI Indicator Explained: Formula, Settings and Signals

The RSI indicator, short for Relative Strength Index, measures how strong recent gains have been against recent losses and puts the answer on a scale from 0 to 100. J. Welles Wilder introduced it in 1978 with a 14-period setting and levels of 70 and 30, and those defaults are still what most charts show. A reading near 100 means almost every close in the period was higher than the one before; a reading near 0 means almost every close was lower; 50 means gains and losses were about equal.

QuantPower Research · Updated 3 Nov 2026 · 19 min read

This guide works through the RSI formula on a model Nifty series, then covers overbought and oversold readings, how RSI behaves in trends, the 50 line, divergences and failure swings, the settings traders use on daily and intraday charts, and where the indicator misleads.

Key point
RSI measures the speed of a move, not its end. On the model series below, RSI(14) first closed above 70 on day 29, and Nifty rose another 214 points over three sessions before it turned.

Key takeaways

  • RSI = 100 − 100 ÷ (1 + RS), where RS is the average gain divided by the average loss over the period, smoothed with Wilder's method.
  • Readings above 70 are called overbought and readings below 30 oversold. Both describe a fast move, and a trend can hold those readings for many sessions.
  • In a rising market RSI tends to swing between about 40 and 80, and in a falling market between about 20 and 60. A change of range often says more than a single reading.
  • Shorter settings reach the extremes far more often: on the model series RSI(2) closed above 70 on 36 of 70 sessions, RSI(14) on 11 of 58.
  • RSI values differ between platforms because of the smoothing method and how much history the calculation starts from.
  • Traders read RSI on the Nifty or Bank Nifty chart, or on futures, and place the trade in options or futures. An option's own price chart mixes in time decay and volatility.

The model Nifty series

Every number on this page comes from one model series of 72 daily closes. It is a seeded random walk, not market data, built to include a slow rise, a rally, a sharp fall and a recovery.

PhaseSessionsClose at the startClose at the end
Dip and slow riseDays 1 to 2524,800.0024,920.15
Rally to the highDays 26 to 3224,959.4525,500.00
Fall to the lowDays 33 to 4425,473.0024,158.55
RecoveryDays 45 to 7224,181.2025,867.60

The fall from 25,500.00 to 24,158.55 is 1,341.45 points, or 5.26%. The recovery to day 72 adds 1,709.05 points, or 7.07%. The guides to moving averages and MACD use the same closes, so the three indicators can be compared session by session.

RSI formula and calculation

Formula
RS = average gain ÷ average loss over N periods. RSI = 100 − 100 ÷ (1 + RS). The standard N is 14.

The calculation takes five steps.

  1. Work out each period's change. The change is today's close minus yesterday's close.
  2. Split the changes into gains and losses. A rise counts as a gain and as zero loss; a fall counts as a loss, recorded as a positive number, and as zero gain. An unchanged close counts as zero for both.
  3. Average the first 14. The first average gain is the sum of 14 gains divided by 14, and the same for losses. This needs 15 closes.
  4. Smooth every later value. From the 15th change on, Wilder's smoothing keeps thirteen-fourteenths of the old average and adds one-fourteenth of the new value.
  5. Turn the ratio into RSI. Divide the average gain by the average loss to get RS, then apply the formula.
Formula
New average gain = (previous average gain × 13 + current gain) ÷ 14. New average loss = (previous average loss × 13 + current loss) ÷ 14.

The first RSI value, step by step

The first 15 closes of the model series give 14 changes: six gains and eight losses.

DayCloseChangeGainLoss
124,800.00
224,756.00−44.00044.00
324,763.25+7.257.250
424,735.45−27.80027.80
524,721.80−13.65013.65
624,622.60−99.20099.20
724,516.90−105.700105.70
824,451.45−65.45065.45
924,545.05+93.6093.600
1024,671.30+126.25126.250
1124,619.65−51.65051.65
1224,683.35+63.7063.700
1324,635.45−47.90047.90
1424,668.30+32.8532.850
1524,732.15+63.8563.850
Total387.50455.35

The average gain is 387.50 ÷ 14 = 27.68 points and the average loss 455.35 ÷ 14 = 32.53 points. RS = 27.68 ÷ 32.53 = 0.851, so RSI = 100 − 100 ÷ 1.851 = 45.97. Losses were a little larger than gains over the fortnight, and the reading sits just below 50.

Example
On day 16 Nifty closes 22.55 points higher. The new average gain is (27.68 × 13 + 22.55) ÷ 14 = 27.31 and the new average loss is (32.53 × 13 + 0) ÷ 14 = 30.20. RS = 0.904, so RSI rises to 47.49. On day 17 the index gains 138.35 points: the average gain rises to 35.24, the average loss falls to 28.04 and RSI jumps to 55.69. The averages are rounded for display; the calculation carries the unrounded values forward.

Why one large move changes RSI so much

Each new change carries a weight of one-fourteenth, about 7.1%, and the old average keeps the other 92.9%. On day 17 a single gain of 138.35 points, five times the average gain, moved RSI from 47.49 to 55.69. Old changes are never dropped, only shrunk, so the effect of that day fades gradually instead of disappearing 14 sessions later.

Wilder's smoothing is an exponential average with a weight of 1 ÷ N on the newest value. That is slower than the usual exponential moving average of the same length, whose weight is 2 ÷ (N + 1): a 14-period Wilder average reacts like a 27-period EMA. After about 100 periods, the starting values carry less than 0.1% of the weight, which is why a calculation needs a long history before its readings settle.

Why two charts can show different RSI values

CauseEffect
Smoothing methodSome tools use simple 14-period averages, known as Cutler's RSI, instead of Wilder's smoothing
Start of the dataWilder's averages carry every past change with a shrinking weight, so a calculation that starts later gives different numbers for a while
Data feedDifferent closing prices, adjusted futures data or a missing session change every later value
Closing priceThe official daily close and the last price on an intraday chart can differ

On the model series the differences are large. On day 44, the low, Wilder's RSI reads 24.35 and the simple-average version 10.14. On day 60 they read 62.53 and 86.26. Starting Wilder's calculation on day 20 instead of day 1 gives 39.91 instead of 34.11 on day 40, and the two are still 0.77 apart on day 72, at 81.80 and 81.03. Most charting platforms use Wilder's method. When you compare a backtest with a chart, check which method each uses and load at least 100 periods of history before the first signal.

How to read the RSI scale

RSI(14) on simulated prices: readings below 30 and above 70 mark stretched moves
ReadingUsual interpretation
Above 80A very fast rise; rare on RSI(14) of an index
70 to 80Overbought: gains have far outweighed losses
50 to 70Gains larger than losses: buyers in control
30 to 50Losses larger than gains: sellers in control
20 to 30Oversold: losses have far outweighed gains
Below 20A very fast fall; rare on RSI(14) of an index

The scale is not linear in RS. An RSI of 70 means average gains are 2.33 times average losses; 80 means 4 times; 90 means 9 times. Moving from 50 to 70 needs RS to rise from 1 to 2.33, while moving from 70 to 90 needs it to nearly quadruple again. That is why RSI(14) on an index rarely goes above 85 or below 15, and why the last few points near either end take the most force.

Overbought and oversold levels

Wilder set the levels at 70 and 30. Overbought means the period's gains have been much larger than its losses; oversold means the reverse. Neither says the move is over. On the model series:

EventDayCloseRSI(14)
First close above 702925,285.6072.30
Highest RSI, at the price high3225,500.0078.00
Back below 703525,285.1061.10
First close below 304324,289.1026.81
Lowest RSI, at the price low4424,158.5524.35
Back above 304624,319.6033.06
Above 70 again, in the recovery6825,441.6071.52
Last session7225,867.6081.03

Three things stand out. The first overbought close on day 29 came 214.40 points below the high. The first oversold close on day 43 came one session and 130.55 points before the low. And in the recovery, RSI stayed above 70 for the last five sessions while Nifty rose another 426 points, from 25,441.60 to 25,867.60. Taken as signals on their own, the levels were early at the top, close at the bottom and wrong in the recovery.

Levels for different markets and settings

The 70 and 30 levels suit RSI(14) on daily charts of broad indices. Common adjustments:

  • 80 and 20 for strongly trending or volatile stocks, and for shorter settings, so that the levels still mark unusual readings.
  • 90 and 10, or 95 and 5, for RSI(2), which swings across the whole scale within a few sessions.
  • 60 and 40 as levels for pullbacks within a trend rather than for reversals, as the next section explains.
RSI(14) on the model Nifty series stayed between 24 and 52 during the fall and between 55 and 81 during the recovery

Analysts such as Andrew Cardwell and Constance Brown observed that RSI works within different ranges depending on the trend. In a rising market it tends to hold between about 40 and 80 and to make its lows near 40 to 50. In a falling market it tends to hold between about 20 and 60 and to make its highs near 50 to 60.

The model series shows the same pattern. During the fall, from day 36 to day 49, RSI(14) moved between 24.35 and 52.43 and never reached 60. During the recovery, from day 52 to day 72, it moved between 55.27 and 81.03; the pullback on days 60 and 61 took it only to 60.06 before the rise resumed.

Two uses follow:

  • Pullbacks in a trend. In a rising market the usual pullback takes RSI to the 40 to 50 zone, not below 30. Waiting for 30 in an uptrend often means waiting for a reading that does not come.
  • A change of regime. When RSI keeps failing to reach 60 on rallies after weeks of holding above 40, the trend has often changed. When it holds above 40 on dips after a long fall, buyers may have taken control.

The 50 line

RSI above 50 means the period's average gain is larger than its average loss. Many rule-based traders use the line as a trend filter: long trades only when RSI is above 50, short trades only below it.

On the model series RSI(14) dipped below 50 for three sessions during the early rise, on days 20 to 22, crossed below 50 on day 37 after the high and crossed back above it on day 52 after the low. The crossings on days 37 and 52 came on the same sessions that Nifty crossed its 20-day simple moving average and that MACD crossed its signal line. That is common, because all three are built from the same closes.

Like any filter, the 50 line gives false readings in a sideways market, as it did on days 20 to 22, when the index stayed within 20 points of 24,800.

Divergence and failure swings

Divergence

A divergence is a disagreement between the price and RSI. In a bearish divergence the price makes a higher high while RSI makes a lower high, so the second push up had less force behind it. In a bullish divergence the price makes a lower low while RSI makes a higher low. A hidden divergence points the other way, to a trend continuing: a higher low in price with a lower low in RSI during an uptrend, for example.

A divergence shows fading momentum, not a reversal, and a strong trend can produce several in a row before it turns. Traders who use divergences wait for a price trigger, such as a break of the last swing high or low, and place a stop beyond the extreme. The rules, model trades and stops are set out in the RSI divergence strategy.

Failure swings

Wilder placed more weight on failure swings than on divergences. A top failure swing has four steps: RSI rises above 70, falls back, rallies again but stays below its first peak, then falls below the low of the pullback. A bottom failure swing is the mirror image below 30. The signal comes from RSI alone, which makes it simple to write as a rule. Like every RSI signal, it needs testing on the instrument and timeframe before it is used.

RSI settings and periods

SettingTypical useLevels often used
RSI(2)Very short-term mean reversion on daily charts90 and 10, or 95 and 5
RSI(7) or RSI(9)Faster readings on intraday charts80 and 20
RSI(14)The default on daily and intraday charts70 and 30
RSI(21) or RSI(25)Slower readings for swing and positional trading65 and 35, or 70 and 30

A shorter setting averages fewer changes, so it swings further and reaches the extremes more often. On the model series:

SettingReadingsAbove 70Below 30Above 80Below 20
RSI(2)7036203217
RSI(7)652813135
RSI(9)6320983
RSI(14)5811310
RSI(21)514000

RSI(2) was above 70 on more than half its readings and above 90 on 24 of them. RSI(21) never reached 30, even during a 5.26% fall. The levels have to match the setting: 70 and 30 on RSI(2) mark ordinary days, not extremes.

Changing the setting until past signals look good is the most common way to overfit an RSI rule. A setting chosen on one year of data needs checking on other years, on other instruments and with the cost of every trade before it is trusted.

RSI on intraday charts

RSI is calculated the same way on any timeframe; only the length of each period changes. The NSE equity and F&O session runs from 9:15 am to 3:30 pm, or 375 minutes.

ChartCandles in one sessionWhat 14 periods covers
1-minute37514 minutes
5-minute7570 minutes
15-minute253½ hours
60-minute7, the last one 15 minutes longAbout two sessions
Daily1Almost three weeks

Points that matter for intraday RSI on Indian indices:

  • The opening gap. Nifty often opens away from the previous close on overnight news. On a 5-minute chart the first candle's change includes the whole gap, which can move RSI(14) sharply in one candle. Some traders ignore the first 15 minutes; others use a daily RSI for direction and an intraday RSI only for timing.
  • Continuity across sessions. Most platforms carry the calculation from one session to the next, so the first readings of the day still contain yesterday's afternoon.
  • Expiry days. Index option expiries can bring large, fast moves late in the session, and an intraday RSI that behaved well on other days can sit at an extreme for the last hour.

Combining timeframes

A common way to use RSI intraday is to take direction from a slower chart and timing from a faster one. With daily RSI(14) above 50, a trader looks only for long entries, and uses a dip of 15-minute RSI(14) to the 40 to 50 zone as the entry window. With daily RSI below 50, the same trader looks only for shorts on 15-minute rallies to 50 to 60. The slower chart keeps the faster one on the side of the trend; the faster one keeps the entry close to a level where a stop can be placed.

RSI on Nifty, Bank Nifty, stocks and options

  • Index or futures chart. Most traders read RSI on the Nifty or Bank Nifty index, or on the near-month futures, and trade options or futures on that view. A continuous futures chart jumps at each monthly roll unless the data is adjusted, and the jump enters RSI as a gain or a loss.
  • Option charts. An option's price falls with time decay and moves with implied volatility, so RSI on the option's own chart mixes three effects. A falling RSI on a call's chart may only mean that a day has passed.
  • Stocks. RSI on a stock reacts to results, news and corporate actions, and a gap after results can put it at an extreme in one session. Volatile stocks often suit levels of 80 and 20.
  • Other indices. RSI is a ratio of gains to losses, so its readings mean the same on any index or stock; the number of points behind them does not change the scale. That is one difference from MACD, which is measured in points.

Reading the model series with RSI

Read session by session, RSI(14) tells the story of the 72 days in four parts:

PhaseWhat RSI(14) didWhat it said
Days 15 to 28Moved between 45.97 and 66.33, dipping below 50 on days 20 to 22No clear trend; small rises and falls of similar size
Days 29 to 34Held above 70, peaking at 78.00 on day 32A fast rally, with gains far larger than losses
Days 35 to 49Fell from 61.10 to 24.35 on day 44, and stayed below 53 from day 36A fall strong enough to hold RSI in the lower range
Days 50 to 72Rose above 50 on day 52, then stayed between 55.27 and 81.03A recovery with steady gains and shallow pullbacks

None of these readings forecast the next phase. They described the one in progress, and the clearest information came from the changes of range: RSI failing to recover 60 after day 35, and holding above 55 after day 52.

RSI with other tools

RSI reads one thing, the balance of recent gains and losses. Most rule sets pair it with something it cannot see.

Pair RSI withWhy
A long moving average, such as the 200-dayTakes oversold readings only in a long-term uptrend
Support and resistance levelsAn oversold reading at a known level says more than one in the middle of a range
VolumeA fall to oversold on light volume is weaker selling than one on heavy volume
VWAP on intraday chartsPuts intraday readings in the context of the day's average price
A volatility measure such as ATRSets stops and targets in points that suit the day's movement

RSI and MACD are often used together: MACD for the direction of momentum, RSI for its extremes. MACD is built from moving averages rather than from gains and losses, so the two sometimes disagree, and the disagreement is information in itself.

RSI compared with other momentum indicators

IndicatorWhat it measuresRangeTypical levels
RSIAverage gains against average losses0 to 10070 and 30
Stochastic oscillatorClose against the high-low range of the period0 to 10080 and 20
Stochastic RSIRSI against its own high-low range0 to 1, or 0 to 1000.8 and 0.2
MACDGap between two exponential moving averagesUnbounded, in pointsZero line and signal line
Rate of changePercentage change over N periodsUnbounded, in percentZero line

The stochastic RSI, introduced by Tushar Chande and Stanley Kroll in 1994, applies the stochastic formula to RSI itself. It reaches its extremes far more often than RSI and is used for short-term timing.

The limits of RSI

  • It lags. RSI is built from closes that have already happened, so its turns come after the price's turns, even if only by a session or two.
  • It is bounded. In a long trend RSI flattens near an extreme while the price keeps moving, as in the last five sessions of the model series.
  • It ignores the size of moves. A quiet market and a volatile one can show the same RSI, because RSI compares gains with losses, not with the market's usual range.
  • It sees only closes. Intraday highs and lows, gaps within a candle and volume do not enter the formula.
  • It is not a forecast. RSI describes what recent prices have done. A reading of 25 says the last fortnight was weak, not that the next one will be strong.

Common mistakes

  • Selling every reading above 70. In an uptrend this sells into strength again and again. Check the trend first.
  • Using RSI(2) with levels of 70 and 30. On a two-period RSI those levels mark ordinary days.
  • Comparing values across platforms. Check the smoothing method and the start of the data before comparing a backtest with a chart.
  • Reading RSI on an option's chart. Time decay pulls the option's price down whatever the index does.
  • Treating a divergence as a signal on its own. Wait for the price to confirm it.
  • Changing the period after each loss. A setting fitted to the last few trades rarely holds on the next ones.

Using RSI in a trading strategy

RSI appears in four common kinds of rule:

  • Mean reversion. Buy when RSI is oversold in a market above its long-term average and exit when RSI recovers. Short settings such as RSI(2) on daily candles and RSI(14) on intraday candles are both tested this way; full rule sets, with Nifty examples and option versions, are in the RSI indicator strategy guide.
  • Trend filter. Take long signals from another rule only when RSI is above 50, or above 40 in a strong uptrend.
  • Momentum. Buy when RSI crosses above 60 after holding the 40 to 50 zone, on the view that the trend has resumed.
  • Reversal. Trade divergences or failure swings with a price trigger and a stop.

Whatever the rule, three choices decide most of the result: the RSI period, the levels and the exit. Fix them before testing and change them only for reasons that hold across years, not because of the last few trades.

RSI in QuantPower

In the option strategy builder, RSI on the underlying can be an entry or exit condition, alongside price levels, moving averages and time windows, and the trade itself can be an option, a spread or a futures position. A strategy built this way can be tested in backtesting on five years of 1-minute data, then run on live prices in paper trading before it goes live through your broker. In the terminal, price alerts can tell you when the index reaches a level you have marked.

Start your free trial

Connect your broker, build a strategy and test it on paper before a single live order goes out.

Frequently asked questions

How is RSI calculated?

Take the change in each close over the period, average the gains and the losses separately with Wilder's smoothing, and divide the average gain by the average loss to get RS. RSI is 100 − 100 ÷ (1 + RS). With an average gain of 27.68 points and an average loss of 32.53 points over 14 days, RS is 0.851 and RSI is 45.97.

What is a good RSI value to buy?

There is no single value. In a market above its long-term average, many rule sets buy dips of RSI(14) to between 30 and 40, or of RSI(2) below 10. In a downtrend an oversold reading can stay oversold for days. Any level needs a trend filter, an exit and a stop, and testing on the market you trade.

What does an RSI of 50 mean?

That average gains and average losses over the period are equal, so RS is 1. Readings above 50 mean gains have been larger; readings below 50 mean losses have.

Why does RSI show different values on different charts?

The smoothing method, the amount of history loaded and the closing prices used all change the result. Some tools use simple averages instead of Wilder's smoothing, and a calculation that starts on a later date takes many periods to match one that started earlier.

Is RSI a leading or lagging indicator?

It lags, because it is calculated from past closes. Its turns usually come a session or two after the price's. Divergences and failure swings are the parts of RSI that traders use as early warnings.

What is the difference between RSI and relative strength?

RSI compares a price with its own recent gains and losses. Relative strength in the comparative sense divides one stock's price by another's, or by an index, to show which has done better. The names are similar, but the calculations are unrelated.

Sources

  • Wilder, J. W. (1978). New Concepts in Technical Trading Systems. Trend Research
  • Brown, C. (1999). Technical Analysis for the Trading Professional. McGraw-Hill
  • Chande, T. and Kroll, S. (1994). The New Technical Trader. Wiley
  • Connors, L. and Alvarez, C. (2009). Short Term Trading Strategies That Work. TradingMarkets
  • NSE: trading hours for the equity and equity derivatives segments
Figures and charts on this page use a model Nifty series, not market data. Trading involves substantial risk, and this guide is for education, not investment advice.