RSI(2): a first look
One of the most shared trading rules, tested across 42 settings, against holding SPY and against 500 random strategies with the same exposure. The edge is real. The trend filter usually added to it is the wrong one, and where the edge lives says what to try instead.

The two-day RSI rule on SPY is one of the most widely shared trading strategies there is. RSI, the relative strength index, measures how far a price has moved up or down over a short window, and the idea is simple: when the S&P 500 has fallen sharply for a couple of days, buy it, and sell when it recovers. The usual version buys when the two-day RSI drops below 10 and sells when it rises above 50.
I tested 42 combinations of entry and exit level, with no trading costs and with realistic ones, before and after 2019, in rising and falling markets, against simply holding SPY, and against 500 strategies that buy at random with the same exposure. Three conclusions came out of it.
RSI(2) has a real edge. It earns less than holding SPY, but far more for the risk it takes, and its risk-adjusted return beat all 500 random strategies by a wide margin. The profit comes from when it buys, not just from being out of the market most of the time.
The trend filter is the wrong filter for it. The usual improvement, only buying when SPY is above its 200-day average, throws away the trades that earn the most. Even with its settings re-tested, it made the rule worse.
Where the edge lives says what to try instead. The edge is thin when the market is calm and rising, and strongest after sharp falls, in high volatility and in deep drawdowns. One zone loses money in both halves of the history. Those are the places to look for a better filter.
That is why I follow the same order with any idea. First, does it make business sense before anything is tested? Then, what does the raw idea look like, with no filters, and is it better than chance? Then, how does the edge behave in different market regimes? Then, within the regime the strategy will actually trade in, re-test the mechanics so they suit it. And at the end, can I still explain the result in plain business terms? If I cannot, I do not trust it to last.
Start with why it should work
RSI can be used as a momentum indicator, but it is well documented as a mean-reversion one, where very high readings mark a market as overbought and very low readings as oversold. A sharp drop in the two-day RSI says SPY is oversold, and buying it is a bet that the price reverts. That is the idea being tested here. Everything that follows tests whether the idea has an edge, how to trade it and where it works. None of that would matter if the idea itself made no sense.
Decide how you would execute before you test
Before testing any indicator, you need an idea of how you could actually trade it. With RSI(2) there is a practical answer. The signal depends only on recent closing prices, so it is close to known before the market shuts, and a trade can be placed near the close.
Knowing that, a backtest that buys at the close on the day RSI crosses the level is a fair approximation of what could really be done, provided the slippage, the difference between the price you planned and the price you get, is realistic. Slippage depends on how you trade. At small size, one to two basis points is a reasonable assumption. At larger size, orders can go unfilled or move the price, and you then have to decide whether to chase it, which makes the result messier and more expensive. A single missed trade can raise the average slippage of a whole strategy noticeably.
The test
Every combination buys SPY when its two-day RSI falls below the entry level and sells when it rises above the exit level. The entry levels are 2, 5, 10, 15, 20, 25 and 30, and the exit levels 40, 50, 60, 70, 80 and 90. Each trade is the same $100,000, and profits are never reinvested, so every year is measured on the same footing. The test runs on daily data from January 2000 to October 2026. Everything up to the end of 2018 is in sample and 2019 to 2026 is out of sample, which includes the COVID crash. I always want at least ten years in sample and three out of sample, preferably with a crisis in the second part.
Each combination was run with no costs at all and with realistic ones: broker commissions plus 2 basis points of slippage on every order, which is $20 on each side of a $100,000 trade. Later, the whole grid was run again with entries allowed only in rising markets, and then only in falling ones. All of it was simulated in my own backtesting engine, which is also where every figure below comes from.
Is there an edge at all?
Before asking which setting is best, I want to know whether there is anything there. Two comparisons answer that, and both have to be judged on risk-adjusted return, not return alone. A strategy that is in the market less of the time will usually earn less than one that is always in, so raw return would make almost any timing rule look worse than holding. What matters is how much it earns for the risk it carries.
The first comparison is against simply holding SPY, sized the same way, $100,000 all the time.
Two settings at realistic costs, against holding SPY
Hypothetical backtest- Buy below 10, sell above 40
- Buy below 30, sell above 40 (best with no costs)
- Always long $100,000 of SPY (buy and hold, constant size)
| Annual return | Worst drawdown | Return to drawdown | Monthly Sharpe | Trades | 2000 to 2018 | 2019 to 2026 | |
|---|---|---|---|---|---|---|---|
| Always long SPY ($100,000) | 8.05% | 72.9% | 0.11 | 0.54 | 4.70% | 16.22% | |
| Buy below 10, sell above 40 | 5.91% | 18.7% | 0.32 | 0.72 | 653 | 5.12% | 7.83% |
| Textbook, buy below 10, sell above 50 | 5.14% | 22.1% | 0.23 | 0.57 | 600 | 3.97% | 7.99% |
| Buy below 30, sell above 40 | 6.01% | 40.5% | 0.15 | 0.49 | 1,677 | 6.91% | 3.83% |
None of the settings earned more than being long SPY all the time, which made 8.1% a year. But buy below 10, sell above 40 had a worst drawdown of 19% of the base, against 73% for holding SPY from October 2007 to March 2009. It earned nearly three times as much for each point of worst drawdown, 0.32 against 0.11, and had a higher monthly Sharpe ratio, a measure of return against volatility, 0.72 against 0.54. It also made money in five of the six years SPY lost money: 2000, 2001, 2002, 2008 and 2022. The exception was 2018.
That still leaves a fair objection. RSI(2) is invested on only about a quarter of trading days, and a strategy that is out of the market most of the time will have a smaller drawdown whatever it does. So the second comparison is against chance. I ran 500 strategies that buy SPY at random: on any day without a position, a coin flip with an 11% chance of buying at the next open, and a holding period drawn at random from RSI(2)’s own, mostly one or two days. They take about the same number of trades, a median of 655 against RSI(2)’s 653, hold for the same lengths of time, pay the same costs and use the same $100,000 per trade. The only thing missing is the signal.
RSI(2) against 500 random strategies with the same exposure
Hypothetical backtestMonthly Sharpe ratio
Buy below 10, sell above 40 0.72; above 500 of 500 random runs; Holding SPY 0.54
Return to worst drawdown
Buy below 10, sell above 40 0.32; above 500 of 500 random runs; Holding SPY 0.11
- random-entry runs (count)
- Buy below 10, sell above 40
- Holding SPY
| Buy below 10, sell above 40 | Random: typical (median) | Random: best of 500 | Random runs it beat | |
|---|---|---|---|---|
| Monthly Sharpe | 0.72 | −0.03 | 0.48 | 500 of 500 |
| Return to worst drawdown | 0.32 | 0.00 | 0.18 | 500 of 500 |
| Annual return | 5.91% | −0.22% | 3.74% | 500 of 500 |
| Worst drawdown | 18.7% | 48.4% | 18.3% | 499 of 500 |
| Winning trades | 66.3% | 52.4% | 57.5% | 500 of 500 |
| Profit factor | 1.54 | 0.98 | 1.31 | 500 of 500 |
| Average trade | $242 | −$9 | $152 | 500 of 500 |
The typical random strategy made nothing after costs. Fewer than half of them, 219 of 500, made money at all. RSI(2)’s Sharpe ratio was half as high again as the best of the 500, and its return against worst drawdown nearly twice the best. Being out of the market most of the time did not produce that result. Choosing when to be in it did.
The one place a handful of random strategies kept up was after 2019, when owning SPY on almost any day paid. Eleven of the 500 matched or beat RSI(2)’s monthly Sharpe from 2019 to 2026. Before 2019, none did. The random strategies buy and sell at the open rather than near the close, but they pay the same costs, so the comparison is fair on cost if not on fill timing.
So yes, RSI(2) has an edge, and it is a risk-adjusted one. It is a lower-return, much lower-risk way of being exposed to SPY, and only if it is executed well.
Which settings are best? It depends on the question
Annual return by entry and exit level
Hypothetical backtestNo costs
| Sell above → | ||||||
|---|---|---|---|---|---|---|
| Buy below ↓ | 40 | 50 | 60 | 70 | 80 | 90 |
| 2 | 2.3 | 1.9 | 2.8 | 3.1 | 3.7 | 3.7 |
| 5 | 4.8 | 4.7 | 6.2 | 7.1 | 6.7 | 4.9 |
| 10 | 7.5 | 6.6 | 6.6 | 6.4 | 7.1 | 6.8 |
| 15 | 6.7 | 5.6 | 5.9 | 5.7 | 6.8 | 7.6 |
| 20 | 8.1 | 6.0 | 5.5 | 4.9 | 6.1 | 7.9 |
| 25 | 9.8 | 8.1 | 7.5 | 6.6 | 7.9 | 8.8 |
| 30 | 10.1★ | 7.9 | 6.5 | 6.1 | 7.8 | 8.7 |
Commissions + 2 bp slippage per side
| Sell above → | ||||||
|---|---|---|---|---|---|---|
| Buy below ↓ | 40 | 50 | 60 | 70 | 80 | 90 |
| 2 | 2.0 | 1.6 | 2.6 | 2.8 | 3.4 | 3.5 |
| 5 | 4.1 | 3.9 | 5.5 | 6.4 | 6.2 | 4.4 |
| 10 | 5.9 | 5.1 | 5.3 | 5.2 | 6.1 | 6.0 |
| 15 | 4.5 | 3.6 | 4.1 | 4.1 | 5.5 | 6.7 |
| 20 | 5.2 | 3.4 | 3.2 | 3.0 | 4.6 | 6.8 |
| 25 | 6.3 | 4.9 | 4.7 | 4.2 | 6.1 | 7.6★ |
| 30 | 6.0 | 4.3 | 3.3 | 3.5 | 5.7 | 7.4 |
- darker = higher (same scale in every panel)
- Textbook setting (10 / 50)
- ★best cell in each panel
With no costs, the best return comes from the busiest corner of the grid: buy below 30, sell above 40, which earned 10.1% a year from 1,677 trades. Buying on a mild dip and selling on a small bounce trades very often, and when trading is free, more trades means more profit.
Add realistic costs and that corner falls to 6.0% a year, with a worst drawdown of 40.5%. The best return moves to the opposite side of the grid, buy below 25 and sell above 90, at 7.6% a year from 507 trades, but with a worst drawdown of 53% of the base. Waiting for RSI to reach 90 means sitting through whatever the market does in between.
The trade statistics show why costs move the answer. Buy below 30, sell above 40 trades about 63 times a year. With no costs its average trade made $161 and its profit factor, gross profit divided by gross loss, was 1.37. With costs, the same 1,677 trades made $96 on average and the profit factor fell to 1.21. A strategy that makes a small profit on each trade gives a large share of it back in costs.
| Trades a year | Winning trades | Profit factor | Average trade | |
|---|---|---|---|---|
| Buy below 10, sell above 40 | 24.4 | 66.3% | 1.54 | $242 |
| Textbook, buy below 10, sell above 50 | 22.4 | 67.5% | 1.45 | $229 |
| Buy below 30, sell above 40 | 62.6 | 59.7% | 1.21 | $96 |
| Buy below 25, sell above 90 | 18.9 | 75.3% | 1.41 | $402 |
All with commissions plus 2 bp slippage per side. Profit factor is gross profit divided by gross loss over all trades, and the average trade is net profit divided by the number of trades, both after costs.
Return against worst drawdown
Hypothetical backtestNo costs
| Sell above → | ||||||
|---|---|---|---|---|---|---|
| Buy below ↓ | 40 | 50 | 60 | 70 | 80 | 90 |
| 2 | 0.09 | 0.07 | 0.15 | 0.13 | 0.17 | 0.08 |
| 5 | 0.26 | 0.25 | 0.30 | 0.33 | 0.24 | 0.09 |
| 10 | 0.40★ | 0.30 | 0.18 | 0.14 | 0.18 | 0.13 |
| 15 | 0.33 | 0.24 | 0.15 | 0.11 | 0.17 | 0.15 |
| 20 | 0.33 | 0.20 | 0.12 | 0.09 | 0.13 | 0.15 |
| 25 | 0.33 | 0.28 | 0.17 | 0.15 | 0.16 | 0.17 |
| 30 | 0.31 | 0.22 | 0.14 | 0.13 | 0.19 | 0.16 |
Commissions + 2 bp slippage per side
| Sell above → | ||||||
|---|---|---|---|---|---|---|
| Buy below ↓ | 40 | 50 | 60 | 70 | 80 | 90 |
| 2 | 0.07 | 0.05 | 0.14 | 0.12 | 0.15 | 0.07 |
| 5 | 0.22 | 0.21 | 0.26 | 0.29 | 0.22 | 0.08 |
| 10 | 0.32★ | 0.23 | 0.14 | 0.11 | 0.14 | 0.11 |
| 15 | 0.18 | 0.13 | 0.10 | 0.08 | 0.13 | 0.13 |
| 20 | 0.17 | 0.10 | 0.07 | 0.05 | 0.09 | 0.13 |
| 25 | 0.18 | 0.15 | 0.10 | 0.09 | 0.12 | 0.14 |
| 30 | 0.15 | 0.10 | 0.07 | 0.06 | 0.13 | 0.14 |
- darker = higher (same scale in every panel)
- Textbook setting (10 / 50)
- ★best cell in each panel
Ranked by return against worst drawdown, the answer is the same with and without costs: buy below 10, sell above 40. It scores 0.40 with no costs and 0.32 with realistic ones, and the textbook 10 and 50 sits right next to it, fourth of the 42 with costs. Costs lower every number on this map, but they do not change which settings are best. Ranked on return, the answer depends on an assumption about costs you may not get. Ranked on risk-adjusted return, it is stable.
Annual return before and after 2019, realistic costs
Hypothetical backtest2000 to 2018 (in sample)
| Sell above → | ||||||
|---|---|---|---|---|---|---|
| Buy below ↓ | 40 | 50 | 60 | 70 | 80 | 90 |
| 2 | 1.0 | 0.5 | 1.3 | 2.0 | 2.6 | 3.1 |
| 5 | 3.1 | 2.4 | 3.8 | 5.1 | 4.1 | 3.1 |
| 10 | 5.1 | 4.0 | 5.1 | 4.8 | 4.5 | 5.0 |
| 15 | 5.0 | 3.5 | 4.7 | 4.4 | 4.6 | 6.3 |
| 20 | 6.2 | 3.8 | 4.1 | 3.2 | 3.5 | 5.7 |
| 25 | 6.8 | 5.0 | 4.9 | 4.1 | 4.5 | 6.2 |
| 30 | 6.9★ | 4.3 | 3.4 | 3.6 | 4.0 | 5.3 |
2019 to 2026 (out of sample)
| Sell above → | ||||||
|---|---|---|---|---|---|---|
| Buy below ↓ | 40 | 50 | 60 | 70 | 80 | 90 |
| 2 | 4.4 | 4.4 | 5.6 | 4.7 | 5.4 | 4.6 |
| 5 | 6.3 | 7.6 | 9.6 | 9.8 | 11.2 | 7.6 |
| 10 | 7.8 | 8.0 | 5.7 | 6.1 | 10.0 | 8.5 |
| 15 | 3.1 | 3.9 | 2.6 | 3.3 | 7.6 | 7.6 |
| 20 | 2.9 | 2.4 | 0.8 | 2.4 | 7.3 | 9.4 |
| 25 | 5.0 | 4.7 | 4.3 | 4.6 | 9.9 | 11.0 |
| 30 | 3.8 | 4.0 | 2.9 | 3.1 | 9.9 | 12.4★ |
- darker = higher (same scale in every panel)
- Textbook setting (10 / 50)
- ★best cell in each panel
Had you chosen the setting with the best return from 2000 to 2018, you would have picked buy below 30, sell above 40, at 6.9% a year. From 2019 it earned 3.8% a year, 33rd of the 42 settings. Buy below 10, sell above 40 earned 5.1% a year before 2019 and 7.8% after, ninth of the 42 in the first period and twelfth in the second. Most settings, 28 of the 42, did better after 2019, because those years were unusually good for owning the index at all, but this one stayed in the top third in both. That is what I want from a parameter: not the highest number in one period, but a result that survives a change of period.
Every one of the 42 settings made money at realistic cost. That matters as much as which one was best. An edge that only shows up in one corner of the grid is usually a fitted one. Here it shows up everywhere, and the settings only change how much of it you keep.
How the edge behaves in rising and falling markets
The usual improvement offered for RSI(2) is a trend filter: only buy when SPY is above its 200-day moving average. Before adding one, I want to know how the edge behaves on each side of it. So the whole grid was run twice more, once buying only when SPY was above its 200-day average, a rising market, and once only when it was below, a falling one.
Return against worst drawdown in rising and falling markets
Hypothetical backtestOnly when SPY is above its 200-day average
| Sell above → | ||||||
|---|---|---|---|---|---|---|
| Buy below ↓ | 40 | 50 | 60 | 70 | 80 | 90 |
| 2 | 0.00 | 0.01 | 0.05 | 0.05 | 0.09 | 0.04 |
| 5 | 0.02 | 0.05 | 0.09 | 0.10 | 0.21 | 0.10 |
| 10 | 0.10 | 0.08 | 0.12 | 0.10 | 0.18 | 0.09 |
| 15 | 0.09 | 0.10 | 0.19 | 0.12 | 0.19 | 0.13 |
| 20 | 0.08 | 0.07 | 0.19 | 0.14 | 0.18 | 0.11 |
| 25 | 0.17 | 0.17 | 0.26★ | 0.12 | 0.23 | 0.11 |
| 30 | 0.14 | 0.13 | 0.20 | 0.08 | 0.19 | 0.10 |
Only when SPY is below its 200-day average
| Sell above → | ||||||
|---|---|---|---|---|---|---|
| Buy below ↓ | 40 | 50 | 60 | 70 | 80 | 90 |
| 2 | 0.11 | 0.08 | 0.09 | 0.13 | 0.14 | 0.04 |
| 5 | 0.23 | 0.18 | 0.19 | 0.25 | 0.10 | 0.03 |
| 10 | 0.25★ | 0.20 | 0.09 | 0.12 | 0.11 | 0.05 |
| 15 | 0.13 | 0.08 | 0.03 | 0.07 | 0.08 | 0.04 |
| 20 | 0.18 | 0.07 | 0.00 | 0.04 | 0.05 | 0.05 |
| 25 | 0.11 | 0.07 | 0.01 | 0.05 | 0.06 | 0.06 |
| 30 | 0.12 | 0.06 | 0.00 | 0.05 | 0.07 | 0.06 |
- below zero · zero · above zero (same scale in every panel)
- Textbook setting (10 / 50)
- ★best cell in each panel
The two maps are close to mirror images. In a rising market the best setting buys a shallow dip: buy below 25, sell above 60, at 5.5% a year with a worst drawdown of 21.6%. In a falling market it buys a deep one: buy below 10, sell above 40, at 4.3% a year with a worst drawdown of 16.8%. Each does badly on the other’s settings. Buy below 25, sell above 60 earned 0.3% a year in falling markets, with a 40.5% drawdown, and buy below 10, sell above 40 earned 2.2% a year in rising ones.
That makes business sense. When a market has upward momentum, it does not need a deep pullback before the momentum resumes, so a small dip is enough to buy. When the trend is down, a small dip is just part of the fall, and only a deeply oversold reading is worth buying.
| Only buy when SPY is | Best setting | Annual return | Worst drawdown | Return to drawdown | Trades a year | Winning trades | Profit factor | Average trade |
|---|---|---|---|---|---|---|---|---|
| Above its 200-day average | 25 / 60 | 5.54% | 21.6% | 0.26 | 31.8 | 71.2% | 1.40 | $174 |
| Below its 200-day average | 10 / 40 | 4.27% | 16.8% | 0.25 | 9.6 | 67.8% | 1.89 | $442 |
Falling markets are where the most valuable trades are, and they are exactly what the textbook filter throws away. Trades there are rarer, about ten a year, but they are the most profitable per trade in this study, with a profit factor of 1.89 and $442 on an average trade, against 1.40 and $174 in rising markets. In falling markets, the setting with the best return from 2000 to 2018, buy below 25 and sell above 40, ranked 37th of 42 afterwards, so the same warning about choosing on one period applies.
Re-test the mechanics with the filter on
This is why the common way of testing a filter gives the wrong answer. The common way is to add it to the settings you already have. Added to buy below 10, sell above 40, the rising-market filter removed 231 of the 653 trades, cut the return from 5.9% to 2.2% a year and made the worst drawdown deeper, 21.1% against 18.7%. But buy below 10 is a falling-market setting, and the filter had removed the trades it is best at.
A filter changes which trades are taken, so it can change which settings work. If a strategy will only be switched on in rising markets, its mechanics have to be chosen in rising markets. Re-run the grid with the filter in place and the best setting becomes buy below 25, sell above 60, at 5.5% a year, a very different verdict from the 2.2% the filter seemed to deliver when it was bolted on.
The trend filter, bolted on and re-tested
Hypothetical backtest- No filter: buy below 10, sell above 40
- Rising markets only, re-tested: buy below 25, sell above 60
- Rising markets only, bolted on: buy below 10, sell above 40
| Annual return | Worst drawdown | Return to drawdown | Trades a year | Winning trades | Profit factor | Average trade | |
|---|---|---|---|---|---|---|---|
| No filter, 10 / 40 | 5.91% | 18.7% | 0.32 | 24.4 | 66.3% | 1.54 | $242 |
| Rising markets only, bolted on, 10 / 40 | 2.17% | 21.1% | 0.10 | 15.7 | 65.9% | 1.32 | $138 |
| Rising markets only, re-tested, 25 / 60 | 5.54% | 21.6% | 0.26 | 31.8 | 71.2% | 1.40 | $174 |
Even re-tested, trading only in rising markets did not beat the unfiltered rule, 0.26 return to drawdown against 0.32. The re-test gives the filter its fairest chance, and it still fails, because it switches the strategy off in exactly the conditions where a mean-reversion signal is paid most. For RSI(2) on SPY, the trend filter is the wrong filter.
Where the edge lives
If the trend filter is the wrong filter, the next question is what a better one would look like. To find out, I took every trade of buy below 10, sell above 40 and recorded the state of the market at the close before it was entered: which side of its 200-day average SPY was on, how volatile it had been over the past 20 days, how far it was below its 52-week high, and what it had done over the past month. Then I compared the trades in the weak parts of the record with those in the strong parts.
| Market state when the trade was entered | Trades | Winning trades | Profit factor | Average trade |
|---|---|---|---|---|
| All trades | 619 | 66% | 1.52 | $234 |
| Above the 200-day average, volatility in the lower two thirds of its past year | 339 | 65% | 1.26 | $100 |
| Above the 200-day average, volatility in the top third | 65 | 75% | 1.57 | $373 |
| Below the 200-day average, volatility in the lower two thirds | 96 | 65% | 1.64 | $234 |
| Below the 200-day average, volatility in the top third | 119 | 67% | 1.96 | $537 |
| Within 5% of the 52-week high | 359 | 68% | 1.53 | $200 |
| 5 to 10% below the 52-week high | 83 | 60% | 0.84 | −$125 |
| 10 to 20% below the 52-week high | 98 | 64% | 2.09 | $486 |
| More than 20% below the 52-week high | 79 | 67% | 2.22 | $448 |
| SPY down more than 5% over the past month | 94 | 67% | 2.55 | $633 |
| Realised volatility 30% a year or more | 35 | 71% | 6.10 | $1,367 |
Commissions plus 2 bp slippage per side. 619 of the 653 trades, from February 2001, once a full year of history was available for each measure. Volatility is the annualised standard deviation of daily returns over the past 20 days; its rank is against the past year.
Four things stand out.
The weakest trades are the most common ones. More than half the trades, 339 of 619, were taken when SPY was above its 200-day average and calm. They won about as often as any other trade, but made $100 on average with a profit factor of 1.26. This is the effect of SPY’s long upward drift. In a calm rising market dips are shallow and the bounces small, so there is little to revert. Holding SPY captures that drift for free, which is why it out-earned every RSI(2) setting on raw return, and why a filter that keeps only those trades makes the strategy worse.
The edge grows with stress. The more volatile the market and the further it had fallen, the more each trade made. Below the 200-day average in the most volatile third of the year, the average trade made $537. After a fall of more than 5% in a month, $633. In the 35 trades taken with volatility at 30% a year or more, $1,367. That is what a mean-reversion idea should do. Examples of what can drive selling in a stressed market: margin calls, funds cutting exposure because volatility has risen, investors redeeming, and stop-loss orders setting each other off.
One zone loses money. Trades taken when SPY was 5 to 10% below its 52-week high lost money on average, a profit factor of 0.84 over 83 trades. It is not one bad period. The profit factor was 0.92 before 2019 and 0.68 after, and it was below 1 for the textbook 10 and 50 and the busy 30 and 40 settings as well. Examples of what can take a market 5 to 10% off its high and keep it falling: a rate-rise scare, a run of weak economic data, or a disappointing earnings season.
The crisis years are where it earned its keep. In 2008 it made $21,700 on the $100,000 while holding SPY lost $39,800. In 2022 it made $11,900 against a loss of $18,700.
These are observations, not filters. They come from the same history the strategy was tested on, so each one has to be built as a filter and taken through the same process: test it on the raw rule, re-test the entry and exit levels with it switched on, check it in both halves of the history, and rank it against the random strategies on risk-adjusted return. Several of the strongest groups are also small. Thirty-five trades in very high volatility is not enough to trust on its own. But they point in a consistent direction, and each has a business reason behind it. The candidates worth testing are filters on the state of the market: how stressed it is, how far it is below its high, and how far it has fallen recently. Testing them is the next article in this series.
What to take from it
RSI(2) on SPY has a real edge, and it is a risk-adjusted one. It does not earn more than holding SPY, and it was never going to: it is invested a quarter of the time in a market that drifts upwards. But for the risk it takes it beat holding SPY and beat 500 random strategies with the same exposure, every one of them over the full period. The idea that a sharply oversold index tends to bounce makes business sense, and the results bear it out.
The usual improvement for it is the wrong one. A trend filter keeps the calm, rising-market trades, where the edge is thinnest, and throws away the falling-market trades, where it is strongest. Bolted on, it looked useless. Re-tested properly, it still made the rule worse. A filter should be chosen by asking where the edge lives, not taken from a list of filters that usually help.
And there is no single best setting. The best one depends on what you assume it costs, what you rank by, which years you look at and which kind of market you are in. Rank by return with no costs and you get a setting that trades every few days, gives up four of its ten points a year to real costs and, with those costs, fell to 33rd of 42 after 2019. Rank by risk-adjusted return and the answer holds steady.
So before trusting a strategy, yours or anyone else’s, ask whether the idea makes business sense, whether it beats chance on risk-adjusted return and not just on return, what it assumed about costs, whether its setting was still near the top in years it was not chosen on, which kind of market it was chosen in, and whether every filter was tested with the search re-run. Then look at where its edge lives, because that is where the next improvement will come from.
Related
- Engineering
How I autotrade and sleep at night
Letting software trade real money while you sleep is possible, but only once you trust the system, and that trust has to be earned.
- Method
Not all backtest frameworks are equal. Are you clear how yours works?
A backtest's headline return depends on how its trades were sized and how the tool calculates it. Before you trust one, yours or anyone else's, you need to know both.

