Does the XLI Moving Average Strategy Beat Holding?
Market Timing Research • Does the XLI Moving Average Strategy Beat Holding?
💡 Summary
Does holding XLI only when it is above its moving average beat holding it throughout the period? The strategy returned 4.62% annually versus 9.08% for XLI, while its maximum drawdown was shallower. The results are historical and were weaker when trading costs were doubled.
Key Metrics & Specifications
| Test Period | 1998-12-22 to 2026-11-23 |
| Strategy CAGR | 4.62% |
| Strategy Max Drawdown | -34.66% |
| Strategy Sharpe | 0.40 |
| XLI CAGR | 9.08% |
| XLI Max Drawdown | -62.26% |
| Execution & Costs | Signal on the close, fill at the next close; 0.1% per side; doubled-cost CAGR 3.02% |
| Rules | Compute the 200-day simple moving average of US industrial stocks (XLI) from daily closes. Hold XLI while the close is above the average. Otherwise hold cash (Treasury bills). Decisions use the close; trades fill at the next day's close. |
| Out-of-Sample CAGR | 5.33% vs XLI 11.73% from 2018-07 |
What the experiment recorded
| Run | CAGR | Max drawdown |
|---|---|---|
| Strategy | 4.62% | -34.66% |
| XLI | 9.08% | -62.26% |
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-23. Export dated 2026-11-25. 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.
* Hypothetical illustration for educational purposes only. Past backtest results do not guarantee future returns.
Compare investment strategies
Explore the assumptions and results behind different historical strategies.
Historical results do not guarantee future returns.
The question behind the strategy
A reader may want to know whether a moving average rule can reduce large losses without giving up too much return. This backtest compares the rule with holding XLI over the same period.
How the rule works
The strategy holds XLI while its closing price is above its 200-day simple moving average. Otherwise, it holds cash in Treasury bills.
Decisions use the closing price, and trades fill at the next day's close. People use moving averages to identify broad price trends and reduce exposure when prices fall below a chosen threshold.
What the backtest shows
From 1998-12-22 to 2026-11-23, the strategy had a 4.62% annualized return and a -34.66% maximum drawdown. XLI returned 9.08% annually with a -62.26% maximum drawdown.
In the out-of-sample period starting in 2018-07, the strategy returned 5.33% annually versus 11.73% for XLI. When trading costs were doubled, the strategy's annualized return fell to 3.02% and its maximum drawdown was -40.64%.
Where the approach struggles
The rule can miss gains while it holds cash and can generate trades when prices move back and forth around the average. Trading costs reduce returns, and the backtest recorded 429 trades.
In its worst calendar year, 2005, the strategy returned -12.26% while XLI returned 2.75%.
This is historical research, not a forecast. Past simulated results do not predict future returns.
⚠️ Risk Considerations
Historical backtests cannot establish how the rule will perform in the future. Results depend on the chosen period, trading costs, and the assumed ability to trade at the next day's close.
🎯 Target Audience
This page is for retail investors comparing a trend-following rule with holding XLI throughout the period.
Frequently Asked Questions (FAQ)
Q. Did the XLI moving average strategy beat holding XLI?
No. The strategy returned 4.62% annually over the full period, compared with 9.08% for XLI.
Q. Did the strategy reduce the maximum drawdown?
Yes. Its maximum drawdown was -34.66%, compared with -62.26% for XLI.
Q. How did the strategy perform out of sample?
From 2018-07, the strategy returned 5.33% annually, compared with 11.73% for XLI.
Compare investment strategies
Explore the assumptions and results behind different historical strategies.
Historical results do not guarantee future returns.