Moving average trading strategy (20/100-day) backtest: XLF 20/100 moving-average trend
Time-series trend following: holding XLF 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: 5.54% a year, Sharpe 0.44, worst drawdown -31.52%; its benchmark 3.85% a year, Sharpe 0.28. This strategy beats 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 | 5.86% | 3.86% |
| Volatility | 15.03% | 29.17% |
| Sharpe | 0.45 | 0.28 |
| Max drawdown | -31.52% | -83.75% |
| Turnover (per year) | 1.36 |
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": [
"XLF"
]
}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 xlf-20-100-moving-average-trend-3c0690 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/xlf-20-100-moving-average-trend-3c0690/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 xlf-20-100-moving-average-trend-3c0690 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/xlf-20-100-moving-average-trend-3c0690)