← The library

quants.md

Expanding Walk-Forward Validation

Fragile

“Ever-growing training window vs sliding test window”

As tested: Same base rule as WF01 (it only changes how the slices are drawn: expanding instead of rolling), so the rerun is the same.

Holding today: XLK 19% · XLP 19% · XLV 19% · XLE 19% · XLF 19%

Edge per month-0.39 pts/mopts per month vs SPY
t-stat-1.9895% range -0.77 to -0.00
Months124Sep 1, 2016 – Dec 3, 2026
CAGR9.8%SPY 14.5%
Max drawdown-33.0%SPY -33.8%
Last 12 months+1.02 pts12 months, summed

Their backtest vs the rerun

WindowCAGRSharpeMax DDWin rateProfit factor
quants.md2000–2026—————
Rerun2016–2026+9.8%0.55-33.0%——

Their dashboard · Source code · QuantJourney, Apache-2.0. Sharpe is after T-bills in the rerun, after a flat 2% in theirs.

Why fragile

Growth of $1

Expanding Walk-Forward ValidationSPY
20172019202120232025

Log scale. Traded at the next open after each signal, monthly rebalance, slippage on every trade.

Year by year

2016
-0.57 pts/mo4
2017
-0.31 pts/mo12
2018
-0.02 pts/mo12
2019
-0.85 pts/mo12
2020
-1.29 pts/mo12
2021
-0.10 pts/mo12
2022
+1.51 pts/mo12
2023
-1.20 pts/mo12
2024
-0.73 pts/mo12
2025
-0.92 pts/mo12
2026
+0.09 pts/mo12