The Test Bench › Mean reversion › RSI

RSI Explained: How RSI(14) and RSI(2) Work, and What Our Tests Found

How RSI is calculated, what 30 and 70 mean, and why a 2-day RSI uses 10 and 90, with what our tests found.

RSI (the Relative Strength Index) compares a stock’s recent up moves with its recent down moves and scales the result from 0 to 100. The number of days it looks back changes how often it reaches an extreme, and the shortest settings are the basis of many mean reversion strategies.

This page covers:

RSI measures the balance of recent up and down closesRSI compares the average up move with the average down move over a set number of days, on a scale of 0 to 100.With the default 14 days, readings below 30 are called oversold and above 70 overbought.An oversold reading describes the recent past. It does not predict a rise by itself.
A 2-day RSI reaches the extremes far more oftenLarry Connors shortened RSI to two days and read it with 10 and 90.In the worked example below, one down day takes RSI(2) from 66.7 to 29.6, and RSI(14) from 66.7 to 60.8.The setting decides how often a signal appears and what kind of move it describes.
Connors’ RSI(2) rule buys dips in stocks above their 200-day averageThe rule buys when RSI(2) closes below 10 while the stock is above its 200-day average.It sells when the close moves back above the 5-day average, usually within a few days.The trend filter and the exit are part of the rule, and each version needs its own test.

What is RSI?

J. Welles Wilder introduced the Relative Strength Index in 1978. On each day it looks at the change in the closing price, keeps a running average of the gains and a running average of the losses, and compares the two. When recent gains have been larger than recent losses, RSI is above 50; when losses have been larger, it is below 50. A run of nothing but up closes pushes it towards 100, and a run of down closes towards 0.

RSI is computed on any timeframe. Wilder used daily bars and 14 periods, and that remains the default setting on most charting platforms, including GU Analyser.

How is RSI calculated?

  1. Take each day’s change in the close. A rise is a gain and a fall is a loss, both recorded as positive numbers; the other is zero for that day.
  2. Update the average gain and the average loss with Wilder’s smoothing: yesterday’s average × (n − 1) ÷ n, plus today’s value ÷ n, where n is the RSI period.
  3. RS = average gain ÷ average loss.
  4. RSI = 100 − 100 ÷ (1 + RS).

One invented day shows why the period matters. Yesterday the average gain was $0.80 and the average loss $0.40, which gives an RSI of 66.7 on any period. Today the stock falls $1.50.

RSI(14)RSI(2)
Today’s weight1 ÷ 141 ÷ 2
New average gain$0.74$0.40
New average loss$0.48$0.95
RS1.550.42
RSI60.829.6

The same fall moves RSI(14) from 66.7 to 60.8 and RSI(2) from 66.7 to 29.6. A 14-day RSI gives today one fourteenth of the weight; a 2-day RSI gives it half.

Why your RSI may differ from another platform

Charting platforms start the two averages in different ways: Wilder began with a simple average of the first 14 days, while others, GU Analyser among them, start from the first day’s change. Readings can therefore differ slightly between platforms, mainly at the start of the data; the difference shrinks as more days are added.

What do 30 and 70 mean on RSI?

Wilder marked 70 and 30 as the boundaries of the usual range for a 14-period RSI. A reading above 70 is called overbought: recent gains have far outweighed recent losses. A reading below 30 is called oversold. The labels describe what has already happened to the price. Whether a stock tends to rise after an oversold reading, or fall after an overbought one, is a separate question that a test answers.

RSI(2) and RSI(14) on the same illustrated daysdaily closesRSI(2)RSI(14)Shaded: below 10 and above 90Invented closing pricesPrice10307090RSI, 0 to 100RSI(14)RSI(2)Illustration with invented prices — not market data
Invented daily prices with two RSI settings beneath. RSI(2) (solid) reaches the shaded zones below 10 and above 90 repeatedly; RSI(14) (dashed) stays mostly between 30 and 70. Prices are invented.

What is RSI(2)?

RSI(2) is RSI with a two-day period. Larry Connors and Cesar Alvarez made it widely known in Short Term Trading Strategies That Work (2008). Because each day carries half the weight, RSI(2) swings across most of its range in a few days, so it is often read with 10 and 90; their tests also used 5 and 95 as stricter levels.

The long side of their rule, on daily bars:

The short side mirrors it: below the 200-day average, RSI(2) above 90, covered when the close falls back below the 5-day average. Connors’ published rules use no stop-loss.

RSI(2): entering and leaving oversolddaily closesRSI(2) crosses below 10crosses back above 10Invented closing pricesPrice1090RSI, 0 to 100RSI(2)Crosses below 10: enters oversoldCrosses back above 10: leaves oversoldCrosses below 10: enters oversoldCrosses back above 10: leaves oversoldCrosses below 10: enters oversoldCrosses back above 10: leaves oversoldCrosses below 10: enters oversoldCrosses back above 10: leaves oversoldCrosses below 10: enters oversoldCrosses back above 10: leaves oversoldIllustration with invented prices — not market data
The same invented days with RSI(2) alone. Filled dots mark the closes where RSI(2) crosses below 10; open circles mark the closes where it crosses back above 10. Prices are invented.

Two moments in an oversold spell can be tested: the day RSI enters the zone and the day it leaves it. Buying on entry catches the fall earlier; waiting for RSI to leave the zone waits for the first up close. Our studies measure both.

RSI(2) vs RSI(14)

The RSI formula is the same; the period changes how heavily the latest change affects it. RSI(14) describes roughly the last few weeks, RSI(2) the last couple of days.

RSI(14)RSI(2)
Weight of today’s change1 ÷ 141 ÷ 2
Usual zones30 and 7010 and 90 (5 and 95 stricter)
The worked example’s fall66.7 → 60.866.7 → 29.6
Trades in our backtest (typical stock, 20 years)6132
Common useMomentum and overbought/oversold readings on any timeframe Short-term pullbacks in an uptrend

Two other indicators build on a short RSI: ConnorsRSI adds the up or down streak and the size of today’s move, and Stochastic RSI places RSI(14) in its own recent range. Mean reversion trading explains the rules all four are used in.

How traders use RSI

RSI strategy rules

An RSI rule states each of these parts:

What our RSI tests found

How to read these results. An event study compares the days after a signal with ordinary days of the same stocks; a backtest runs one complete rule with costs and reports a median total return per stock over the whole period. “Clear” means the 95% interval excluded zero under every test setting we ran. All tests use today’s S&P 500 members projected back, which favours rules that buy dips, and price returns without dividends.

The event studies compared the days after a signal with ordinary days for the same S&P 500 stocks, 2006 to 2026; the backtest ran the signals as one trading rule.

Our RSI tests

Each study states the signal, the stocks, the period and what it compares the signal with. The results show what happened in the tested sample, and each study states what the test cannot establish.

Want to test an RSI rule?

  1. Add RSI as a custom signal with the period you use: 14, 2 or any other.
  2. Build the condition: RSI crossing below 10, crossing back above 30, or any other zone.
  3. Run an event study to see what followed the signal, or a backtest with an entry, an exit and a cost on each trade.

Common questions

What is RSI?

RSI, the Relative Strength Index, compares the average size of a stock’s up moves with the average size of its down moves over a set number of periods and scales the result from 0 to 100. J. Welles Wilder introduced it in 1978 with 14 periods, which is still the default.

How is RSI calculated?

Each day’s change in the close is split into a gain or a loss. Wilder’s smoothing keeps a running average of each: yesterday’s average weighted by (n − 1) ÷ n plus today’s value weighted by 1 ÷ n. RS is the average gain divided by the average loss, and RSI = 100 − 100 ÷ (1 + RS).

What do 30 and 70 mean on RSI?

They are Wilder’s conventional zones for a 14-period RSI. A reading below 30 is called oversold and a reading above 70 overbought. Both describe the recent balance of up and down closes; neither predicts the next move by itself.

Is an RSI below 30 a buy signal?

It marks a stock whose recent losses have outweighed its gains; it does not by itself predict a rise. Many traders take it only in a long-term uptrend, or wait for RSI to cross back above 30. In our test on 483 S&P 500 stocks above their 200-day average, the 20 days after RSI(14) fell below 30 returned 0.65 percentage points more than ordinary days, but the test did not show a clear difference.

What does an RSI of 50 mean?

The average gain and the average loss over the period are equal. Above 50, recent gains have been larger; below 50, recent losses have. Some traders use 50 as a dividing line between up and down phases.

What is the best RSI setting?

There is no single best setting. 14 periods is the common default. Shorter settings react faster and reach the extremes more often: a 2-period RSI is often read with 10 and 90 in place of 30 and 70.

What is RSI(2)?

A 2-period RSI on daily closes, popularised by Larry Connors and Cesar Alvarez in Short Term Trading Strategies That Work (2008). Their rule buys a reading below 10 while the stock is above its 200-day moving average and sells when the close moves back above its 5-day moving average.

What is the difference between RSI(2) and RSI(14)?

The RSI formula is the same; the period changes how heavily the latest change affects it. RSI(14) gives each new day one fourteenth of the weight and changes slowly; RSI(2) gives it half and swings across most of its range in a few days. RSI(14) is usually read with 30 and 70, RSI(2) often with 10 and 90.

What is RSI divergence?

A price making a new low while RSI makes a higher low, or a new high with a lower RSI high. Traders read it as the move losing strength. It is a separate signal from the 30 and 70 zones, and our studies do not test it.

Which timeframe is best for RSI?

RSI works the same way on any bar length, from minutes to weeks; the period counts bars, not days. Wilder used daily bars, and our tests use daily bars on S&P 500 stocks.

Is RSI a mean reversion indicator?

RSI itself measures recent momentum; a strategy needs rules around it. Traders use extreme readings as part of a mean reversion rule, buying an oversold reading and selling on the rebound, and also use RSI as a momentum or trend filter, reading RSI above 50 as strength. Short settings such as RSI(2) are mostly used for mean reversion.

Does RSI work?

It depends on the rule. In our tests on S&P 500 stocks, RSI(2) below 10 in stocks above their 200-day average was followed by a median 5-day return 0.19 percentage points more than ordinary days; RSI(14) below 30 in stocks above their 200-day average was followed by a median 20-day return 0.65 percentage points more than ordinary days, but the test did not show a clear difference. In a separate backtest of one dip-buying rule, RSI(2) had a median total return per stock over 2006 to 2026 of +45%, against +5% for RSI(14); both trailed buying and holding on most stocks. These results apply to the tested stocks, period and rules; they do not show that RSI predicts future returns in general.

Can you backtest an RSI strategy?

Yes. In GU Analyser you add RSI with the period you want as a custom signal, build the entry and exit rules on a visual canvas, and run a backtest or an event study on daily bars, with no code.

Want to test your own RSI rule?

Add RSI with the period you choose, set the zones and the trend filter, and measure what followed the signal across your stocks, or backtest it with an entry, an exit and a cost on each trade.

Create a free account and build your own strategies → or read how RSI is calculated in the app →

The methods: how a backtest is built · how an event study works

These are historical analyses. They are neither advice nor forecasts. They describe what happened on past data under stated, simplified assumptions. Past results do not prove what will happen next, and nothing in the Test Bench is a recommendation to buy or sell an investment. GU Analyser is an analytical and educational tool — no money is ever traded here.