RSI(2) Strategy Backtest Out of Sample: Strict vs Loose, 8 Positive Years of 11
Our RSI(2) strategy backtest on SPY and QQQ, 2016-2026, net of 3 bps a side: strict vs loose entries out of sample, and the strict one's record by year.
In our RSI(2) strategy backtest on SPY and QQQ daily data from 2016 to 2026, net of 3 bps a side, every RSI(2) entry had a positive average per trade in the held-out 2021–2026 years. The strict entry, RSI(2) below 5, averaged more per trade than the looser one, below 10, on both ETFs: +0.93% against +0.82% on QQQ, and +0.93% against +0.71% on SPY.
Year by year, the strict QQQ entry averaged a positive return per trade in 8 of 11 calendar years, and its worst year was −0.22% per trade. The record notes that the looser entry “got hurt in 2022 (−1.86%) and 2018 (−0.52%)”. These averages rest on 25 to 51 out-of-sample trades, with the rule in the market only 6% to 11% of the time, and a per-trade average isn’t an annual return.
Every figure on this page is a backtest simulation — not live results, not a prediction, not advice. The figures are copied from a desk research record (mr_results.md, run 1 July 2026) built on SPY and QQQ daily adjusted closes, 2016–2026, with costs of 3 bps per side. The record splits the history into an in-sample period up to 2020 and an out-of-sample period from 2021 on.
The rule and the test
RSI(2) is the relative strength index computed over just two days, so it swings to extremes after one or two down closes. A dip-buy rule enters when it falls below a threshold. What the record states:
- Entry: RSI(2) below 5 (strict) or below 10 (loose), on SPY or QQQ. One comparison row uses a different dip measure, distance below the 10-day moving average.
- Trend filter: the record’s notes on the strict QQQ series credit a 200-day filter that “blocked entries once QQQ fell below its SMA”.
- Data and costs: daily adjusted closes, 2016–2026, net of 3 bps per side.
- Split: in-sample to 2020, out-of-sample 2021 on.
The excerpt doesn’t state the exit rule or the RSI smoothing method, and it doesn’t say whether every row in the table carries the 200-day filter. Here’s the entry as code. It’s a simplified illustration, not the desk’s research code, and it assumes Wilder smoothing and a filter on every row:
# Illustrative only. The record states the thresholds and a 200-day filter;
# it doesn't state the RSI smoothing or the exit rule.
import pandas as pd
def rsi(close: pd.Series, n: int = 2) -> pd.Series:
change = close.diff()
gain = change.clip(lower=0).ewm(alpha=1 / n, adjust=False).mean() # Wilder smoothing
loss = (-change.clip(upper=0)).ewm(alpha=1 / n, adjust=False).mean()
return 100 - 100 / (1 + gain / loss)
def dip_entry(close: pd.Series, threshold: float = 5) -> pd.Series:
above_trend = close > close.rolling(200).mean() # the 200-day filter
return above_trend & (rsi(close) < threshold) # 5 = strict, 10 = loose
Out of sample: both entries positive, the strict one higher
Here’s the record’s out-of-sample table, copied as printed. “Trades” is the full 2016–2026 count; “OOS n” is the subset from 2021 on, and the expectancy and win rate are for that subset, per trade, net of costs:
| Config | Trades | OOS n | OOS expectancy | OOS win rate | Exposure |
|---|---|---|---|---|---|
| QQQ RSI(2)<5 | 42 | 25 | +0.93% | 88% | 7% |
| QQQ RSI(2)<10 | 82 | 48 | +0.82% | 77% | 11% |
| SPY RSI(2)<5 | 47 | 28 | +0.93% | 79% | 6% |
| SPY RSI(2)<10 | 84 | 51 | +0.71% | 76% | 11% |
| QQQ %<3%-below-10dMA | 23 | 15 | +1.00% | 73% | 7% |
Backtest simulation — not live results, not a prediction, not advice.
Three things in the table matter more than the headline numbers:
- The loose entry roughly doubles the trades. It took 82 trades on QQQ against 42, and 84 on SPY against 47, and pushed exposure from 6–7% to 11%, and its per-trade averages were lower on both ETFs.
- The samples are small. 25 out-of-sample trades on the strict QQQ entry means a couple of trades either way would visibly move the average. The record gives no spread or confidence interval, so it can’t show whether a 0.11-point gap between 25 and 48 trades is more than noise.
- Exposure is the context for every expectancy. The strict QQQ rule held a position about 7% of the time. A +0.93% average per trade at that exposure isn’t +0.93% a year, and this page doesn’t multiply it into one.
The strict QQQ row also appears in backtesting mistakes that only real data reveals, where the desk recomputed it on a second data source (+0.933% against +0.934%). That check isn’t repeated here.
Year by year: the strict QQQ entry
The record breaks the strict QQQ entry down by calendar year, in percent per trade:
| QQQ RSI(2)<5, % per trade | Positive years | Negative years | About zero |
|---|---|---|---|
| In-sample, 2016–2020 | 3 | 1 (2020, −0.22) | 1 (2018) |
| Out-of-sample, 2021–2026 | 5 | 1 (2025, −0.13) | 0 |
| All 11 years | 8 | 2 | 1 |
Backtest simulation — not live results, not a prediction, not advice. 2026 is a partial year, since the run is dated 1 July 2026.
The two losing years were small, and five of the six out-of-sample years were positive. The looser entry’s bad years were bigger, at least as the record notes them: “the looser RSI(2)<10 got hurt in 2022 (−1.86%) and 2018 (−0.52%)”. The note sits under the QQQ per-trade series but doesn’t restate the unit or the ETF, and the record gives no other per-year figures for the loose entry. So the comparison is limited to those two years. One of them, 2022, falls in the out-of-sample period, and it’s the strict entry’s best full year, at +1.51%.
Each yearly figure also rests on very few trades. The strict QQQ entry took 42 trades in 11 calendar years, which works out to under four a year on average.
A small finding: “10 of 11 years” isn’t what the series says
The record heads its per-year line “positive in 10 of 11 years”. Its own numbers don’t support that:
per_year = {2016: 0.65, 2017: 1.16, 2018: 0.0, 2019: 0.65, 2020: -0.22, 2021: 1.28,
2022: 1.51, 2023: 0.88, 2024: 0.89, 2025: -0.13, 2026: 2.17} # % per trade; 2018 printed as "~0"
positive = [y for y, v in per_year.items() if v > 0]
negative = [y for y, v in per_year.items() if v < 0]
print(len(positive), len(negative)) # 8 2 (2018 is neither)
print(round(42 / 11, 1)) # 3.8 trades a year on average, all 2016-2026 trades
Eight positive years, two negative and one flat. Even counting the flat year as a win gives 9 of 11. The losses are small, so the overall picture doesn’t change much, but the header is a summary written over the data rather than counted from it. It’s the kind of line worth recounting in any backtest write-up, including your own.
What the 200-day filter claim can and can’t support
The record’s note on 2020 reads: “only −0.22% — the 200-day filter neutralized the falling-knife fragility the scout warned about (it blocked entries once QQQ fell below its SMA). Filter confirmed essential.”
The mechanism is plausible: a dip-buy rule that stands aside once price is below its 200-day average skips the buys that come during a sustained fall. But the excerpt we hold has no unfiltered run of the same rule, so this page can’t say what 2020, or any other year, would have looked like without the filter. “Confirmed essential” needs that comparison, and the record shows only the filtered side.
The strict entry was named after the held-out years were seen
The record’s conclusion is “the strict RSI(2)<5 is the robust choice. Tighter = better here.” That verdict was written with both thresholds’ out-of-sample results in view. The record doesn’t say whether the two thresholds were fixed before the 2021+ data was looked at. Either way, choosing between them on out-of-sample results uses up that data for the choice: the out-of-sample period tested two thresholds, and it can’t also be the independent test of the one it picked. Our strategy validation checklist covers why held-out data only works once. The next untouched data for this choice begins after the July 2026 run.
A different RSI(2) study, a sleeve across the 11 SPDR sector ETFs, is covered in our trend-following diversifier backtest, and how that study’s cap on open positions decided which signals it traded is in our max open positions backtest.
What this backtest can’t tell you
- How long trades lasted, or how they exited. The excerpt doesn’t state the exit rule.
- What the filter was worth. There’s no unfiltered baseline.
- Whether the gaps between rows are more than noise. There are 15 to 51 out-of-sample trades per row and no spread.
- Anything about the future. One stretch of history, two ETFs, daily bars.
Frequently asked questions
What is the RSI(2) strategy?
It’s a short-term dip-buy rule: buy when the two-day relative strength index drops below a low threshold, usually only while price is above a long trend average. In this backtest the thresholds were 5 and 10, and the record credits a 200-day filter.
Does an RSI(2) strategy hold up out of sample?
In this backtest, every RSI(2) entry on SPY and QQQ had a positive average per trade in the 2021–2026 held-out period, net of 3 bps a side: +0.71% to +0.93%, on 25 to 51 trades each, with exposure of 6% to 11%. Backtest simulation — not live results, not a prediction, not advice.
Is RSI(2) below 5 better than below 10?
In this backtest the strict threshold averaged more per trade out of sample on both ETFs (+0.93% against +0.82% on QQQ, +0.93% against +0.71% on SPY), on roughly half as many trades. The record gives no confidence intervals, and it picked the strict entry after seeing the held-out results. This page describes the test; it doesn’t recommend a threshold. Backtest simulation — not live results, not a prediction, not advice.
Is a per-trade expectancy the same as an annual return?
No. The strict QQQ entry’s +0.93% out-of-sample average applies to each trade, and the rule held a position about 7% of the time. What that adds up to over a year depends on how many trades occur and what the money does in between, which this page doesn’t project.
This is educational content about research method, not financial advice. No positions, live signals, account values or trading results appear on this page. All figures are historical backtest simulations over the stated period — not live results, not predictions, not a recommendation of any strategy, instrument or threshold.