Learn › Strategies › Golden Cross (SMA 50/200) › XLF

Golden Cross (SMA 50/200) 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: golden cross on XLF turned $10,000 into $12,249 (22.5% total, 3.6% CAGR): it trailed buy-and-hold by 9.0% per year, with a maximum drawdown 7.5 points shallower than holding (17.9% vs 25.5%).

The golden cross template is long a fund whenever the 50-day simple moving average is the higher of the two. When the 50-day drops under the 200-day, a death cross, it goes to cash. Applied to XLF, the Financial Select Sector SPDR Fund, it returned 3.6% a year from 2021-01-04 to 2026-10-02. The $10,000 start ended at $12,249, a total return of 22.49%. Buy-and-hold on XLF returned 12.58% a year and ended at $19,742.

That is a gap of 8.98 points of CAGR, and the rule was ahead of buy-and-hold in only 1 of 6 calendar years, 2022. It had a shallower maximum drawdown, 17.95% against 25.47%. Its Sharpe ratio was 0.33 against 0.76. It made 4 round trips, won 1 and lost 3, and it holds a fifth position open at the end of the data. The win rate was 25%, the profit factor 3.41, and the fund was held 63.4% of the time. The headline run has no fees or slippage.

Four trades is a very small sample, and one of them, 853 days long, produced almost all the profit. The result says more about one long trend than about the rule in general. On XLF the golden cross ranked 9th of 12 templates by CAGR and 27th of the 59 funds for this strategy. Across all 59 funds the median CAGR was 2.05%, and for the 6 sector funds it was 11.2%, so XLF sits well under its sector group.

3.6%CAGR
12.6%buy & hold CAGR
−17.9%max drawdown
0.33Sharpe ratio
4round trips
25%win rate
■ golden cross   ■ buy & hold, $10,000 invested 2021-01-04

Year by year

Yeargolden crossbuy & hold
2021−1.1%35.8%
20220.4%−10.4%
2023−3.4%11.9%
202429.8%29.9%
202514.6%14.7%
2026−14.2%−1.1%

Year by year against buy-and-hold

The golden cross needs 200 days of history before the long average exists, so the test spent most of 2021 flat. The monthly table shows 0 for every month from January to September 2021. The first entry came on 2021-10-19 at an adjusted price of 36.42, after the 50-day moved above the 200-day. That explains the first year: the rule lost 1.1% in 2021 while XLF made 35.8%, a gap of 36.9 points, the widest of any year. Most of that gap is time spent in cash while the fund rose.

In 2022 the rule made 0.4% against a 10.4% loss for the fund, a lead of 10.8 points. This is the one year the rule won. The trade entered in October 2021 was closed on 2022-04-21 at 35.43, a loss of 2.72% after 184 days, and the rule stayed in cash from then through November. The monthly figures for May to November 2022 are all 0, and the fund's worst month of the window, June 2022 at -10.64%, fell inside that stretch. The rule re-entered on 2022-12-20 and made 2.02% in December.

In 2023 the rule lost 3.4% against an 11.9% gain, a gap of 15.3 points. Two trades closed that year and both lost. The first, from 2022-12-20 at 31.56 to 2023-04-24 at 31.47, lost 0.29%. The second, from 2023-08-08 at 33.22 to 2023-10-30 at 30.31, lost 8.76%, the worst of the test. January 2023 made 6.69%, then March 2023 lost 9.33%, with the fund's worst days of 2023 on 2023-03-09 at -4.07% and 2023-03-13 at -3.94%. The rule was invested through that decline, and it sold only on the death cross in April.

In 2024 the rule made 29.8% against 29.9% for the fund, a gap of 0.1 points. The 853-day trade entered on 2023-11-17 at 33.34 was in place for the whole year, so the rule captured the full return, minus the cost of the open-to-open timing. In 2025 the result was 14.6% against 14.7%, again 0.1 points behind, for the same reason. Those two years are the argument for a trend rule: when it is in a trend it matches the fund.

In 2026 so far the rule lost 14.2% against a 1.1% loss for the fund, a gap of 13.1 points. The long trade closed on 2026-03-19 at 48.12 with a gain of 44.33%, after the fund had already fallen from its January peak, and the rule was flat from April through June. It re-entered on 2026-07-06 at 55.57. That trade is open at the end of the data and is down 3.76%. The strategy's third drawdown, 16.8% from 2026-01-06 to 2026-09-30, has not recovered.

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%−0.1%0.0%0.0%0.0%0.0%0.0%0.0%0.0%2.0%
20236.7%−2.3%−9.3%3.4%0.0%0.0%0.0%−1.6%−3.0%−4.2%2.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%−2.2%4.4%3.1%0.0%3.1%0.1%−2.8%1.8%3.0%
2026−2.4%−3.7%−5.2%0.0%0.0%0.0%2.0%1.3%−7.0%0.2%––

The months behind the numbers

The rule's best month was November 2024 at 10.22%, and its worst was March 2023 at -9.33%. Buy-and-hold had its best month in October 2022 at 11.62% and its worst in June 2022 at -10.64%. The fund's best month fell in a stretch when the rule was in cash. The rule's single best month came inside the long trade, as did the other large months: January 2023 at 6.69% is the exception, because it belongs to the trade that lost in the end.

The calendar-month averages for XLF give some context. November averaged 4.85% across the years in the window and October 3.3%, and the rule made 10.22% in November 2024 and was invested for that run. September averaged -3.37%, and the rule lost 3.02% in September 2023 and 7.04% in September 2026.

The long run of positive months from November 2023 to January 2026 is the 853-day trade. The larger losing months in that stretch were April 2024 at -4.04%, December 2024 at -5.36%, March 2025 at -4.11%, April 2025 at -2.18% and October 2025 at -2.75%. The rule held through all of them, which is the point of a slow signal.

Which calendar months favoured XLF and where the rule was invested

XLF's best calendar month on average was November at 4.85%, but July comes next at 4.03%, ahead of October at 3.3% and January at 2.77%. July is the month the rule's 2026 re-entry fell in. The rule was in cash in July 2023, so the July readings in the monthly table are 0 in 2023, 6.32% in 2024, 0.02% in 2025 and 2.04% in 2026. The rule collected one large July and two small ones.

The weak months for the fund were September at -3.37% and March at -1.11%, with April at -0.15%, June at -0.1% and December at 0.28% close to flat. The rule's March results were -9.33% in 2023, -4.11% in 2025 and -5.23% in 2026, so it was invested for all three of the fund's March declines that fell inside a trade. In 2024 March gave 4.74%, the only March where the rule gained. Each calendar month has five or six observations in this window, so the averages are a description and give no seasonal edge.

Weekday averages for XLF were almost flat: 0.08% on Monday, 0.04% on Tuesday, 0.07% on Wednesday, 0.03% on Thursday and 0.07% on Friday. A rule that enters at the open and exits at the open takes the same fund return on any weekday, and the table shows no weekday that would have changed when the crosses fire. The entries on 2021-10-19, 2023-11-17 and 2026-07-06 fell on three different weekdays, and the data gives no reason to add a weekday filter.

Every trade

golden cross on XLF made 4 closed round trips and one position still open at the end of the test, an average hold of 311 days, an average winner of 44.33%, an average loser of −3.92%, a profit factor of 3.41, a longest losing streak of 3. It held a position at the close on 63.4% of trading days.

EntryEntry priceExitExit priceReturnDays held
2021-10-19$36.422022-04-21$35.43−2.7%184
2022-12-20$31.562023-04-24$31.47−0.3%125
2023-08-08$33.222023-10-30$30.31−8.8%83
2023-11-17$33.342026-03-19$48.1244.3%853
2026-07-06$55.57open–−3.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.

Five positions

There are only five trades, so each deserves a line.

The first was entered on 2021-10-19 at an adjusted price of 36.42 and closed on 2022-04-21 at 35.43, a loss of 2.72% over 184 days. It entered about when XLF was near its high. The fund's peak was on 2022-01-12, less than three months later.

The second entered on 2022-12-20 at 31.56 and closed on 2023-04-24 at 31.47. The loss was 0.29% over 125 days. This is the median trade, and it shows the whipsaw cost of the rule in its mildest form: it spent four months invested for nothing.

The third entered on 2023-08-08 at 33.22 and closed on 2023-10-30 at 30.31, a loss of 8.76% over 83 days, the shortest holding. It was the worst of the test. The strategy's drawdown ran from 2023-02-07 to 2023-10-27, and this trade closed three days after the trough.

The fourth was the whole result. It entered on 2023-11-17 at 33.34 and closed on 2026-03-19 at 48.12, a gain of 44.33% over 853 days. The average win and the best trade are both 44.33%, because there was only one winner. The profit factor of 3.41 comes from that single trade against the three small losses, whose average was -3.92%.

The fifth entered on 2026-07-06 at 55.57 and is open at -3.76%. Adjustment for splits and dividends pulls these prices below the quotes of the day.

The median trade lost 0.29% and the median holding was 184 days. The average holding of 311.2 days is pulled up by the 853-day trade. The longest losing streak was 3 and the longest winning streak 1. Grouped by exit year, 2022 closed 1 round trip with no win, 2023 closed 2 with no win, and 2026 closed 1 that won.

A trader running this rule on XLF for these 5.7 years would have sat through three losing trades before the one that paid. Whether that pattern repeats is not something the test can say.

Largest drawdowns

PeakLow pointDepthDays to lowRecoveredDays to recover
2023-02-072023-10-27−17.9%2622024-03-28153
2026-01-062026-09-30−16.8%267not yet–
2025-02-182025-04-08−15.3%492025-06-2780

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

Drawdowns

The strategy's deepest drawdown was 17.95%, from 2023-02-07 to 2023-10-27, recovering on 2024-03-28. It took 262 days to reach the trough and 153 days to recover. The fund's own worst, 25.47%, ran from 2022-01-12 to 2022-10-12 and took until 2024-02-22 to recover, which was 498 days after the trough. The rule missed that decline almost entirely, since it was in cash from April 2022. Its own drawdown came in 2023, when it was invested during the March decline and during the autumn slide.

The second drawdown was 16.8%, from 2026-01-06 to 2026-09-30, not yet recovered, and 267 days down. The third was 15.28%, from 2025-02-18 to 2025-04-08, recovering on 2025-06-27. It took 49 days down and 80 to recover. Buy-and-hold had 15.33% in the same window and recovered on 2025-06-27 as well, so the rule gave no protection in April 2025. It was invested through the whole of the fall. A golden cross reacts after weeks of price movement, and a decline lasting 49 days is too fast.

The same applies to the 2026 decline. The fund's decline from 2026-01-06 to 2026-03-27 was 14.65% and recovered on 2026-07-06. The rule's was 16.8% and deeper, because the death cross came on 2026-03-19, and the fund then recovered while the rule was in cash. The rule sold close to the low and re-entered at 55.57 after the recovery had started. The strategy page warns about exactly this delay. A moving-average cross arrives after a crash has started and after a recovery has started.

The two worst days of the window for XLF were -7.36% on 2025-04-04 and -4.97% on 2025-04-03, and the best was 7.59% on 2025-04-09. A rule that moves at the open on the basis of yesterday's averages does not react to days like these.

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)3.6%−17.9%$12,2490.33
5 basis points3.5%−18.0%$12,2090.33
10 basis points3.5%−18.1%$12,1510.32

Costs

At 5 basis points the CAGR was 3.54% with a drawdown of 18% and a Sharpe ratio of 0.326, ending at $12,209. At 10 basis points it was 3.45% with a drawdown of 18.12% and a Sharpe of 0.32, ending at $12,151. The rule made 9 fills, so costs have very little to act on. The rule is cheap to run, and the cost runs do not change its place in the ranking. XLF's average daily dollar volume was $1,682,204,673 and its median minute volume 62,901 shares, so fills at the open are not a liquidity problem for an account of this size.

Changing the parameters

VersionCAGRMax drawdownRound tripsWin rateFinal value
Published rules3.6%−17.9%425%$12,249
SMA 40/2002.3%−21.6%425%$11,419
SMA 50/1505.7%−18.8%450%$13,768
SMA 60/2500.8%−30.1%425%$10,477

Other moving-average pairs

The variants differ more than the cost runs do. SMA 40/200 returned 2.34% with a drawdown of 21.56%, 4 trades and 1 win, ending at $11,419. SMA 50/150 returned 5.73% with a drawdown of 18.83%, 4 trades and 2 wins, ending at $13,768. SMA 60/250 returned 0.82% with a drawdown of 30.07%, 4 trades and 1 win, ending at $10,477.

The standard 50/200 pair returned 3.6%, between the shorter-slow variant and the others. The 50/150 version did best and had a win more, because a shorter slow average changes the dates of the crosses. With only 4 trades each, shifting one cross date moves the result a lot. The 60/250 pair, with the longest slow average, was in a drawdown of 30.07%, deeper than buy-and-hold's 25.47%, so the slowest pair gave no drawdown benefit on this fund.

These results do not identify a better setting. They show that with so few trades the result depends on where the crosses fall. Picking 50/150 because it did best here would be fitting the setting to one window.

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

How XLF behaved

XLF returned 13.11% a year with a total return of 102.88% and annualized volatility of 18.43%. Its maximum drawdown was 25.87%, from 2022-01-12 to 2022-10-12, recovered on 2024-02-22, with a longest drawdown of 528 sessions. XLF returned 36.61% in 2021 and -10.55% in 2022. The years after were 12.11% (2023), 30.43% (2024) and 14.86% (2025), with 2026 at -1.15% so far.

It closed above its 200-day average on 71.16% of sessions and crossed that line 38 times. Crossing the 200-day line 38 times in 5.7 years while the 50/200 cross produced only 4 entries shows the difference between the two signals. The price moved around the long average often, and the 50-day average rarely followed it. The golden cross waits for the two averages to cross, which filters most of those crossings out, at the price of acting late.

The fund was up on 52.88% of days, with average up and down days of 0.86% each. The lag-1 autocorrelation was 0.02, close to zero. Overnight moves supplied 62.56% of the return and intraday 37.44%. The fund correlated at 0.77 with SPY and 0.59 with QQQ, and at -0.05 with TLT. The three most correlated funds in the 59 were FAS at 1, VTV at 0.89 and VOOV at 0.89.

The bounce statistics suggest XLF dips tended to recover. RSI(14) went under 30 on 30 sessions. Twenty days later the median return was 3.18%, where all sessions gave 1.5%. The median 5-day return after them was 0.75% against 0.42%. That favours mean reversion rules, and the results match: the RSI mean reversion template returned 11.82% on XLF with a drawdown of 18.73%, the monthly cycle 11.63%, and the RSI(2) snapback 9.72% with a drawdown of 14.57%. The EMA 12/26 trend made 5.63%, and the weekly 7% target was at 7.13%. Trend rules finished near the bottom. The SMA 10/50 trend made 4.02% and the golden cross 3.6%. 3-month momentum made 2.74%, the trend plus trailing stop 2.62%, and the 200-day regime filter 2.06%.

Among sector funds, the golden cross did best on SOXX at 28.24%, then XLK at 15.33% and VOX at 11.2%. XLF came fourth at 3.6%, ahead of XLP at 2.05% and XLY at 1.35%. The funds with clean, long trends suited the cross, and XLF's trend was cut by 2022 and 2026.

Large days, short-term oversold readings and what the peers show

XLF's five best days were 2025-04-09 at 7.59%, 2024-11-06 at 6.09%, 2022-11-10 at 5.11%, 2021-01-06 at 4.38% and 2022-10-13 at 4.17%. The November 2024 day sits inside the long trade and helps explain why that month was the rule's best at 10.22%. The 2022 days and the January 2021 day fell while the rule was flat, so three of the five largest up days went uncaptured. The April 2025 day was inside the long trade, but it followed the worst two days of the window, 2025-04-04 at -7.36% and 2025-04-03 at -4.97%, which the rule also sat through.

The fund was up on 52.88% of its 1,444 sessions, with up days and down days both averaging 0.86%. The average intraday range was 1.4% and the average overnight gap 0.49%. These are modest figures for an equity sector fund, and they describe a fund the cross rarely had to chase on a single day. A move that mattered took weeks.

The shorter oversold reading adds a second view of mean reversion. RSI(2) closed below 10 on 169 sessions. The median 5-day return afterwards was 0.38% against a baseline of 0.42%, so on the 5-day horizon the signal added nothing. At 20 days the median was 1.89% against 1.5%. The RSI(14) reading gave a clearer bounce at both horizons, with only 26 measured outcomes, so both sets of numbers are small samples. The fund was overbought on RSI(14) on 96 sessions, and 10 separate episodes saw it fall 10% or more from a 20-day high, lasting 45 sessions in all.

Among the 12 templates on XLF, the momentum breakout returned 6.99% with a drawdown of 17.64%, and the dip buyer returned 6.78% with 15.99%. The golden cross drawdown of 17.95% was close to those two, so its low return did not come with a much shallower loss. Of the five sector peers, XLP had the shallowest drawdown at 14.3% and SOXX the deepest at 28.82%. XLF's own beta to SPY was 0.87, and the least correlated fund in the 59 was SH at -0.78.

The rules

Hold while the 50-day average is above the 200-day; step aside when it crosses below (the death cross).

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

A widely used trend filter. When the 50-day simple moving average is above the 200-day, the asset is in a long-term uptrend and the strategy holds. When it crosses below, the strategy moves to cash. It trades rarely, with a handful of signals per decade on an index. Its use is skipping the deepest bear markets, and it will lag some rallies.

Good for: long-horizon investors who want to hold trends but sidestep multi-year bear markets.
Watch out: crosses lag at turning points: the strategy gives back the first leg of a crash and misses the first leg of a recovery, and choppy sideways markets whipsaw it.

What the rule did and did not do here

The golden cross traded 4 times in 5.7 years. It is one of the quietest of the 12 templates, and the quiet shows in both directions. It never paid for a whipsaw cluster, and it sat in cash during the first part of the 2022 decline and through the spring of 2022. It also took the 2023 decline in full and missed the 2026 recovery.

The result splits into one long trend and four small trades. When the trend persisted, as in 2024 and 2025, the rule matched the fund to within 0.1 points a year. When the trend broke, the rule lagged by weeks. The lag cost 8.76% in the third trade and sold near the low in 2026.

This is one fund and one window with 4 closed trades and no fees in the headline run. The figures describe what happened, and a different window with different crossing dates would give a different answer.

Run golden cross 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 golden cross beat buy-and-hold on XLF?

Over 2021-01-04 to 2026-10-02, golden cross on XLF returned 3.6% annualized vs 12.6% for buy-and-hold: it trailed buy-and-hold by 9.0% per year, with a maximum drawdown 7.5 points shallower than holding (17.9% vs 25.5%).

How many trades did it make?

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

How often does a golden cross happen?

On a broad index, roughly every couple of years. The backtest pages show the exact trade count for each ETF over the 2021 to 2026 window.

Golden cross vs buy and hold: which does better?

It depends on the asset and the window. Every backtest page here shows the same-window buy-and-hold comparison.

How did the golden cross strategy do on XLF?

It returned 3.6% a year from 2021-01-04 to 2026-10-02 and ended at $12,249 from $10,000. The maximum drawdown was 17.95% and the Sharpe ratio 0.33. Buy-and-hold on XLF returned 12.58% a year and ended at $19,742.

How many trades did the golden cross make on XLF?

Four round trips closed. A fifth position, bought on 2026-07-06 at an adjusted 55.57, was open when the data ended. One of the closed trades won, a 44.33% gain over 853 days. The other three lost 2.72%, 0.29% and 8.76%.

Did the golden cross beat buy-and-hold on XLF?

Not on return. The CAGR gap was 8.98 points behind. It had a shallower maximum drawdown, 17.95% against 25.47%, and it was ahead in 2022 only, when it made 0.4% against a 10.4% loss for the fund.

Why did the strategy miss most of 2021?

Because 200 sessions of history must exist first, the first entry came on 2021-10-19. The monthly returns are 0 from January to September 2021, while XLF made 35.8% that calendar year.

Does the exact moving-average pair matter on XLF?

Yes, in this data. SMA 50/150 returned 5.73%, standard 50/200 returned 3.6%, SMA 40/200 returned 2.34% and SMA 60/250 returned 0.82%. With 4 trades each, a shift in one crossing date moves the result a lot.

Which strategy did best on XLF?

The RSI mean reversion template returned 11.82% with a drawdown of 18.73%, and the monthly cycle returned 11.63%. The golden cross ranked 9th of 12 at 3.6%.

Related

Golden Cross (SMA 50/200) 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.