← The library

quants.md

Grid Search Parameter Optimization

Fragile

“Exhaustive SMA fast/slow tuning scored by real backtests”

As tested: The sector 50/200 trend with (fast, slow) chosen from fast 20/50/80 × slow 100/150/200 by Sharpe over the whole rerun window, then run. Choosing on the same data it's graded on is hindsight. Picked: 20/200.

Holding today: XLY 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.40 pts/mopts per month vs SPY
t-stat-1.7395% range -0.86 to +0.05
Months124Sep 1, 2016 – Dec 3, 2026
CAGR9.6%SPY 14.5%
Max drawdown-32.8%SPY -33.8%
Last 12 months-0.06 pts12 months, summed

Their backtest vs the rerun

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

Grid Search Parameter OptimizationSPY
20172019202120232025

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

Year by year

2016
+0.09 pts/mo4
2017
-0.32 pts/mo12
2018
+0.26 pts/mo12
2019
-0.90 pts/mo12
2020
-1.58 pts/mo12
2021
-0.10 pts/mo12
2022
+1.27 pts/mo12
2023
-1.23 pts/mo12
2024
-0.72 pts/mo12
2025
-0.88 pts/mo12
2026
-0.00 pts/mo12