RSI(2) Dip Snapback on XLY
Consumer Discretionary Select Sector SPDR Fund: consumer discretionary stocks, a cyclical read on the US consumer. Backtest 2021-01-04 to 2026-10-02, $10,000 starting capital, computed by the same engine that runs live DeployQuant strategies.
The RSI(2) dip snapback buys when the 2-day RSI falls below 10 and sells when it climbs back above 70. On XLY, the Consumer Discretionary Select Sector SPDR Fund, that rule made 154 closed round trips between 2021-01-04 and 2026-10-02, plus one open position bought on 2026-09-24 at an adjusted $110.34. It turned $10,000 into $15,726, a CAGR of 8.20%, with a maximum drawdown of 16.62% and a Sharpe ratio of 0.58.
Buy-and-hold on XLY ended at $14,177, a CAGR of 6.27%, with a drawdown of 39.06%. The rule earned 1.93 points more per year and fell far less, with a drawdown 22.44 points shallower. It held a position on 40.4% of sessions. Most of the benefit came from not being in the fund during the long 2022 decline.
Two features set this page apart from the slower templates. The first is the trade count: 309 fills, an average hold of 5.5 days and a median hold of 5 days. The second is cost. At 10 basis points of slippage per fill the CAGR falls to 2.67%, well below buy-and-hold. The headline result is real in the model, and it depends on cheap, accurate execution in a way that few other results on this fund do.
The template ranked 2nd of 12 on XLY, behind the weekly profit target at 10.19% and ahead of RSI(14) mean reversion at 7.00%. XLY ranked 26th of 59 funds for this strategy. The rules are on the RSI(2) snapback strategy page and the fund on the XLY page.
Year by year
| Year | RSI(2) snapback | buy & hold |
|---|---|---|
| 2021 | 22.1% | 28.5% |
| 2022 | −13.7% | −35.7% |
| 2023 | 11.0% | 38.7% |
| 2024 | 19.9% | 26.0% |
| 2025 | 8.1% | 7.3% |
| 2026 | 3.7% | −7.2% |
How each year compared with holding the fund
The strategy returned 22.1% in 2021, -13.7% in 2022, 11.0% in 2023, 19.9% in 2024, 8.1% in 2025 and 3.7% so far in 2026. XLY returned 28.5%, -35.7%, 38.7%, 26.0%, 7.3% and -7.2%. The gap column reads -6.4, +22.0, -27.7, -6.1, +0.8 and +10.9 points. The strategy beat the fund in 2022, 2025 and 2026.
The strategy made money in five of the six years. The one losing year, 2022, was the year the fund lost 35.7%, and the strategy lost 13.7% of its account. That gap of 22.0 points is the main source of the overall edge. The rule was invested for part of 2022 and took 28 round trips, of which 15 won, but the losses were concentrated in a few trades, including -10.4% from 2022-06-09 and -6.8% from 2022-04-22.
2023 is the year the rule gave up the most. The fund rose 38.7% as the market recovered and the strategy returned 11.0%. A rule that sells as soon as RSI(2) is above 70 is out of the fund during sustained rallies, and RSI(2) is above 70 often in an uptrend. The exposure of 40.4% reflects that. The rule took 28 round trips in 2023 and 17 won.
2021 and 2024 show the same lag with smaller gaps, 6.4 and 6.1 points. In 2021 20 of 27 round trips won and in 2024 20 of 26 won, the two best win rates of the test, and the strategy still trailed the fund because the fund's drift in those years was high and the rule held it for only part of the time.
In 2025 the strategy returned 8.1% to the fund's 7.3%, with 15 of 24 round trips winning. That year contains the largest trade win, 8.5% from 2025-04-07 to 2025-04-10, and the largest trade loss, -13.5% from 2025-02-19 to 2025-03-18. 2026 has 21 closed round trips with 11 wins and a return of 3.7% while the fund lost 7.2%.
A reader should take from the table that the rule is a defensive overlay on a volatile sector fund. It lags in strong years and holds up in weak ones, and the net is a few points a year ahead of holding in this window.
Month by month
| Year | Jan | Feb | Mar | Apr | May | Jun | Jul | Aug | Sep | Oct | Nov | Dec |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2021 | 0.9% | 1.1% | 5.6% | 1.7% | 3.3% | −0.8% | −1.0% | 2.1% | 1.1% | 4.1% | −0.4% | 2.6% |
| 2022 | −3.6% | −0.8% | 2.3% | −5.3% | 2.8% | −11.2% | 12.1% | −5.6% | −3.6% | 7.3% | 1.5% | −8.2% |
| 2023 | 1.9% | −1.8% | 3.5% | 1.9% | 3.3% | 1.7% | 0.9% | −1.1% | −2.5% | −2.7% | 4.6% | 1.1% |
| 2024 | −1.2% | 5.2% | 1.8% | 1.9% | 2.4% | 2.0% | −0.7% | 4.6% | −0.1% | 3.0% | 1.4% | −1.6% |
| 2025 | 1.1% | −4.4% | −11.3% | 10.0% | 3.4% | 1.7% | −0.1% | 2.6% | 6.1% | 0.6% | −0.6% | 0.2% |
| 2026 | 1.0% | −0.9% | 4.8% | −0.2% | 2.4% | −1.9% | −0.4% | −0.5% | −1.6% | 1.1% | – | – |
Months that moved the account
The best month was July 2022 at 12.09% and the worst was March 2025 at -11.26%. Buy-and-hold's best month was also July 2022, at 17.99%, and its worst April 2022 at -11.72%. The strategy's April 2022 was -5.30%, so its loss was smaller than the fund's in that month, but its June 2022 was -11.23%, a month in which the 7-day trade from 2022-06-09 lost 10.36%.
The 2022 months run: January -3.60%, February -0.80%, March 2.27%, April -5.30%, May 2.82%, June -11.23%, July 12.09%, August -5.58%, September -3.57%, October 7.31%, November 1.53% and December -8.20%. The rule lost money in seven of the twelve months and still ended the year at -13.7%, because the gains in July and October were large. The December loss of 8.20% came from a 15-day trade bought on 2022-12-15 at $66.14 and sold on 2022-12-30 at $62.15, just before the fund's low on 2022-12-28.
March 2025 is the worst month. It contains the end of the 27-day trade that started on 2025-02-19 at $110.94 and ended on 2025-03-18 at $95.97 for -13.49%. That is the longest hold of the test and the worst single trade. A mean-reversion rule that is still holding after 27 days is a rule whose RSI never recovered, and the fund fell for most of the period. April 2025 then returned 10.02%, helped by the 2025-04-07 entry at $86.78, which sold three days later at $94.16.
The typical month is small. Most months fall between -2% and +3%, and the strategy has no month at zero because it is invested for part of every month. 2024 is the quiet year, with eight of twelve months positive and the largest loss at -1.64% in December.
The calendar-month averages for the fund run from 5.12% in November and 4.24% in July to -1.90% in September and -1.56% in February. Those rest on 5 or 6 observations per month and describe this window only.
Every trade
RSI(2) snapback on XLY made 154 closed round trips and one position still open at the end of the test, an average hold of 6 days, an average winner of 1.64%, an average loser of −1.95%, a profit factor of 1.43, a longest losing streak of 3. It held a position at the close on 40.4% of trading days.
Best 10 round trips
| Entry | Entry price | Exit | Exit price | Return | Days held |
|---|---|---|---|---|---|
| 2025-04-07 | $86.78 | 2025-04-10 | $94.16 | 8.5% | 3 |
| 2022-07-26 | $72.43 | 2022-07-29 | $77.24 | 6.6% | 3 |
| 2022-05-20 | $69.26 | 2022-05-27 | $72.75 | 5.0% | 7 |
| 2022-03-15 | $79.70 | 2022-03-17 | $83.47 | 4.7% | 2 |
| 2023-11-10 | $77.39 | 2023-11-14 | $81.04 | 4.7% | 4 |
| 2022-10-21 | $66.52 | 2022-10-25 | $69.47 | 4.4% | 4 |
| 2024-08-05 | $82.10 | 2024-08-12 | $85.50 | 4.1% | 7 |
| 2023-03-02 | $68.36 | 2023-03-06 | $70.99 | 3.9% | 4 |
| 2021-01-28 | $78.41 | 2021-02-03 | $81.28 | 3.7% | 6 |
| 2025-09-11 | $115.73 | 2025-09-15 | $119.79 | 3.5% | 4 |
Worst 10 round trips
| Entry | Entry price | Exit | Exit price | Return | Days held |
|---|---|---|---|---|---|
| 2025-02-19 | $110.94 | 2025-03-18 | $95.97 | −13.5% | 27 |
| 2022-06-09 | $73.78 | 2022-06-16 | $66.14 | −10.4% | 7 |
| 2022-04-22 | $86.46 | 2022-04-29 | $80.61 | −6.8% | 7 |
| 2022-12-15 | $66.14 | 2022-12-30 | $62.15 | −6.0% | 15 |
| 2022-09-19 | $75.50 | 2022-09-29 | $71.55 | −5.2% | 10 |
| 2022-01-18 | $92.86 | 2022-02-01 | $88.82 | −4.3% | 14 |
| 2023-09-19 | $82.28 | 2023-09-29 | $79.08 | −3.9% | 10 |
| 2022-02-18 | $87.14 | 2022-02-28 | $84.10 | −3.5% | 10 |
| 2023-08-10 | $83.39 | 2023-08-22 | $80.66 | −3.3% | 12 |
| 2023-10-19 | $76.56 | 2023-10-25 | $74.19 | −3.1% | 6 |
Prices are adjusted for splits and dividends, so they sit below the quotes printed at the time. An open position is marked at the last close.
What 155 trades look like
The list holds 155 trades including the open one. The median trade returned 0.56%, the average win was 1.64% and the average loss -1.95%, so the winners are smaller than the losers. The edge comes from the win rate of 64% and a profit factor of 1.43. A rule like this wins often, by small amounts, and loses less often, by larger ones.
The five best trades are 8.5% (2025-04-07 to 2025-04-10, 3 days), 6.6% (2022-07-26 to 2022-07-29, 3 days), 5.0% (2022-05-20 to 2022-05-27, 7 days), 4.7% (2022-03-15 to 2022-03-17, 2 days) and 4.7% (2023-11-10 to 2023-11-14, 4 days). All five are short and come directly after a sharp fall. That is the pattern the rule is built to find. Entries at the extreme of a washout bounced within days.
The five worst are -13.5% (2025-02-19 to 2025-03-18, 27 days), -10.4% (2022-06-09 to 2022-06-16, 7 days), -6.8% (2022-04-22 to 2022-04-29, 7 days), -6.0% (2022-12-15 to 2022-12-30, 15 days) and -5.2% (2022-09-19 to 2022-09-29, 10 days). Four of the five fall in 2022 and all are longer than the winners. The losers are the entries where the fall kept going, which is the caveat on the strategy page: a crash that keeps crashing hands this template several losing entries in a row.
The longest win streak was 10 trades and the longest loss streak 3. The shortest hold was 1 day, the longest 27, and the average 5.5 days. Per-year round trips were 27, 28, 28, 26, 24 and 21, with wins of 20, 15, 17, 20, 15 and 11. The count per year is stable, between 21 and 28. The RSI(2) trigger fired at a steady rate on this fund, with slightly fewer trades in 2026, a partial year.
The first trade, from 2021-01-15 at $79.67 to 2021-01-21 at $81.51, returned 2.31% in 6 days. The open position was bought on 2026-09-24 at $110.34 and is marked at -0.26%.
Largest drawdowns
| Peak | Low point | Depth | Days to low | Recovered | Days to recover |
|---|---|---|---|---|---|
| 2025-02-04 | 2025-04-02 | −16.6% | 57 | 2025-09-04 | 155 |
| 2022-01-06 | 2022-06-30 | −16.4% | 175 | 2024-03-27 | 636 |
| 2026-07-21 | 2026-09-16 | −5.3% | 57 | not yet | – |
Buy-and-hold's deepest drawdown ran from 2021-11-19 to 2022-12-28 and reached −39.1%.
Drawdowns for the rule and for the fund
The deepest strategy drawdown was 16.62%, from a peak on 2025-02-04 to a low on 2025-04-02, 57 days later. It recovered on 2025-09-04, after 155 days. The second was 16.38%, from 2022-01-06 to 2022-06-30 over 175 days, with recovery on 2024-03-27 after 636 days. The third, 5.25% from 2026-07-21 to 2026-09-16, had not recovered at the end of the data.
Buy-and-hold's drawdowns were 39.06% from 2021-11-19 to 2022-12-28, recovered on 2024-11-06 after 679 days, then 25.64% from 2024-12-17 to 2025-04-08, recovered on 2025-09-12, and 14.79% from 2026-01-12 to 2026-03-30, not yet recovered. The strategy's biggest drawdown is far shallower than the fund's biggest.
The two strategy drawdowns of roughly 16% had different causes. The 2022 one is slow: the account lost ground across the first half of the year and needed 636 days to recover because 2022's trades kept losing. The 2025 one is a single bad trade, the 27-day position bought on 2025-02-19, plus the sell-off of early April. The rule has no stop, so the position rode the fund down for 27 days before RSI(2) recovered.
The Sharpe ratio is 0.58 for the strategy and 0.39 for the fund. It is a better risk-adjusted result as well as a better drawdown. The fund's own maximum drawdown in the profile was -39.67%, with a longest drawdown of 743 sessions.
Among the other templates on XLY, the monthly cycle had a drawdown of 43.81% and the trend plus trailing stop 39.69%. The RSI(2) rule's 16.62% was the shallowest of the twelve. The nearest were the momentum breakout at 18.35% and the weekly target at 24.73%.
With trading costs
The headline run fills at the bar price. These runs charge slippage on every fill.
| Slippage per fill | CAGR | Max drawdown | Final value | Sharpe |
|---|---|---|---|---|
| None (headline) | 8.2% | −16.6% | $15,726 | 0.58 |
| 5 basis points | 5.4% | −18.2% | $13,510 | 0.41 |
| 10 basis points | 2.7% | −20.2% | $11,632 | 0.25 |
Why the cost runs matter on this page
This is the page where slippage changes the conclusion. The strategy made 309 fills. At 5 basis points per fill the CAGR falls from 8.20% to 5.38%, the final value from $15,726 to $13,510, and the Sharpe ratio from 0.58 to 0.412. The maximum drawdown widens from 16.62% to 18.20%. At 10 basis points the CAGR is 2.67%, the final value $11,632, the Sharpe ratio 0.246 and the drawdown 20.20%.
Buy-and-hold's CAGR of 6.27% sits between the headline and the 5 basis point run. At 5 basis points the strategy's CAGR of 5.38% is below it. At 10 basis points the strategy is well below it. The edge of 1.93 points in the headline run does not survive either cost level, though the shallower drawdown does.
The average win is 1.64% and the average loss -1.95% per trade. A round trip pays slippage twice, once at entry and once at exit, so the slippage is charged twice on every trade, and that is a large share of a 1.64% win. That is what high turnover with small per-trade edges means in numbers.
XLY is liquid, with average daily dollar volume of $892,144,651 and a median minute volume of 15,102 shares, so a $10,000 sleeve will normally fill close to the quote. The cost runs are model assumptions, and the test does not measure real spreads at the open. The strategy page calls the template sensitive to execution quality, and the cost runs here show it: a few basis points decide whether it beats holding.
Changing the parameters
| Version | CAGR | Max drawdown | Round trips | Win rate | Final value |
|---|---|---|---|---|---|
| Published rules | 8.2% | −16.6% | 154 | 64% | $15,726 |
| RSI(2) < 5 / > 70 | 10.0% | −16.7% | 148 | 66% | $17,292 |
| RSI(2) < 15 / > 70 | 9.7% | −18.2% | 163 | 64% | $16,996 |
| RSI(2) < 10 / > 60 | 8.4% | −17.5% | 162 | 65% | $15,892 |
| RSI(2) < 10 / > 80 | 9.6% | −16.7% | 151 | 64% | $16,930 |
Thresholds on both sides of the RSI(2) band
The published rules buy below 10 and sell above 70. The four variants move one threshold at a time.
Buying below 5 gave a CAGR of 10.01%, end equity of $17,292, a drawdown of 16.72% and a Sharpe ratio of 0.693, with 148 trades and 98 wins. Buying below 15 gave 9.68%, $16,996, 18.19% and 0.661, with 163 trades and 105 wins. Both beat the published rules. The stricter entry traded less and caught deeper washouts, and the looser one traded more and still did better.
Selling above 60 gave 8.40%, $15,892, 17.47% and 0.602, with 162 trades and 106 wins. Selling above 80 gave 9.60%, $16,930, 16.67% and 0.656, with 151 trades and 97 wins. The later exit did better than the earlier one, which fits a fund that gains more when the position is allowed to run a little longer.
Every variant beat the published rules on CAGR, with a range from 8.40% to 10.01%. Drawdowns stayed between 16.67% and 18.19%. That is a narrow band, and it suggests the result does not hinge on one threshold. It also means the published 10 and 70 are not the best pair in this window, and the page does not claim they are. Picking the best variant after seeing the data would overfit one 5.74-year sample.
The trade counts are all between 148 and 163, so each variant rests on a large number of trades, which is more reassuring than on a page with a dozen. The strategy page shows these variants across the other funds. The 3-month momentum template on XLY returned -3.94%, which is the contrast: an entry on strength did badly where an entry on weakness did well.
How XLY behaved
| Measure | XLY |
|---|---|
| Data in this test | 2021-01-04 to 2026-10-02 (1444 sessions) |
| Total return, buy and hold | 44.7% |
| Annualized volatility | 23.3% |
| Deepest drawdown | −39.7% (2021-11-19 to 2022-12-28) |
| Up days | 53.0% |
| Average daily range | 1.68% |
| Average overnight gap | 0.63% |
| Correlation to SPY | 0.87 |
| Correlation to QQQ | 0.86 |
| Correlation to TLT | 0.11 |
| Sessions above the 200-day average | 65.1% |
| Crossings of the 200-day average | 59 |
| Falls of 10% or more from a 20-day high | 24 |
How XLY behaved
XLY returned 44.67% over 1444 sessions, a CAGR of 6.64%, with annualized volatility of 23.32%. Its calendar returns were 29.05% in 2021, -36.28% in 2022, 39.68% in 2023, 26.51% in 2024, 7.36% in 2025 and -7.26% so far in 2026. Its beta to SPY was 1.24 and its correlation 0.87.
The fund rose on 53.01% of sessions. The average up day was 1.06% and the average down day -1.13%. The average intraday range was 1.68% and the average overnight gap 0.63%. The best days were 10.79% on 2025-04-09, 7.27% on 2022-11-10 and 5.07% on 2025-05-12. The worst were -6.54% on 2022-05-18, -5.97% on 2025-04-03 and -5.49% on 2022-05-05. Overnight moves made up 89.70% of the total return, so an exit at the open captures most of the gain in the days it holds.
The RSI statistics bear directly on this rule. RSI(2) fell below 10 on 152 sessions. The median 5-day return after those sessions was 0.74% against a baseline of 0.22%, and the median 20-day return was 1.80% against 0.77%. The washout signal beat the average day on this fund. RSI(14) below 30 happened on 27 sessions and did not: the median 5-day return was -0.17% and the 20-day median -0.78%. That is the difference between the two rules on this fund. The slower RSI(14) signal arrives after the fall has run, and the 2-day signal arrives at the washout. The RSI(14) mean reversion template returned 7.00% with a 20.65% drawdown, behind the 2-day rule at 8.20% and 16.62%.
The fund fell 10% or more from a 20-day high on 24 events over 98 days, and spent 65.06% of sessions above its 200-day average, crossing it 59 times. A fund that crosses its long average often is choppy, which is the condition where short-term reversal rules do well. The 200-day regime filter lost 2.16% a year on XLY and the golden cross made 1.35%, so the choppiness hurt trend rules.
The category comparison shows XLY in the middle of the sector funds for this rule: SOXX 17.01%, XLK 12.11%, XLF 9.72%, XLP 8.22%, XLY 8.20% and VOX 6.09%. The category median was 9.72% and the median across all 59 funds 4.74%. Round trips ran from 154 to 166 across the six.
The rules
Buy extreme 2-day RSI washouts under 10, exit as soon as RSI(2) recovers above 70.
- WHEN the market opens · IF not invested AND RSI(2) < 10 · THEN buy with 98% of the sleeve
- WHEN the market opens · IF invested AND RSI(2) > 70 · THEN sell the whole position
A short-horizon mean-reversion template popularized by Larry Connors' RSI-2 research. A 2-period RSI under 10 flags a sharp multi-day selloff. In assets with a persistent upward drift, those selloffs have tended to snap back within days. Trades are frequent and short. This is the highest-turnover template in the library.
Good for: liquid index ETFs with strong long-term drift; turnover is high so per-trade edges are small.
Watch out: high trade counts make results sensitive to execution quality; a crash that keeps crashing will hand this template several losing entries in a row.
How the snapback rule fits a cyclical sector fund
The entry is RSI(2) below 10 at the open, with 98% of the sleeve, and the exit is RSI(2) above 70 at the open. There is no stop. A position stays open until the short-term momentum recovers, however long that takes.
XLY suits it for three reasons visible in the data. It is liquid, so the rule can trade often. It is choppy, with 59 crossings of its 200-day average and a lag-1 autocorrelation near zero at -0.02, so a sharp 2-day drop is usually followed by a small recovery. It also has strong overnight drift, which an open-to-open rule captures.
The cost of the design shows in two places. The rule is in the market for 40.4% of sessions, so it misses most of a strong run such as 2023. In a falling market, as in February and March 2025, the lack of a stop turns one entry into a 13.49% loss. The strategy page's caveat predicted both.
On XLY the rule ranked 2nd of 12. The weekly profit target was ahead at 10.19% with a drawdown of 24.73%, so the snapback had the shallower drawdown of the two. The dip buyer returned 4.01% with 32.73%, and the EMA 12/26 trend 2.36% with 21.26%.
The limits are one fund, one window of 5.74 years with a deep 2022 decline, daily-decision rules, and a headline run with no fees. The cost runs show the result is sensitive to execution, and the page does not model real spreads or taxes. The numbers describe what the rule did on these dates and are not a forecast.
Build it from blocks (or type it in English), backtest it on 5.7 years of minute data in seconds, tweak any parameter, then paper trade it on live data. No card, no broker needed to start.
Frequently asked questions
Did RSI(2) snapback beat buy-and-hold on XLY?
Over 2021-01-04 to 2026-10-02, RSI(2) snapback on XLY returned 8.2% annualized vs 6.3% for buy-and-hold: it beat buy-and-hold by 1.9% per year, with a maximum drawdown 22.4 points shallower than holding (16.6% vs 39.1%).
How many trades did it make?
154 completed round trips over 5.7 years (309 fills), with 64% of round trips closing profitably.
How often does RSI(2) trade?
Far more than RSI(14), with dozens of round trips per year on a volatile ETF. The backtest table on each page shows the exact count over the test window.
Is RSI(2) too fast for daily bars?
It is designed for daily bars. The 2-day window catches short, sharp washouts rather than long regimes.
Did RSI(2) snapback beat buy-and-hold on XLY?
In the headline run, yes. It returned 8.20% a year against 6.27% and ended at $15,726 against $14,177, with a drawdown of 16.62% against 39.06%. With 5 basis points of slippage the CAGR falls to 5.38%, below buy-and-hold.
How many trades did it make on XLY?
154 closed round trips and one open position bought on 2026-09-24 at $110.34. That is 309 fills. The win rate was 64%, the average hold 5.5 days and the longest hold 27 days.
What was the worst trade?
-13.49%, bought on 2025-02-19 at $110.94 and sold on 2025-03-18 at $95.97 after 27 days. There is no stop-loss, so the position waited for RSI(2) to recover.
How much do trading costs change the result?
A lot. At 5 basis points per fill the CAGR is 5.38% and the end value $13,510. At 10 basis points the CAGR is 2.67% and the end value $11,632. The headline run has no costs.
Does a different RSI(2) threshold work better?
In this window all four variants did better on CAGR, from 8.40% to 10.01%. Buying below 5 gave 10.01% and selling above 80 gave 9.60%. This rests on one window, so it shows the result is not tied to one setting.
Why did the strategy lose less than XLY in 2022?
XLY fell 35.7% in 2022 and the strategy lost 13.7%. The rule was in the fund for only part of the time, and it exits as soon as RSI(2) rises above 70.
Related
Backtests are hypothetical, computed by DeployQuant's engine on minute-resolution consolidated US market data (2021-01-04 to 2026-10-02, $10,000 starting capital, no margin, no fees or slippage in the headline run; buy-and-hold puts 98% of the account in at the first open, as the templates do) and do not guarantee future results. Nothing on this page is investment advice. Live trading involves risk of loss.