Moving average trading strategy (20/100-day) backtest: XLE 20/100 moving-average trend
Time-series trend following: holding XLE only while its 20-day average is above its 100-day average should cut drawdowns in bear markets at a small cost in bull markets. Falsified if drawdowns are not smaller than buy-and-hold or the Sharpe ratio is lower.
Full record, 2005-01-01 to 2026-11-25: 2.33% a year, Sharpe 0.22, worst drawdown -47.06%; its benchmark 5.86% a year, Sharpe 0.34. This strategy trails its benchmark. Re-run every night through today.
Forward tracking since 2026-10-13: 30 of 63 trading days recorded. The out-of-sample record builds to 63 trading days before it is scored.
Backtest
| Metric | Strategy | Benchmark |
|---|---|---|
| CAGR | 1.25% | 4.57% |
| Volatility | 18.47% | 29.94% |
| Sharpe | 0.16 | 0.30 |
| Max drawdown | -47.08% | -76.74% |
| Turnover (per year) | 1.79 |
Deflated Sharpe: 0.00 (n trials: 456) — the probability the Sharpe ratio is real after the number of variants tried.
Spec
{
"costs_bps": 10,
"end": "2025-12-31",
"rebalance": "W",
"side": "long",
"signal": {
"fast": 20,
"slow": 100,
"type": "ma_cross"
},
"start": "2005-01-01",
"top_n": 1,
"universe": [
"XLE"
]
}Re-run it free
Every listed strategy is free to explore and re-run on its full history, on our servers. No account or API key needed. Ask your AI assistant with the FinzData connector:
Re-run the FinzData strategy xle-20-100-moving-average-trend-8d8d05 through today and show me the results.
Fork this strategy
Re-run it with your own changes. The fork is computed on the server and linked back here.
curl -X POST https://api.finzdata.com/v1/hub/s/xle-20-100-moving-average-trend-8d8d05/fork \
-H 'Authorization: Bearer YOUR_KEY' -H 'Content-Type: application/json' \
-d '{"changes": {"signal": {"lookback": 126}}}'Or ask your AI assistant (Claude, ChatGPT, Cursor with the FinzData connector):
Fork the FinzData strategy xle-20-100-moving-average-trend-8d8d05 and test it with a 126-day lookback and 20 bps costs, then compare both runs.
Community
★ 0 stars · Sign in to star and comment (free, email link, no password).
Discussion (0)
No comments yet.
Embed
[](https://data.finzdata.com/s/xle-20-100-moving-average-trend-8d8d05)