Learn › Strategies › RSI(14) Mean Reversion › XLY

RSI(14) Mean Reversion 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.

Result: RSI mean reversion on XLY turned $10,000 into $14,747 (47.5% total, 7.0% CAGR): it beat buy-and-hold by 0.7% per year, with a maximum drawdown 18.4 points shallower than holding (20.6% vs 39.1%).
7.0%CAGR
6.3%buy & hold CAGR
−20.6%max drawdown
0.49Sharpe ratio
15round trips
73%win rate
■ RSI mean reversion   ■ buy & hold, $10,000 invested 2021-01-04

Year by year

YearRSI mean reversionbuy & hold
202113.0%28.5%
2022−13.0%−35.7%
202324.7%38.7%
202413.2%26.0%
2025−2.2%7.3%
20268.7%−7.2%

Month by month

YearJanFebMarAprMayJunJulAugSepOctNovDec
20210.0%−0.8%4.4%3.5%2.6%2.8%0.0%0.0%0.0%0.0%0.0%0.0%
2022−2.9%−4.0%4.6%0.0%−0.5%−10.5%8.9%0.0%−9.6%1.1%1.5%−0.8%
20238.4%1.2%1.0%0.0%0.0%0.0%0.0%5.7%1.1%−4.7%10.4%0.0%
2024−1.3%7.7%−0.1%−4.4%0.2%1.8%0.0%9.2%0.0%0.0%0.0%0.0%
20250.0%−1.6%−8.1%−0.2%2.1%0.0%0.0%0.0%0.0%0.0%6.1%−0.0%
20260.0%−1.4%−6.4%10.0%0.0%0.0%6.1%1.6%−1.8%1.1%––

Every trade

RSI mean reversion on XLY made 15 closed round trips and one position still open at the end of the test, an average hold of 53 days, an average winner of 5.83%, an average loser of −5.21%, a profit factor of 2.98, a longest losing streak of 3. It held a position at the close on 38.6% of trading days.

EntryEntry priceExitExit priceReturnDays held
2021-02-26$77.542021-04-09$83.277.4%42
2021-05-13$80.522021-06-24$85.005.6%42
2022-01-20$91.472022-03-28$89.21−2.5%67
2022-05-10$74.732022-07-20$72.34−3.2%71
2022-09-02$76.332022-12-01$70.86−7.2%90
2022-12-20$63.252023-01-17$67.987.5%28
2023-02-24$69.612023-03-31$71.242.3%35
2023-08-18$78.582023-09-12$84.047.0%25
2023-10-02$77.952023-11-15$82.115.3%44
2024-01-18$84.582024-06-14$87.773.8%148
2024-08-06$84.272024-08-26$92.229.4%20
2025-02-24$108.112025-05-08$99.45−8.0%73
2025-11-21$110.412025-12-10$117.276.2%19
2026-02-12$117.832026-04-20$119.691.6%67
2026-07-24$108.962026-08-13$117.768.1%20
2026-09-16$110.92open–−0.8%–

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.

Largest drawdowns

PeakLow pointDepthDays to lowRecoveredDays to recover
2022-01-192022-11-09−20.6%2942023-08-29293
2025-02-212025-04-08−18.9%462026-07-27475
2023-10-112023-10-26−9.0%152023-11-1419

Buy-and-hold's deepest drawdown ran from 2021-11-19 to 2022-12-28 and reached −39.1%.

With trading costs

The headline run fills at the bar price. These runs charge slippage on every fill.

Slippage per fillCAGRMax drawdownFinal valueSharpe
None (headline)7.0%−20.6%$14,7470.49
5 basis points6.7%−20.8%$14,5410.48
10 basis points6.4%−21.0%$14,3090.46

Changing the parameters

VersionCAGRMax drawdownRound tripsWin rateFinal value
Published rules7.0%−20.6%1573%$14,747
RSI < 25 / > 707.5%−20.1%1479%$15,108
RSI < 35 / > 703.9%−30.4%1878%$12,427
RSI < 30 / > 653.1%−24.2%1675%$11,888
RSI < 30 / > 759.0%−23.4%1479%$16,404

How XLY behaved

MeasureXLY
Data in this test2021-01-04 to 2026-10-02 (1444 sessions)
Total return, buy and hold44.7%
Annualized volatility23.3%
Deepest drawdown−39.7% (2021-11-19 to 2022-12-28)
Up days53.0%
Average daily range1.68%
Average overnight gap0.63%
Correlation to SPY0.87
Correlation to QQQ0.86
Correlation to TLT0.11
Sessions above the 200-day average65.1%
Crossings of the 200-day average59
Falls of 10% or more from a 20-day high24

The rules

Buy when the 14-day RSI drops below 30 (oversold), sell when it recovers above 70 (overbought).

  1. WHEN the market opens · IF not invested AND RSI(14) < 30 · THEN buy with 98% of the sleeve
  2. WHEN the market opens · IF invested AND RSI(14) > 70 · THEN sell the whole position

A standard mean-reversion setup. The Relative Strength Index measures how stretched recent price action is. Readings under 30 have historically marked short-term washouts in uptrending assets. This template buys at the next session open and holds until RSI crosses back above 70. It has no profit target and no stop.

Good for: assets that trend up over time but overshoot on the way, such as broad index ETFs.
Watch out: in a persistent downtrend, RSI can stay oversold for weeks while the position keeps losing; there is no stop-loss in this template.

Run RSI mean reversion on XLY yourself, free →

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 mean reversion beat buy-and-hold on XLY?

Over 2021-01-04 to 2026-10-02, RSI mean reversion on XLY returned 7.0% annualized vs 6.3% for buy-and-hold: it beat buy-and-hold by 0.7% per year, with a maximum drawdown 18.4 points shallower than holding (20.6% vs 39.1%).

How many trades did it make?

15 completed round trips over 5.7 years (31 fills), with 73% of round trips closing profitably.

Why RSI 30/70?

They are the conventional oversold and overbought bands from Welles Wilder's original formulation. Treat them as a starting point. In DeployQuant you can change them to 25/65 or anything else and re-backtest in seconds.

Does this strategy use a stop-loss?

No. The only exit is RSI recovering above 70. Adding a stop or a take-profit block is a one-block edit in the Lab.

Related

RSI(14) Mean Reversion on all 59 ETFsfull results table All strategies on XLY12 templates compared RSI(2) Dip Snapback on XLYsame ETF, different rulesGolden Cross (SMA 50/200) on XLYsame ETF, different rules

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.