← The library

quants.md

Optuna TPE Optimization + Walk-Forward

Fragile

“Bayesian parameter search, then out-of-sample validation”

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

WindowCAGRSharpeMax DDWin rateProfit factor
quants.md2000–2026—————
Rerun2016–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

Growth of $1

Optuna TPE Optimization + Walk-ForwardSPY
20172019202120232025

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