Learn › Strategies › SMA-200 Trend + 15% Trailing Stop › XLF

SMA-200 Trend + 15% Trailing Stop on XLF

Financial Select Sector SPDR Fund: S&P 500 banks, insurers and asset managers. Backtest 2021-01-04 to 2026-10-02, $10,000 starting capital, computed by the same engine that runs live DeployQuant strategies.

Result: trend + trailing stop on XLF turned $10,000 into $11,602 (16.0% total, 2.6% CAGR): it trailed buy-and-hold by 10.0% per year, with a maximum drawdown of 27.9% (buy-and-hold: 25.5%).
2.6%CAGR
12.6%buy & hold CAGR
−27.9%max drawdown
0.26Sharpe ratio
4round trips
50%win rate
■ trend + trailing stop   ■ buy & hold, $10,000 invested 2021-01-04

Year by year

Yeartrend + trailing stopbuy & hold
2021−1.1%35.8%
2022−12.4%−10.4%
20234.3%11.9%
202429.8%29.9%
20259.7%14.7%
2026−9.8%−1.1%

Month by month

YearJanFebMarAprMayJunJulAugSepOctNovDec
20210.0%0.0%0.0%0.0%0.0%0.0%0.0%0.0%0.0%1.4%−5.7%3.4%
20220.0%−1.4%−0.1%−7.7%0.0%0.0%0.0%0.0%0.0%0.0%1.5%−5.1%
20236.7%−2.3%−11.4%0.0%0.0%0.4%4.7%−2.6%−3.0%−2.5%10.6%5.4%
20242.9%4.0%4.7%−4.0%3.1%−0.9%6.3%4.4%−0.5%2.6%10.2%−5.4%
20256.4%1.4%−4.1%−6.3%4.3%3.1%0.0%3.1%0.1%−2.7%1.8%3.0%
2026−2.4%−3.7%−6.5%−0.7%−1.1%4.2%6.1%1.3%−7.0%0.2%––

Every trade

trend + trailing stop on XLF made 4 closed round trips and one position still open at the end of the test, an average hold of 330 days, an average winner of 20.45%, an average loser of −10.76%, a profit factor of 1.66, a longest losing streak of 2. It held a position at the close on 70.6% of trading days.

EntryEntry priceExitExit priceReturnDays held
2021-10-19$36.422022-04-26$32.68−10.3%189
2022-11-11$33.462023-03-13$29.69−11.3%122
2023-06-16$31.902025-04-04$43.6036.7%658
2025-04-10$45.532026-03-27$47.464.2%351
2026-04-20$52.14open–2.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.

Largest drawdowns

PeakLow pointDepthDays to lowRecoveredDays to recover
2022-01-122023-10-27−27.9%6532024-07-16263
2026-01-062026-06-03−17.2%148not yet–
2025-02-182025-04-21−15.7%622025-09-19151

Buy-and-hold's deepest drawdown ran from 2022-01-12 to 2022-10-12 and reached −25.5%.

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)2.6%−27.9%$11,6020.26
5 basis points2.5%−28.1%$11,5580.26
10 basis points2.5%−28.2%$11,5040.25

Changing the parameters

VersionCAGRMax drawdownRound tripsWin rateFinal value
Published rules2.6%−27.9%450%$11,602
10% trailing stop4.2%−21.9%825%$12,660
20% trailing stop5.3%−29.3%10%$13,442
25% trailing stop4.1%−33.6%10%$12,625

How XLF behaved

MeasureXLF
Data in this test2021-01-04 to 2026-10-02 (1444 sessions)
Total return, buy and hold102.9%
Annualized volatility18.4%
Deepest drawdown−25.9% (2022-01-12 to 2022-10-12)
Up days52.9%
Average daily range1.40%
Average overnight gap0.49%
Correlation to SPY0.77
Correlation to QQQ0.59
Correlation to TLT-0.05
Sessions above the 200-day average71.2%
Crossings of the 200-day average38
Falls of 10% or more from a 20-day high10

The rules

Enter when price is above the 200-day average; exit only when a 15% trailing stop is hit.

  1. WHEN the market opens · IF not invested AND yesterday's close > SMA(200) · THEN buy with 98% of the sleeve
  2. WHILE invested · a managed trailing stop follows 15% below the position's high-water mark

A hybrid of the regime filter and the trailing stop. The 200-day average decides when to get in, and a 15% trail from the position's high-water mark decides when to get out. Winners can run well past the point where a crossover would have exited, and the position gives back 15% from every peak.

Good for: long trends with moderate pullbacks; the 15% trail is wide enough to survive normal corrections.
Watch out: every exit gives back 15% from the peak, and on choppy assets it re-enters above the 200-day repeatedly after each stop-out.

Run trend + trailing stop on XLF 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 trend + trailing stop beat buy-and-hold on XLF?

Over 2021-01-04 to 2026-10-02, trend + trailing stop on XLF returned 2.6% annualized vs 12.6% for buy-and-hold: it trailed buy-and-hold by 10.0% per year, with a maximum drawdown of 27.9% (buy-and-hold: 25.5%).

How many trades did it make?

4 completed round trips over 5.7 years (9 fills), with 50% of round trips closing profitably.

Why 15% rather than 10%?

A wider trail survives routine corrections and gives back more at the end. Both numbers are one-field edits in DeployQuant, so you can backtest both and compare.

Related

SMA-200 Trend + 15% Trailing Stop on all 59 ETFsfull results table All strategies on XLF12 templates compared RSI(14) Mean Reversion on XLFsame ETF, different rulesRSI(2) Dip Snapback on XLFsame 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.