AvalonQuant Research
Stories & guides
Home › Market Timing Research

Does XLP Moving Average Timing Beat Holding?

Source-referenced guide • Reviewed: • Source reference
Does XLP Moving Average Timing Beat Holding?
AVALONQUANT Editorial Guide

Market Timing Research • Does XLP Moving Average Timing Beat Holding?

📸 Historical experiment review EDITORIAL-REVIEW • 2026-10

💡 Summary

Does moving average timing improve on holding XLP throughout the period? The strategy returned 4.52% annually, compared with 7.03% for XLP, while its maximum drawdown was shallower. Its return was also weaker than XLP's in the out-of-sample period.

Key Metrics & Specifications

Test Period 1998-12-22 to 2026-11-24
Strategy CAGR 4.52%
Strategy Max Drawdown -30.14%
Strategy Sharpe 0.46
XLP CAGR 7.03%
XLP Max Drawdown -35.89%
Execution & Costs Signal on the close, fill at the next close; 0.1% per side; doubled-cost CAGR 4.15%
Rules At each month end, compare the close of US consumer staples stocks (XLP) with the average of the last 10 month-end closes. Hold XLP for the next month if the close is above the average. Otherwise hold cash (Treasury bills) for the month. Decisions use the close; trades fill at the next day's close.
Out-of-Sample CAGR 3.49% vs XLP 9.89% from 2018-07

What the experiment recorded

RunCAGRMax drawdown
Strategy4.52%-30.14%
XLP7.03%-35.89%
Portfolio value (start = 100) 71 385 699 1998-12-22 2026-11-24
● Strategy● XLP buy and hold

Sampled historical portfolio values from the experiment export. The plotted observations can omit intervening peaks and troughs; use the reported maximum drawdown above.

1998-12-22 – 2026-11-24. Export dated 2026-11-26. Historical simulation; future results can differ. Read the underlying experiment.

⚡ Interactive Compound Growth Simulator

Adjust initial investment and holding duration to calculate compounded terminal wealth.

CAGR 4.52%
Initial Principal $10,000
$1,000 $100,000
Holding Horizon 10 Years
1 Year 20 Years
Estimated Wealth
$15,559
Compound Gain
+$5,559
Growth Factor
1.56x

* Hypothetical illustration for educational purposes only. Past backtest results do not guarantee future returns.

Research tool

Compare investment strategies

Explore the assumptions and results behind different historical strategies.

Historical results do not guarantee future returns.

The question behind the strategy

Investors may wonder whether stepping out of XLP during weak trends can reduce losses enough to improve the experience of holding consumer staples stocks. This backtest compares that timing approach with holding XLP over the full period.

How the rules work

At each month end, the strategy compares XLP's closing price with the average of its last 10 month-end closes. It holds XLP for the following month when the close is above that average; otherwise, it holds cash in Treasury bills.

Decisions use the month-end close, and trades fill at the next day's close. People use moving averages to identify trends and set a consistent rule for moving between an asset and cash.

What the results say

From 1998-12-22 to 2026-11-24, the strategy's annualized return was 4.52%, compared with 7.03% for XLP. Its maximum drawdown was -30.14%, compared with -35.89% for XLP, and its Sharpe ratio was 0.46 versus 0.52.

In the out-of-sample period starting in 2018-07, the strategy returned 3.49% annually versus 9.89% for XLP. With trading costs doubled, the strategy's annualized return was 4.15% and its maximum drawdown was -30.70%.

Where the approach struggles

Moving average signals can lag price changes, leaving the strategy in XLP during declines or in cash during recoveries. In 2008, the strategy returned -21.72%, compared with -15.02% for XLP.

The strategy was invested outside cash for 72.67% of days and made 99 trades. Its lower return than XLP in both the full period and the out-of-sample period shows that a shallower overall drawdown did not come with a higher return in this test.

This is historical research, not a forecast. Past simulated results do not predict future returns.

⚠️ Risk Considerations

Historical results do not guarantee future returns, and the relationship between trend signals and market movements can change. Trading costs and the timing of actual fills can also affect results.

🎯 Target Audience

This page is for retail investors interested in how a rules-based XLP timing strategy compares with holding the fund.

Frequently Asked Questions (FAQ)

Q. Did the strategy beat holding XLP?

No. Over the full period, its annualized return was 4.52%, compared with 7.03% for XLP.

Q. Did timing reduce the maximum drawdown?

Yes. The strategy's maximum drawdown was -30.14%, compared with -35.89% for XLP, though it still experienced a substantial decline.

Q. Did the strategy hold up when trading costs doubled?

The doubled-cost run produced an annualized return of 4.15% and a maximum drawdown of -30.70%, compared with 4.52% and -30.14% in the main run.

Research tool

Compare investment strategies

Explore the assumptions and results behind different historical strategies.

Historical results do not guarantee future returns.

Related Research & Comparative Analyses

View all →