All posts
RSIoverboughtoversoldRSI 70/30mean reversionbacktesting

RSI Length Test: How Long Overbought and Oversold Last

RSI lengths 7 through 50 were tested above 70 and below 30 on USD/JPY. Longer settings removed most signals without steadily changing persistence or fade returns.

RSI above 70 is called overbought, and RSI below 30 is called oversold. Those labels sound like a reversal is due. In a strong move, however, the line can remain beyond its threshold for several bars while price continues in the same direction.

On hourly USD/JPY with RSI 14, there were 312 complete runs that entered at or above 70 in 2023–2025. The next bar was still at or above 70 in 188 of them, or 60.3%. Below 30, 181 of 300 runs continued into the next bar, also 60.3%.

The two sides differed in their long tails. At least ten overbought bars followed in 19.2% of runs, against 6.3% for oversold runs. An overbought or oversold reading describes a lopsided recent move. It does not identify the bar on which that move must reverse.

Lengths 7, 9, 14, 21, 30, and 50 were also compared. Persistence did not move steadily as the length changed. The repeatable change was how rarely a longer RSI reached 70 or 30.

0%20%40%60%60.3%60.3%2+ bars45.8%41%3+ bars30.8%21.7%5+ bars19.2%6.3%10+ barsconsecutive bars, including the first bar in the zone
at or above 70 (312 runs)at or below 30 (300 runs)USD/JPY hourly, RSI 14, 2023–2025
Roughly six runs in ten remain beyond 30 or 70 for the next bar. Long overbought runs are the outlier: 19.2% last at least ten hourly bars, against 6.3% on the oversold side.

What RSI overbought and oversold actually mean

RSI converts average gains and average losses over the last N bars into a value from 0 to 100.

RSI = 100 − 100 ÷ (1 + average gain ÷ average loss)

TradingView's RSI documentation describes readings above 70 as overbought and readings below 30 as oversold. The calculation itself only reports the balance of recent gains and losses. Crossing 70 or 30 does not put a reversal condition into the formula.

"Staying overbought" in this test does not mean RSI printed exactly 100. It means the line closed at or above 70 for consecutive bars. Likewise, an oversold run consists of consecutive closes at or below 30. With RSI 14, none of the three timeframes printed exactly 100 or 0 during the three years.

RSI settings and how a run was counted

The baseline uses the conventional RSI 14 with 70 and 30 as the two boundaries.

InputBaselineMeaning in this test
Length14Number of bars used to smooth gains and losses
Overbought70A close at or above 70 belongs to the upper zone
Oversold30A close at or below 30 belongs to the lower zone
ObservationBar closeThe zone is known only after the bar closes
Run lengthOne bar or moreThe first bar inside the zone counts as bar one

If RSI reads 68 → 72 → 76 → 71 → 66, the overbought run lasts three bars. The first 72 is bar one, 76 is bar two, 71 is bar three, and the run ends at 66. A one-bar run leaves the zone immediately. A two-bar run remains there on the next bar.

RSI is normally shown in a separate pane below price. Set the length to 14 and add horizontal levels at 70 and 30. The main RSI settings test covers platform setup, conventional 30/70 fades, and 50-line momentum systems. This article isolates the duration of each visit beyond 30 or 70.

How this was measured

ItemValue
MarketUSD/JPY
WindowJanuary 1, 2023 to December 31, 2025
TimeframesFifteen-minute / hourly / four-hour
Bars with RSI 14 defined74,800 / 18,701 / 4,835
RSI lengths7 / 9 / 14 / 21 / 30 / 50
Level pairs80/20 / 75/25 / 70/30 / 65/35 / 60/40
Run startsPrevious bar outside, current bar first inside the zone
Run endsFirst bar back outside the zone
PersistenceShare lasting at least 2 / 3 / 5 / 10 bars
Fade directionShort the upper zone, buy the lower zone
ExecutionNext bar's open using recorded bid and ask prices
Holding periods1 / 3 / 5 / 10 bars

One continuous visit to a zone counts as one run. Ten consecutive bars above 70 are one observation, not ten. A run that had not left the zone by year-end was excluded because its final length was unknown.

The trading comparison separates a fade entered as the run begins from one entered after RSI leaves the zone. Both use the next bar's open, after the signal bar is complete. Every run is treated as an independent event, so summed pips are not a compounded portfolio return and trades can overlap in time.

The next bar remained extreme about 60% of the time

The table pools 2023 through 2025 for RSI 14 at 70/30.

TimeframeZoneRuns2+ bars3+ bars5+ bars10+ barsLongest
Fifteen-minute70 or higher1,15462.3%43.2%25.4%10.2%37 bars
Fifteen-minute30 or lower1,04958.4%38.5%20.7%7.8%43 bars
Hourly70 or higher31260.3%45.8%30.8%19.2%39 bars
Hourly30 or lower30060.3%41.0%21.7%6.3%27 bars
Four-hour70 or higher10370.9%51.5%28.2%8.7%32 bars
Four-hour30 or lower5367.9%54.7%26.4%5.7%23 bars

Across every timeframe, 58% to 71% of runs lasted into the next bar. Once RSI first entered a zone, remaining there was more common than leaving immediately.

Two four-hour bars represent eight hours. The apparent persistence is therefore meaningful in elapsed time, but the four-hour samples contain only 103 overbought and 53 oversold runs. Their percentages are less precise than the fifteen-minute and hourly estimates.

Long overbought runs were more common than long oversold runs

The asymmetry in long hourly runs appeared in all three years.

YearZoneRuns2+ bars5+ bars10+ barsLongest
202370 or higher10562.9%30.5%20.0%19 bars
202330 or lower8862.5%28.4%10.2%18 bars
202470 or higher12262.3%32.8%18.0%39 bars
202430 or lower9258.7%18.5%5.4%27 bars
202570 or higher8554.1%28.2%20.0%30 bars
202530 or lower12060.0%19.2%4.2%14 bars

The one-bar continuation rates were similar. The difference appeared in long runs: roughly one overbought run in five lasted ten hourly bars, compared with about one oversold run in twenty.

This does not say that a high RSI predicts a decline. It says that, in these three USD/JPY years, strong upward moves kept RSI above 70 for longer than strong downward moves kept it below 30. Indicator persistence and the direction of the next price move are separate questions.

Even 80/20 did not force an immediate reversal

These are hourly RSI 14 runs pooled across all three years.

LevelsUpper runs / 2+ barsLower runs / 2+ bars
80 / 2076 / 57.9%47 / 55.3%
75 / 25163 / 66.3%135 / 53.3%
70 / 30312 / 60.3%300 / 60.3%
65 / 35564 / 64.7%483 / 63.1%
60 / 40800 / 68.0%681 / 64.8%

Moving the lines to 80 and 20 did not make the first extreme reading a turning point. More than half still lasted into the next bar. The stricter pair also cut the sample to 76 upper runs and 47 lower runs, so its percentages carry much more sampling uncertainty.

Wider zones naturally produce more and longer runs because values nearer 50 now count as extreme. Comparing the probabilities without the number of runs and the width of the zone would make 60/40 look more informative than it is.

Changing RSI length reduced the sample before it changed persistence

The 70/30 lines stay fixed while hourly RSI length changes. Upper and lower runs are combined in this table.

LengthBars beyond 70/30Runs2+ bars5+ bars10+ barsLongest
727.91%1,55757.7%23.2%6.6%25 bars
922.23%1,14960.1%25.2%8.4%28 bars
1413.31%61260.3%26.3%12.9%39 bars
216.98%30364.7%28.7%13.2%30 bars
303.20%13256.8%34.1%15.9%29 bars
500.66%2356.5%34.8%26.1%22 bars

As length rises from 7 to 50, the share of bars beyond 70 or 30 falls from 27.91% to 0.66%. The number of complete runs falls from 1,557 to 23. Smoothing pulls a longer RSI toward 50, so it reaches either outer zone less often.

Next-bar persistence, by contrast, ranges from 56.5% to 64.7% without a steady trend. Five- and ten-bar persistence appear to rise at long settings, but length 50 contains only 23 runs, nine from the lower zone. Adding 2023 cuts its next-bar result from 71.4% in the two-year sample to 56.5% across three years. That swing is what a small sample looks like.

0%20%40%60%80%7n=15579n=114914n=61221n=30330n=13250n=23RSI length (n is the three-year run count)
at least 2 barsat least 5 barsat least 10 barsupper and lower zones combined; USD/JPY hourly, 2023–2025
Persistence does not rise steadily with RSI length. What changes cleanly is the sample: 1,557 runs at length 7 become 23 at length 50, so the last point is too small to rank.

Separating the two sides does not create a clean relationship. Next-bar persistence is 60.0% versus 55.1% at length 7, 60.3% on both sides at length 14, and 59.7% versus 52.7% at length 30. The most reproducible effect of changing length is signal frequency, not run duration.

Only one of 144 period-based fades was positive in all three years

The trading scan combines six RSI lengths, two entry timings, and four holding periods on each timeframe. That is 48 conditions per timeframe and 144 across all three. Upper-zone shorts and lower-zone buys are combined.

TimeframePositive all three yearsLengthEntryHoldYearEventsMean net per event
Fifteen-minute0/48
Hourly1/4850After zone ends10 bars20239+12.54 pips
Hourly1/4850After zone ends10 bars202412+16.82 pips
Hourly1/4850After zone ends10 bars20252+10.75 pips
Four-hour0/48
Total1/144

Pips are average return per event after the recorded bid/ask spread. The only condition positive in all three years has just two events in 2025. That is too little evidence to call length 50 superior.

Changing length alone did not make the fade repeatable. The lone condition positive in all three years had the smallest 2025 sample in the scan, so its event count cannot be omitted.

Fading immediately and waiting for the exit both failed to repeat

If RSI can stay overbought, waiting for it to fall back below 70 before shorting sounds safer. The built-in TradingView RSI Strategy uses this type of exit from the zone: it buys a cross back above the oversold line and shorts a cross back below the overbought line.

The table combines upper-zone shorts and lower-zone buys on hourly RSI 14. Values are average pips per event after the recorded bid/ask spread.

EntryHoldYearMean net per event
Zone starts1 bar2023−1.75 pips
Zone starts1 bar2024+1.68 pips
Zone starts1 bar2025−1.69 pips
Zone starts3 bars2023−2.17 pips
Zone starts3 bars2024+1.01 pips
Zone starts3 bars2025−1.67 pips
Zone starts5 bars2023−1.97 pips
Zone starts5 bars2024+0.26 pips
Zone starts5 bars2025−2.29 pips
Zone starts10 bars2023−1.48 pips
Zone starts10 bars2024−2.81 pips
Zone starts10 bars2025−3.87 pips
Zone ends1 bar2023−3.02 pips
Zone ends1 bar2024−0.51 pips
Zone ends1 bar2025−0.96 pips
Zone ends3 bars2023−2.27 pips
Zone ends3 bars2024−0.59 pips
Zone ends3 bars2025−2.61 pips
Zone ends5 bars2023−0.33 pips
Zone ends5 bars2024−3.70 pips
Zone ends5 bars2025−3.13 pips
Zone ends10 bars2023−1.89 pips
Zone ends10 bars2024−6.14 pips
Zone ends10 bars2025+2.00 pips

The immediate one- through five-bar fades were positive in 2024 and negative at the same settings in 2023 and 2025. Waiting for RSI to leave the zone produced only one positive cell, the ten-bar hold in 2025.

The five-bar comparison reached the same conclusion across the other timeframes. Neither entry timing was profitable in all three years on the fifteen-minute, hourly, or four-hour chart. Leaving the zone can be a confirmation event, but it was not a complete trading edge here.

−30−20−100+10M152023M152024M152025H12023H12024H12025H42023H42024H42025average pips per event
fade as the zone beginsfade after RSI leaves the zoneshort above 70, buy below 30; hold five bars
Waiting for RSI to leave the zone did not make the five-bar fade repeatable. Neither timing finished positive in all three years on any timeframe.

What this test supports

  1. The next RSI bar stayed beyond 30 or 70 about 60% of the time. Hourly RSI 14 measured 60.3% on both sides.
  2. Long overbought runs were more common. On the hourly chart, 19.2% of upper runs lasted ten bars, against 6.3% of lower runs.
  3. Moving to 80/20 did not remove persistence. The next-bar rates were 57.9% and 55.3%.
  4. Longer lengths reduced event counts before they changed persistence. Hourly runs fell from 1,557 at length 7 to 23 at length 50.
  5. Only one of 144 period-based fades was positive in all three years. Its 2025 sample contained two events, too few to identify a better RSI length.

The 70 and 30 lines mark a state, not a reversal time. A practical test must distinguish entering the zone from leaving it, then include event counts, holding time, and the spread.

The main RSI settings test compares 330 combinations of 30/70 fading and 50-line momentum. This follow-up isolates how long each overbought or oversold visit lasts.

Stochastic RSI settings apply another range calculation to RSI itself. The Bollinger Bands fade-versus-breakout test asks the same broader question on price: whether an extreme should be faded immediately or followed as a breakout.

Notes

  • The sample contains only USD/JPY in 2023–2025. Other markets and regimes can have different run lengths.
  • RSI uses closing prices. Intrabar touches of 70 or 30 that did not survive to the close are excluded.
  • Runs already open at the start of a year and runs still open at year-end are excluded because their full duration is unknown within that year's sample.
  • The 80/20 and RSI 50 samples are small, so their percentages are uncertain.
  • Each run is treated as an independent event. Trades can overlap, and summed pips are not a portfolio return.
  • Trend, volatility and session filters, stops, and profit targets were not tested.

Questions people ask

What is the probability that RSI stays overbought on the next bar?
On hourly USD/JPY with RSI 14, 188 of 312 runs that entered at or above 70 remained there for the next bar. That is 60.3% across 2023–2025. At or below 30, the result was 181 of 300 runs, also 60.3%.
How long can RSI remain overbought?
The median hourly run at or above 70 was two bars. However, 30.8% lasted at least five bars, 19.2% lasted at least ten, and the longest lasted 39 bars. At or below 30, 21.7% lasted five bars and 6.3% lasted ten.
Does changing the RSI length change how long it stays extreme?
Not in a steady direction. On the hourly chart, the next-bar persistence rate across lengths 7, 9, 14, 21, 30, and 50 ranged from 56.5% to 64.7% when both zones were combined. Length 50 contained only 23 runs.
Should I short as soon as RSI moves above 70?
This test does not support that rule on its own. An hourly five-bar fade entered as the zone began averaged −1.97 pips in 2023, +0.26 in 2024, and −2.29 in 2025 after the bid/ask spread.
Is it better to wait for RSI to leave overbought or oversold?
Waiting was not consistently better. On the hourly chart, a five-bar fade entered after RSI left the zone averaged −0.33 pips in 2023, −3.70 in 2024, and −3.13 in 2025. Neither timing made money in all three years on any timeframe.
Does using 80/20 prevent RSI from staying overbought or oversold?
No. With hourly RSI 14, 57.9% of runs above 80 lasted into the next bar, as did 55.3% of runs below 20. The stricter levels reduced the sample to 76 and 47 runs, but did not turn the first extreme reading into a reliable reversal point.

Formiq is a free browser-based FX terminal with replay practice and no-code backtesting. Open the chart or see what the free plan includes.