← The library

quants.md

Anchored Walk-Forward With Pre-OOS Purging

Fragile

“Fixed and percentage-based exclusions before each test window”

As tested: The base rule is W03 (RSI under 35 in, over 60 out, Fridays); the example tunes nothing, so the rerun is W03's.

Holding today: XLI 24% · XLK 24% · XLE 24% · XLB 23%

Edge per month-0.24 pts/mopts per month vs SPY
t-stat-0.9795% range -0.73 to +0.25
Months124Sep 1, 2016 – Dec 3, 2026
CAGR11.7%SPY 14.5%
Max drawdown-33.8%SPY -33.8%
Last 12 months+3.93 pts12 months, summed

Their backtest vs the rerun

WindowCAGRSharpeMax DDWin rateProfit factor
quants.md2000–2026—————
Rerun2016–2026+11.7%0.67-33.8%——

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

Anchored Walk-Forward With Pre-OOS PurgingSPY
20172019202120232025

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

Year by year

2016
+0.55 pts/mo4
2017
-1.16 pts/mo12
2018
+0.06 pts/mo12
2019
-0.51 pts/mo12
2020
-1.07 pts/mo12
2021
-0.34 pts/mo12
2022
+2.20 pts/mo12
2023
-0.50 pts/mo12
2024
-1.06 pts/mo12
2025
-0.62 pts/mo12
2026
+0.33 pts/mo12