← The library

quants.md

Quarterly TE Cost Gate

Fragile

“Momentum with tracking-error trigger and turnover budget”

As tested: Each quarter-end, the top 3 ETFs by 6-month return at a third each (no positive filter), skipping any rebalance that would push the trailing year's turnover past 4×.

Holding today: SPY 33% · DBC 31% · EEM 31%

Their tracking-error trigger never runs in the example (it needs benchmark returns the file doesn't pass), so it's left out here too.

Edge per month-0.47 pts/mopts per month vs SPY
t-stat-1.5195% range -1.08 to +0.14
Months124Sep 1, 2016 – Dec 3, 2026
CAGR8.8%SPY 14.5%
Max drawdown-25.5%SPY -33.8%
Last 12 months-8.70 pts12 months, summed

Their backtest vs the rerun

WindowCAGRSharpeMax DDWin rateProfit factor
quants.md2007–2026+7.1%0.44-25.5%66%2.67
Rerun2016–2026+8.8%0.53-25.5%——

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

Quarterly TE Cost GateSPY
20172019202120232025

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

Year by year

2016
-2.02 pts/mo4
2017
+0.31 pts/mo12
2018
-0.44 pts/mo12
2019
-1.34 pts/mo12
2020
-1.36 pts/mo12
2021
-0.18 pts/mo12
2022
+1.05 pts/mo12
2023
-1.28 pts/mo12
2024
-0.96 pts/mo12
2025
+0.75 pts/mo12
2026
-0.73 pts/mo12