quants.md
Optuna TPE Optimization + Walk-Forward
Fragile
“Bayesian parameter search, then out-of-sample validation”
From quants.md
As tested: The sector trend with (fast, slow) from 30 draws over fast 10–80 × slow 100–250, the best Sharpe over the whole rerun window kept. Their TPE sampler is swapped for seeded random draws; same budget, same objective, same hindsight. Picked: 67/250.
Holding today: XLK 16% · XLP 16% · XLB 16% · XLV 16% · XLE 16% · XLF 16%
Parameters picked on the data they're graded on, so the result is in-sample.
Edge per month-0.34 pts/mopts per month vs SPY
t-stat-1.8495% range -0.69 to +0.02
Months124Sep 1, 2016 – Dec 3, 2026
CAGR10.4%SPY 14.5%
Max drawdown-32.8%SPY -33.8%
Last 12 months+3.18 pts12 months, summed
Their backtest vs the rerun
| Window | CAGR | Sharpe | Max DD | |
|---|---|---|---|---|
| quants.md | 2000–2026 | — | — | — |
| Rerun | 2016–2026 | +10.4% | 0.58 | -32.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
- t-stat -1.84 is inside the noise
- 97% of resamples have no edge
- only 0% of nudged versions keep the edge, so it's a lucky setting
- one half carries it (-0.49 before 2021, -0.18 after)
Growth of $1
Optuna TPE Optimization + Walk-ForwardSPY
Log scale. Traded at the next open after each signal, monthly rebalance, slippage on every trade.
Year by year
2016
-0.35 pts/mo4
2017
-0.40 pts/mo12
2018
-0.07 pts/mo12
2019
-0.93 pts/mo12
2020
-0.89 pts/mo12
2021
-0.14 pts/mo12
2022
+1.23 pts/mo12
2023
-1.30 pts/mo12
2024
-0.77 pts/mo12
2025
-0.35 pts/mo12
2026
+0.27 pts/mo12