ENTRIQ|Lab
Try ENTRIQ
BasicsLAYER 1

How to Backtest RSI|Setting Conditions and Reading Results

RSI backtest results depend on your test conditions. Learn how to select stocks, set the test period, define entries and exits, and review results in ENTRIQ.

Why test RSI with backtesting?

Rules of thumb such as "RSI bounces at 30" or "above 50 means a trend" won't necessarily hold in the markets you trade. Even with the same RSI, results change depending on the stocks, timeframe, period setting, and how you define entries and exits. That is why you shouldn't take rules of thumb at face value; set your conditions and check them through backtesting. For RSI basics, see What Is RSI.

How to set test conditions|Fix six items first

An RSI backtest starts by deciding the following six items up front. If they are vague, you can't compare results.

ItemWhat to decideExample
Stock universeWhich market and stocks to testMajor US stocks
PeriodFrom when to whenThe last few years or more
TimeframeDaily or intradayDaily
RSI settingWhich period length to use14 (standard)
Entry definitionWhat triggers a buy/sellBuy on the bar after RSI crosses below 30
Exit definitionWhat triggers closing the positionRSI returns to 50 / after N days / stop loss at -X%

The key is to always define entries and exits as a set. If you decide only the entry and not the exit, results become inconsistent and the test isn't meaningful.

Sample size and number of trials|Before you trust the numbers

Test results aren't reliable while the sample size (number of trades) is small. Even if price bounces several times in a row, that may be chance. For an indicator like RSI, which works in some conditions and not in others, patterns only emerge after enough repetitions. Being able to build up repetitions through backtesting in ENTRIQ, without risking real money, is an advantage here.

Strategy rule examples|Two ways to put them into words

Writing the RSI rules you want to test in words and fixing them makes your testing more consistent. In the "Strategy rules" field of ENTRIQ's Strategy Tags, you can use either of the following two patterns.

① Discretionary (define the situation in words)

Market context: The daily chart is not falling too steeply; range-bound to a gentle downtrend. / Entry: Buy on the next bar once RSI drops below 30 and the decline shows signs of stalling. / Stop loss: Exit if price clearly breaks the recent low. / Exit: Close when RSI recovers to 50. / Stay out: Don't enter if RSI stays at or below 30 in a strong downtrend.

② Rules-based (state the conditions in numbers)

Entry: Buy at the open of the bar after RSI(14) crosses below 30. / Stop loss: -2%. / Exit: Close when RSI(14) reaches 50 or above, or after holding for 10 days.

The numbers are examples of how to write rules and do not guarantee effectiveness or profit. These two patterns can be used with the same structure when testing other indicators such as MACD.

Steps in ENTRIQ

  1. In Chart Replay, choose the stock and period, and display RSI.
  2. Advance the historical chart one bar at a time, enter a simulated trade when your entry condition appears, and close it according to your exit rule. Repeat this process to build up your trade sample.
  3. Aggregate the results by Strategy Tags and check the win/loss breakdown, average P/L, and drawdown.
  4. Use AI analysis to put the patterns observed in your records and notes into words (an observation of the past, not a prediction).

How to read the results|Metrics to check

When reviewing the aggregated results, look at several metrics together, not just the win rate. The bounce rate (win rate) alone isn't enough to judge. By also checking the size of gains and losses per trade (risk-reward) and the maximum drawdown, you can spot patterns such as "a high win rate but large losses."

Common mistakes

Testing only the entry condition without deciding the exit / concluding there is a pattern from a small sample / remembering only the cases that bounced and ignoring those that kept falling / changing the period or stocks each time and comparing results without aligning the conditions.

Frequently asked questions (FAQ)

Q. What is the minimum number of trades for an RSI backtest? A. There is no fixed number, but a handful of trades can't be distinguished from chance. Aligning the conditions and building up enough repetitions is the starting point. Q. Can I run backtests automatically? A. ENTRIQ is a backtesting tool for discretionary traders that lets you manually advance historical charts and practice making trading decisions. Q. Will the test results work as-is in live trading? A. Past results don't guarantee future results. Testing is for firming up your decision criteria and making your decisions more consistent.

What this article covered

  • For an RSI backtest, fix six conditions first: stock universe, period, timeframe, setting, entry, and exit.
  • Always define entries and exits as a set, and don't take the numbers at face value while the sample size is small.
  • Write out your strategy rules using either the Discretionary or Rules-based format, then repeat the tests and aggregate the results in ENTRIQ.

This article provides information on methods for testing with historical data and does not recommend any specific trade or setting. The numbers and examples shown are samples and do not indicate effectiveness or future results. All investment decisions are your own responsibility.

Reproduce this validation yourself

With ENTRIQ's chart replay, you can trade through past charts using the same rules.

Try the demo — no sign-up

No sign-up or card needed. Runs right in your browser. Start 14-day free trial →

Validate your method on past charts

The same validation in this article can be reproduced with your own method. On past charts, do the classics really work?

  • ✓ Replay past charts
  • ✓ AI feedback on your trades
  • ✓ Validate methods with statistics

No sign-up or card needed. Runs right in your browser.

Related reading

BasicsLAYER 1

When RSI Works Less Well|False Signals and How to Respond

RSI is not a universal tool. This guide covers when false signals increase, such as strong trends where RSI stays oversold, and how to spot and handle them.

BasicsLAYER 1

How to Trade RSI Reversals|Aiming for a Bounce from Oversold

Contrarian RSI trading aims for a bounce from oversold levels (30 or below). This guide covers entry and exit rules, avoiding false signals, and how to test it.

BasicsLAYER 1

How to Set Up RSI|Where to Find It and What the Levels Mean

The standard RSI period is 14. This guide covers what changes when you adjust the period, how to add RSI in each tool, and what 30 and 70 mean.

BasicsLAYER 1

What Is RSI|Meaning, Reading and Formula for Beginners

RSI is an oscillator showing overbought and oversold conditions on a 0–100 scale. This beginner's guide covers its meaning, calculation, 30/70 and divergence.

Try in ENTRIQ

Reproduce this validation with your own method

Replay past charts and discover your method's actual win rate.

Try the demo — no sign-up

Start 14-day free trial →