Learn › Strategies › SMA 10/50 Trend › XLY

SMA 10/50 Trend 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: SMA 10/50 trend on XLY turned $10,000 into $10,202 (2.0% total, 0.3% CAGR): it trailed buy-and-hold by 5.9% per year, with a maximum drawdown 11.6 points shallower than holding (27.5% vs 39.1%).
0.3%CAGR
6.3%buy & hold CAGR
−27.5%max drawdown
0.10Sharpe ratio
22round trips
41%win rate
■ SMA 10/50 trend   ■ buy & hold, $10,000 invested 2021-01-04

Year by year

YearSMA 10/50 trendbuy & hold
2021−0.2%28.5%
2022−20.1%−35.7%
202311.8%38.7%
20249.1%26.0%
202515.3%7.3%
2026−9.0%−7.2%

Month by month

YearJanFebMarAprMayJunJulAugSepOctNovDec
20210.0%0.0%−0.7%3.2%−6.9%0.0%1.0%0.3%−2.4%9.2%1.6%−4.7%
2022−3.3%0.0%−3.2%−7.7%0.0%0.0%6.3%−4.4%−4.5%0.0%0.0%−4.8%
20236.2%−2.1%−3.4%0.7%2.5%12.0%2.3%−5.7%−7.3%0.0%1.5%6.0%
2024−3.7%3.4%−0.1%−3.0%−1.6%1.2%2.7%−7.7%7.2%−1.7%12.6%1.1%
20253.4%−2.9%0.0%0.0%6.1%1.8%1.9%4.6%3.5%−1.1%−4.1%1.7%
20261.4%−2.6%0.0%−1.5%2.1%−3.4%0.0%−2.2%−3.1%0.0%––

Every trade

SMA 10/50 trend on XLY made 22 closed round trips, an average hold of 55 days, an average winner of 6.83%, an average loser of −4.14%, a profit factor of 1.04, a longest losing streak of 4. It held a position at the close on 57.9% of trading days.

EntryEntry priceExitExit priceReturnDays held
2021-03-24$79.572021-03-26$78.98−0.7%2
2021-04-06$82.762021-05-19$79.44−4.0%43
2021-06-25$85.482021-08-25$86.681.4%61
2021-09-02$88.212021-10-12$87.76−0.5%40
2021-10-15$89.842021-12-21$93.313.9%67
2022-01-05$100.262022-01-12$96.92−3.3%7
2022-03-29$92.042022-04-28$81.95−11.0%30
2022-07-21$73.692022-09-23$71.47−3.0%64
2022-12-05$69.532022-12-15$66.14−4.9%10
2023-01-24$67.722023-03-14$68.070.5%49
2023-04-12$71.312023-08-21$79.6911.8%131
2023-09-14$84.442023-09-25$78.10−7.5%11
2023-11-16$81.082024-01-29$84.063.7%74
2024-02-09$87.072024-04-15$87.230.2%66
2024-05-17$86.982024-05-24$85.55−1.6%7
2024-06-13$88.432024-08-06$84.27−4.7%54
2024-08-27$91.322025-02-13$110.9321.5%170
2025-05-08$99.452025-10-21$117.4418.1%166
2025-10-27$118.982025-11-17$114.03−4.2%21
2025-12-09$116.602026-02-10$117.250.6%63
2026-04-20$119.692026-06-12$116.17−2.9%53
2026-08-11$119.062026-09-09$112.65−5.4%29

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
2021-11-192023-04-12−27.5%5092025-07-21831
2025-09-162026-09-09−13.0%358not yet–
2021-04-162021-08-19−8.8%1252021-10-2971

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)0.3%−27.5%$10,2020.10
5 basis points−0.0%−28.0%$9,9780.07
10 basis points−0.5%−28.6%$9,7440.04

Changing the parameters

VersionCAGRMax drawdownRound tripsWin rateFinal value
Published rules0.3%−27.5%2241%$10,202
SMA 5/501.2%−28.7%3027%$10,730
SMA 20/502.9%−22.5%1631%$11,764
SMA 10/100−0.7%−31.9%1242%$9,592

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

A faster moving-average crossover: hold while the 10-day average is above the 50-day.

  1. WHEN the market opens · IF not invested AND SMA(10) > SMA(50) · THEN buy with 98% of the sleeve
  2. WHEN the market opens · IF invested AND SMA(10) < SMA(50) · THEN sell the whole position

A faster version of the golden cross. The 10- and 50-day averages catch intermediate trends measured in weeks rather than years. It enters recoveries earlier and exits breakdowns earlier, with more whipsaw trades in sideways markets. Useful for seeing how signal speed changes a strategy's results.

Good for: trending assets with multi-week swings, such as leveraged index ETFs.
Watch out: several false signals a year is normal; each whipsaw costs a small loss and they add up in flat markets.

Run SMA 10/50 trend 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 SMA 10/50 trend beat buy-and-hold on XLY?

Over 2021-01-04 to 2026-10-02, SMA 10/50 trend on XLY returned 0.3% annualized vs 6.3% for buy-and-hold: it trailed buy-and-hold by 5.9% per year, with a maximum drawdown 11.6 points shallower than holding (27.5% vs 39.1%).

How many trades did it make?

22 completed round trips over 5.7 years (44 fills), with 41% of round trips closing profitably.

Why 10 and 50 days?

A common intermediate-trend pairing. It reacts within weeks and ignores single bad days. Both windows are editable parameters in DeployQuant.

Related

SMA 10/50 Trend on all 59 ETFsfull results table All strategies on XLY12 templates compared RSI(14) Mean Reversion on XLYsame ETF, different rulesRSI(2) Dip Snapback 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.