Learn › Strategies › SMA 10/50 Trend › XLK

SMA 10/50 Trend on XLK

Technology Select Sector SPDR Fund: S&P 500 technology stocks, the sector behind most recent bull runs. 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 XLK turned $10,000 into $16,815 (68.2% total, 9.5% CAGR): it trailed buy-and-hold by 12.6% per year, with a maximum drawdown 7.3 points shallower than holding (25.6% vs 33.0%).
9.5%CAGR
22.1%buy & hold CAGR
−25.6%max drawdown
0.63Sharpe ratio
18round trips
44%win rate
■ SMA 10/50 trend   ■ buy & hold, $10,000 invested 2021-01-04

Year by year

YearSMA 10/50 trendbuy & hold
202117.4%36.1%
2022−24.5%−27.2%
202333.5%54.6%
20244.2%21.3%
202517.1%24.3%
202616.4%38.9%

Month by month

YearJanFebMarAprMayJunJulAugSepOctNovDec
20210.0%0.0%0.0%1.6%−3.3%6.8%3.8%3.5%−4.5%1.5%4.3%3.2%
2022−5.8%0.0%−2.0%−7.7%0.0%0.0%3.5%−6.1%−2.1%0.0%2.3%−9.0%
20231.9%0.4%10.6%−0.1%8.7%6.0%2.5%−5.1%−1.6%−2.0%5.1%4.1%
20242.6%4.6%0.8%−3.0%−1.3%7.5%−4.6%−0.9%−4.0%−1.5%5.0%−0.3%
2025−1.6%−6.5%0.4%0.0%8.1%9.6%3.6%0.0%7.4%6.5%−8.3%−1.4%
2026−1.6%−4.2%0.0%7.4%19.4%−0.2%−8.7%−1.4%5.0%2.1%––

Every trade

SMA 10/50 trend on XLK made 18 closed round trips and one position still open at the end of the test, an average hold of 71 days, an average winner of 13.28%, an average loser of −4.74%, a profit factor of 2.10, a longest losing streak of 3. It held a position at the close on 62.8% of trading days.

EntryEntry priceExitExit priceReturnDays held
2021-04-07$66.022021-05-17$64.79−1.9%40
2021-06-04$66.432021-09-29$72.869.7%117
2021-10-25$76.662022-01-14$79.003.0%81
2022-03-29$78.462022-04-18$70.80−9.8%20
2022-07-22$67.492022-09-07$64.18−4.9%47
2022-11-16$64.562022-12-28$59.99−7.1%42
2023-01-24$65.052023-08-15$82.7927.3%203
2023-09-07$84.072023-09-19$82.65−1.7%12
2023-10-18$82.602023-10-24$80.92−2.0%6
2023-11-10$86.302024-04-16$99.4115.2%158
2024-05-16$105.002024-07-30$106.381.3%75
2024-08-28$109.772024-09-04$102.62−6.5%7
2024-09-23$109.832025-01-14$113.203.1%113
2025-02-19$119.672025-03-03$112.19−6.3%12
2025-05-07$105.742025-11-24$136.8229.4%201
2025-12-10$146.772025-12-23$144.64−1.4%13
2026-01-05$145.732026-02-06$137.17−5.9%32
2026-04-15$147.902026-07-17$173.4217.3%93
2026-08-13$188.91open–5.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
2021-12-272022-12-28−25.6%3662023-07-18202
2024-07-102025-02-27−19.0%2322025-07-17140
2025-10-292026-02-05−17.1%992026-05-1195

Buy-and-hold's deepest drawdown ran from 2021-12-27 to 2022-10-12 and reached −33.0%.

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)9.5%−25.6%$16,8150.63
5 basis points9.1%−25.9%$16,5200.61
10 basis points8.8%−26.1%$16,2240.59

Changing the parameters

VersionCAGRMax drawdownRound tripsWin rateFinal value
Published rules9.5%−25.6%1844%$16,815
SMA 5/5013.4%−17.0%2335%$20,625
SMA 20/507.6%−30.8%1443%$15,248
SMA 10/1009.4%−32.2%1136%$16,717

How XLK behaved

MeasureXLK
Data in this test2021-01-04 to 2026-10-02 (1444 sessions)
Total return, buy and hold226.1%
Annualized volatility25.1%
Deepest drawdown−33.6% (2021-12-27 to 2022-10-12)
Up days55.2%
Average daily range1.77%
Average overnight gap0.69%
Correlation to SPY0.91
Correlation to QQQ0.97
Correlation to TLT0.07
Sessions above the 200-day average76.5%
Crossings of the 200-day average22
Falls of 10% or more from a 20-day high30

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 XLK 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 XLK?

Over 2021-01-04 to 2026-10-02, SMA 10/50 trend on XLK returned 9.5% annualized vs 22.1% for buy-and-hold: it trailed buy-and-hold by 12.6% per year, with a maximum drawdown 7.3 points shallower than holding (25.6% vs 33.0%).

How many trades did it make?

18 completed round trips over 5.7 years (37 fills), with 44% 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 XLK12 templates compared RSI(14) Mean Reversion on XLKsame ETF, different rulesRSI(2) Dip Snapback on XLKsame 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.