RSI(2) Dip Snapback on XLP
Consumer Staples Select Sector SPDR Fund: defensive consumer staples, a common risk-off equity sector. Backtest 2021-01-04 to 2026-10-02, $10,000 starting capital, computed by the same engine that runs live DeployQuant strategies.
RSI(2) snapback was the best of the 12 templates on XLP, and its lead over simply holding the fund depends on how cheaply it trades. In the headline run, which charges nothing per fill, the rule turned $10,000 into $15,739.54 between 2021-01-04 and 2026-10-02. That is a CAGR of 8.22%, a maximum drawdown of 11.06% and a Sharpe of 0.96. Buy-and-hold on the Consumer Staples Select Sector SPDR Fund ended at $13,819.40, a CAGR of 5.8%, with a 15.99% drawdown and a Sharpe of 0.51.
The rule buys when the 2-day RSI closes under 10 and sells when it rises above 70. It made 166 round trips with 333 fills, won 106 of them, and held the fund for 41.5% of the window, with an average hold of 5.4 days. The average win was 1.04% and the average loss was -1.05%, so each trade is small and the edge is the 64% win rate, which gives a profit factor of 1.75.
Small trades and many fills make the result sensitive to costs. With 5 basis points of slippage per fill the CAGR drops to 5.21%, slightly under the 5.8% for holding. With 10 basis points it drops to 2.26%. The advantage in the headline run is therefore a statement about a frictionless test, and the cost runs show how quickly it narrows.
The template ranks 1st of 12 on XLP and 25th of 59 funds for the rule. The strategy is explained on the RSI(2) snapback hub page and the fund on the XLP ETF page. This is one window of 5.74 years with daily-decision rules.
Year by year
| Year | RSI(2) snapback | buy & hold |
|---|---|---|
| 2021 | 10.2% | 18.1% |
| 2022 | 9.1% | −0.7% |
| 2023 | 2.9% | −0.9% |
| 2024 | 3.3% | 12.0% |
| 2025 | −1.6% | 1.5% |
| 2026 | 25.2% | 5.6% |
Year by year: wins in the soft years, lag in the strong ones
The template returned 10.2% in 2021, 9.1% in 2022, 2.9% in 2023, 3.3% in 2024, -1.6% in 2025 and 25.2% in the partial year 2026. Buy-and-hold returned 18.1%, -0.7%, -0.9%, 12%, 1.5% and 5.6%. The gaps were -7.9 points in 2021, 9.8 in 2022, 3.8 in 2023, -8.7 in 2024, -3.1 in 2025 and 19.6 in 2026. The rule beat the fund in 2022, 2023 and 2026 and trailed in the other three.
The pattern follows the market. In 2021 and 2024 XLP rose steadily, 18.1% and 12%, and a rule invested 41.5% of the time cannot keep up with a smooth rise. In 2022 and 2023 the fund went nowhere, losing 0.7% and 0.9%, and a reversion rule that buys 2-day washouts and sells the bounce earned 9.1% and 2.9% in the same chop. Short trades are good at harvesting a range and poor at following a trend.
2022 stands out. The fund peaked on 2022-04-20 and fell 15.99% to 2022-10-07, yet the template returned 9.1% for the year. Its best month, October 2022 at 7.46%, includes the best single trade of the sample, 4.03% from 2022-10-21 to 2022-10-25, and May 2022 added 5.93% and April 4.12%. The rule traded the swings in the decline and not the decline itself.
2026 is the largest gap, 19.6 points, from a partial year of 25.2%. July 2026 alone returned 9.83%, the best month in the whole record. The partial year includes one open position at the end of the data, entered on 2026-10-01 at 80.49 and showing a gain of 0.07%.
2025 is the weakest result at -1.6%. The rule made 26 round trips and won 15 of them, yet the fund's own year was quiet at 1.5%, and one 15-day trade in October lost 4.26%. In a flat market the margin between a small win and a small loss is thin, and costs would take most of it.
Month by month
| Year | Jan | Feb | Mar | Apr | May | Jun | Jul | Aug | Sep | Oct | Nov | Dec |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2021 | −0.8% | −1.1% | 3.5% | 2.0% | 4.0% | −0.7% | 1.2% | 1.4% | −3.1% | 3.2% | −1.7% | 2.1% |
| 2022 | −1.8% | 1.5% | −1.0% | 4.1% | 5.9% | −1.0% | 0.2% | −0.4% | −6.0% | 7.5% | 1.1% | −0.7% |
| 2023 | 2.8% | −2.2% | 3.5% | 1.6% | −4.4% | 3.5% | −0.1% | −3.1% | −3.8% | 1.9% | 2.2% | 1.4% |
| 2024 | 0.9% | −0.3% | 2.0% | −2.2% | 1.1% | −2.1% | 1.7% | 2.6% | 4.3% | −2.9% | −0.4% | −1.2% |
| 2025 | −0.3% | 0.0% | −0.2% | 1.7% | 0.8% | −1.0% | 0.6% | −0.2% | −0.2% | −4.0% | 1.4% | −0.1% |
| 2026 | 3.8% | 4.4% | −2.0% | 3.7% | −0.3% | 2.0% | 9.8% | 0.8% | 0.8% | 0.1% | – | – |
Months that moved the account
The best month was July 2026 at 9.83%, against a best month of 10.36% for holding in December 2021. The worst was September 2022 at -6.05%. Holding's worst was March 2026 at -8.31%, when the template lost 2.03%, so it took a smaller loss in the fund's worst month.
September deserves a closer look. The fund's own calendar-month average for September is -3.79% across six observations, the weakest month by a wide margin, and the template's September 2022 loss was the worst in its record. September 2021 lost 3.11%, September 2023 lost 3.75%, and September 2024 gained 4.29%. November averaged 3.33% for the fund, and April, February and July each averaged 1.67% to 1.68%. May averaged -1.08%. These averages come from five or six observations each and the rule has no calendar element.
The large losing months of the record are May 2023 at -4.42%, October 2025 at -3.97%, September 2023 at -3.75%, August 2023 at -3.14% and September 2021 at -3.11%. Three of the five fall in 2023, a year the fund was flat and the drawdown reached its maximum. The trade that opened on 2023-05-17 at 69.48 lost 3.86% over 19 days, and the one from 2023-09-19 lost 5.16% over 22 days, the worst of the sample.
No month in the record lost more than 6.05%, and the largest single-month gain, 9.83%, is bigger than the largest loss. Most months sit within a few percent of zero.
The monthly grid has few zeros. At 41.5% exposure with an average hold of 5.4 days the rule is in or out of the market within most months, so each month has some trades. February 2025 is the one month that shows 0.0%.
Every trade
RSI(2) snapback on XLP made 166 closed round trips and one position still open at the end of the test, an average hold of 5 days, an average winner of 1.04%, an average loser of −1.05%, a profit factor of 1.75, a longest losing streak of 4. It held a position at the close on 41.5% of trading days.
Best 10 round trips
| Entry | Entry price | Exit | Exit price | Return | Days held |
|---|---|---|---|---|---|
| 2022-10-21 | $60.82 | 2022-10-25 | $63.27 | 4.0% | 4 |
| 2022-04-19 | $69.29 | 2022-04-21 | $71.56 | 3.3% | 2 |
| 2026-07-21 | $83.88 | 2026-07-28 | $86.53 | 3.2% | 7 |
| 2026-07-16 | $83.64 | 2026-07-17 | $86.11 | 3.0% | 1 |
| 2026-01-02 | $76.10 | 2026-01-12 | $78.07 | 2.6% | 10 |
| 2024-07-31 | $73.27 | 2024-08-02 | $74.93 | 2.3% | 2 |
| 2026-02-11 | $85.21 | 2026-02-12 | $87.03 | 2.1% | 1 |
| 2026-07-01 | $82.69 | 2026-07-06 | $84.42 | 2.1% | 5 |
| 2021-05-13 | $60.21 | 2021-05-17 | $61.43 | 2.0% | 4 |
| 2026-08-07 | $83.75 | 2026-08-14 | $85.43 | 2.0% | 7 |
Worst 10 round trips
| Entry | Entry price | Exit | Exit price | Return | Days held |
|---|---|---|---|---|---|
| 2023-09-19 | $65.90 | 2023-10-11 | $62.50 | −5.2% | 22 |
| 2025-10-22 | $77.14 | 2025-11-06 | $73.85 | −4.3% | 15 |
| 2023-05-17 | $69.48 | 2023-06-05 | $66.80 | −3.9% | 19 |
| 2023-08-02 | $68.90 | 2023-08-29 | $66.68 | −3.2% | 27 |
| 2022-09-22 | $63.51 | 2022-10-05 | $61.57 | −3.0% | 13 |
| 2026-03-04 | $86.16 | 2026-03-10 | $83.89 | −2.6% | 6 |
| 2024-12-31 | $75.03 | 2025-01-15 | $73.40 | −2.2% | 15 |
| 2024-10-25 | $77.55 | 2024-11-05 | $75.91 | −2.1% | 11 |
| 2024-12-17 | $77.24 | 2024-12-27 | $75.74 | −1.9% | 10 |
| 2025-08-25 | $79.16 | 2025-09-03 | $77.63 | −1.9% | 9 |
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.
166 trades of about one percent each
The first trade opened on 2021-01-13 at an adjusted 56.93 and closed on 2021-01-26 at 56.47, a loss of 0.81%. The median trade gained 0.38% and the median hold was 5 days. The longest hold was 27 days and the shortest was 1. The average win was 1.04% and the average loss was -1.05%.
The best trades were 4.03% (2022-10-21 to 2022-10-25), 3.28% (2022-04-19 to 2022-04-21), 3.16% (2026-07-21 to 2026-07-28), 2.95% (2026-07-16 to 2026-07-17) and 2.59% (2026-01-02 to 2026-01-12). The worst were -5.16% (2023-09-19 to 2023-10-11), -4.26% (2025-10-22 to 2025-11-06), -3.86% (2023-05-17 to 2023-06-05), -3.22% (2023-08-02 to 2023-08-29) and -3.05% (2022-09-22 to 2022-10-05). The worst loss is larger than the best gain, and the five worst trades all lasted longer than the best ones.
The pattern is the template's own warning: a position that keeps falling after the entry has no stop and holds on until RSI(2) recovers. The five best trades lasted from 1 to 10 days, and the five worst from 13 to 27. A reversion that works pays quickly. One that does not turns into a drawn-out loss.
The longest winning streak was 10 and the longest losing streak was 4. By exit year, 2021 had 27 round trips and 21 wins, 2022 had 30 and 18, 2023 had 28 and 19, 2024 had 29 and 14, 2025 had 26 and 15, and 2026 had 26 and 19. The count is steady at about 26 to 30 trades a year, and the win rate is the part that moves. 2024 was the weak year for the hit rate with 14 wins in 29 trades, which matches the year the fund rose 12% while the template made 3.3%.
The facts list 167 trades including the open one, and show only the best and worst, so the middle of the record is described by its averages. With 166 completed trades the sample is large enough that the 64% win rate and the 1.75 profit factor are not the result of a few lucky entries.
Largest drawdowns
| Peak | Low point | Depth | Days to low | Recovered | Days to recover |
|---|---|---|---|---|---|
| 2023-05-16 | 2023-10-06 | −11.1% | 143 | 2024-08-30 | 329 |
| 2022-06-02 | 2022-09-30 | −8.3% | 120 | 2022-12-08 | 69 |
| 2024-10-01 | 2025-11-03 | −7.9% | 398 | 2026-02-23 | 112 |
Buy-and-hold's deepest drawdown ran from 2022-04-20 to 2022-10-07 and reached −16.0%.
Drawdowns
The deepest drawdown was 11.06%, from 2023-05-16 to 2023-10-06, 143 days, and it recovered on 2024-08-30, 329 days after the trough. The second was 8.33%, from 2022-06-02 to 2022-09-30, recovered on 2022-12-08. The third was 7.93%, from 2024-10-01 to 2025-11-03, 398 days to the trough, recovered on 2026-02-23.
Holding XLP had a 15.99% drawdown from 2022-04-20 to 2022-10-07 and took until 2024-03-28 to recover, 538 days after the trough. It had two more, 9.52% from 2026-02-27 to 2026-03-20, still unrecovered at the end of the data, and 8.37% from 2025-08-20 to 2025-11-06. The template's maximum was 4.93 points shallower than holding's. The fund's own measure is a fall of 16.27% with a longest drawdown of 486 sessions.
The template's three drawdowns are all shallow and long. The third lasted 398 days to reach a modest 7.93% fall, which tells you the loss accumulated slowly through repeated small losing trades in 2025, not through a single bad trade. The 11.06% drawdown of 2023 contains the worst trade, -5.16%, and several others that lost over 3%, a cluster of failed dips while the fund slid.
The rule survives that kind of period because it has no leverage and each position is closed in days. The fund's largest drop in one day was -6.45% on 2022-05-18, and the next-worst were -4.24% on 2025-04-04 and -3.38% on 2022-09-13. The fund had one fall of 10% or more from a 20-day high over the whole window, lasting 3 days, which is why no single event hurt the account badly.
The risk is a persistent slide, where entries repeat. The rule buys a washout, the fund keeps falling, and the account takes a string of small losses. The longest losing streak was 4 trades, which on this fund is a mild version of that.
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% | −11.1% | $15,740 | 0.96 |
| 5 basis points | 5.2% | −11.8% | $13,382 | 0.63 |
| 10 basis points | 2.3% | −15.8% | $11,369 | 0.30 |
Costs decide how much of the lead survives
This is the most cost-sensitive result on the page. The headline run charges nothing. With 5 basis points of slippage on each of the 333 fills the CAGR is 5.21%, the maximum drawdown 11.83%, the final value $13,382.12 and the Sharpe 0.634. With 10 basis points the CAGR is 2.26%, the drawdown 15.82%, the final value $11,368.82 and the Sharpe 0.302.
Against buy-and-hold at 5.8% and $13,819.40, the 5 basis point run is just behind, and the 10 basis point run is well behind. The headline lead of 2.42 points a year over holding does not survive 5 basis points of friction. The average trade is a 0.38% median gain, so a charge of 5 or 10 basis points on each of two fills takes a visible share of each trade.
The costs do not erase the rule. A Sharpe of 0.634 at 5 basis points is still above the holding Sharpe of 0.51, and the drawdown stays near 12%. What changes is the return advantage. A reader should treat the headline CAGR as an upper bound.
XLP is liquid enough that real costs on a $10,000 order should sit well inside these assumptions. It averaged $854,044,173 of daily dollar volume, and the median minute carried 17,592 shares. The flat basis-point charge is a stress test and does not model the spread at the open, where this rule enters. The facts do not include a spread measurement, so the cost runs are the only evidence here, and they say the edge is thin.
Changing the parameters
| Version | CAGR | Max drawdown | Round trips | Win rate | Final value |
|---|---|---|---|---|---|
| Published rules | 8.2% | −11.1% | 166 | 64% | $15,740 |
| RSI(2) < 5 / > 70 | 8.0% | −11.1% | 163 | 64% | $15,577 |
| RSI(2) < 15 / > 70 | 8.6% | −10.2% | 172 | 64% | $16,080 |
| RSI(2) < 10 / > 60 | 7.2% | −11.8% | 169 | 62% | $14,919 |
| RSI(2) < 10 / > 80 | 8.9% | −11.1% | 155 | 70% | $16,282 |
Thresholds
Four variants were tested. Buying only at RSI(2) below 5 returned 8.03% with an 11.09% drawdown, 163 trades and 104 wins, ending at $15,577.18 with a Sharpe of 0.949. Buying below 15 returned 8.63% with a 10.2% drawdown, 172 trades and 110 wins, ending at $16,080.23 with a Sharpe of 1.004. Selling above 60 returned 7.22% with an 11.8% drawdown, 169 trades and 105 wins. Selling above 80 returned 8.86% with an 11.07% drawdown, 155 trades and 108 wins, ending at $16,282.47 with a Sharpe of 1.018.
Every variant stays inside a narrow band, 7.22% to 8.86%, around the published 8.22%, and all of them beat holding in the frictionless run. That is a point in favour of the result: no small change in the entry or exit breaks the pattern. The trade counts also stay in a tight range, 155 to 172.
The direction of the changes is informative. A later exit, at 80, earned slightly more and a quicker exit, at 60, earned less, so on this fund letting a rebound run a little longer helped. A looser entry at 15 traded more often and also did slightly better, with the shallowest drawdown at 10.2%. A stricter entry at 5 traded less and earned slightly less. None of these gaps is large, and each rests on one window.
The cost runs matter more than any of these variants. The spread between threshold variants is small next to the change from adding 5 basis points per fill. Picking the best-looking row, the 80 exit, would be fitting to the window, and the table is better read as evidence that the rule is stable than as a guide to tuning.
How XLP behaved
| Measure | XLP |
|---|---|
| Data in this test | 2021-01-04 to 2026-10-02 (1444 sessions) |
| Total return, buy and hold | 40.3% |
| Annualized volatility | 13.3% |
| Deepest drawdown | −16.3% (2022-04-20 to 2022-10-07) |
| Up days | 51.6% |
| Average daily range | 1.12% |
| Average overnight gap | 0.29% |
| Correlation to SPY | 0.47 |
| Correlation to QQQ | 0.30 |
| Correlation to TLT | 0.13 |
| Sessions above the 200-day average | 75.1% |
| Crossings of the 200-day average | 73 |
| Falls of 10% or more from a 20-day high | 1 |
Why XLP suits a short reversion rule
XLP is a defensive sector fund, with annualized volatility of 13.28%, a CAGR of 6.08% and a deepest drawdown of 16.27% over the window. It rose on 51.63% of days, the average up day was 0.64% and the average down day was -0.63%. Lag-1 autocorrelation was -0.01. Its beta to SPY was 0.38, with a correlation of 0.47 to SPY and 0.3 to QQQ.
Where the move happens matters for a rule that trades at the open. The fund's overnight log return was 8.98% and its intraday log return was 23.86%, so the intraday leg carried 72.64% of the return and the overnight leg 27.36%. A rule that buys at the open and holds for a few days is invested for the intraday moves that matter on this fund.
RSI shows why the rule worked. The 2-day RSI fell below 10 on 156 sessions, and the median 5-session return afterwards was 0.26% against a baseline of 0.18%, with a 20-session median of 1.09% against 0.73%. The edge is real in this sample and small. The 14-day RSI fell below 30 on 37 sessions with a 20-session median of 2.44%, against the same baseline of 0.73%.
The fund was above its 200-day average on 75.1% of sessions and crossed it 73 times, a high count that shows a fund moving back and forth through its trend line. That suits a reversion rule and punishes a trend rule, which shows in the ranking. Falls of 10% from a 20-day high were rare, with one event over 3 days, so the rule faced few crashes where a washout kept going.
The closest relatives are VTV at 0.64 and VOOV at 0.63. The least correlated are SDS, SH and SPDN at -0.47. The fund is a moderate diversifier against SPY, and the XLP ETF page has the whole profile.
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.
The other templates on XLP and the same rule on other sector funds
RSI(2) snapback is first on XLP. The nearest is RSI mean reversion at 6.51% with a 9.64% drawdown, which uses the 14-day RSI and trades far less. Monthly cycle made 5.46% with 13.42%, the weekly 7% target 2.37% with 23.83%, golden cross 2.05% and trend + trailing stop 1.82% with 21.96%. The dip buyer made 1.32% with the shallowest drawdown at 8.03%, SMA 10/50 trend 1.21% and EMA 12/26 trend 1.19%. Three templates lost money: the 200-day regime filter at -0.81%, 3-month momentum at -1.67% and momentum breakout at -1.87%.
The split is clear. The reversion rules and the calendar rule made money on a fund that chopped sideways, and the trend rules lost it. This fits the 73 crossings of the 200-day average, which give trend filters many false signals.
Across the sector category, the rule's median CAGR was 9.72%, and XLP's 8.22% sits below it. SOXX led at 17.01% with a 23.81% drawdown and 162 round trips, then XLK at 12.11%, XLF at 9.72%, XLP at 8.22%, XLY at 8.2% and VOX at 6.09% with a 30.05% drawdown. XLP had the shallowest drawdown of the group. Across all 59 funds the median is 4.74%, and XLP ranks 25th. The window covers 5.74 years, and the results are hypothetical and say nothing certain about later periods.
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 XLP?
Over 2021-01-04 to 2026-10-02, RSI(2) snapback on XLP returned 8.2% annualized vs 5.8% for buy-and-hold: it beat buy-and-hold by 2.4% per year, with a maximum drawdown 4.9 points shallower than holding (11.1% vs 16.0%).
How many trades did it make?
166 completed round trips over 5.7 years (333 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 XLP?
In the headline run, yes. It returned 8.22% a year against 5.8%, with an 11.06% drawdown against 15.99%. With 5 basis points of slippage per fill the CAGR fell to 5.21%, just under holding.
How many trades did the strategy make on XLP?
There were 166 completed round trips and 333 fills, plus one open position at the end. 106 round trips won, a win rate of 64%, with a profit factor of 1.75.
How long does each trade last?
The average hold was 5.4 days and the median was 5. The longest trade lasted 27 days and the shortest 1. The account was invested for 41.5% of the window.
Why did the rule do well in 2022?
XLP fell 15.99% from April to October 2022, yet the template returned 9.1% for the year. Its short trades picked up the swings inside the decline, including a 4.03% gain from 2022-10-21 to 2022-10-25.
What was the worst trade?
The entry on 2023-09-19 at an adjusted 65.9, exited on 2023-10-11 at 62.5, lost 5.16% over 22 days. The template has no stop, so the position held until RSI(2) recovered.
Do the RSI thresholds change the result?
Only slightly. The four variants returned between 7.22% and 8.86%, against 8.22% for the published rule. Selling above 80 earned the most and selling above 60 the least.
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.