← The library

quants.md

Signal Change Defensive

Fragile

“SPY > SMA(200) → risk-on ETFs, else defensive; on signal change”

As tested: While SPY closes above its 200-day average: SPY, EFA, EEM, DBC and VNQ at 20% each. Below it: TLT, IEF and GLD at a third each. Trades only when the regime flips.

Holding today: EFA 19% · SPY 19% · DBC 19% · EEM 19% · VNQ 19%

Edge per month-0.66 pts/mopts per month vs SPY
t-stat-2.4495% range -1.18 to -0.13
Months123Oct 20, 2016 – Dec 3, 2026
CAGR6.8%SPY 14.8%
Max drawdown-24.0%SPY -33.8%
Last 12 months+0.11 pts12 months, summed

Their backtest vs the rerun

WindowCAGRSharpeMax DDWin rateProfit factor
quants.md2007–2026+4.5%0.26-24.6%41%1.64
Rerun2016–2026+6.8%0.42-24.0%——

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

Signal Change DefensiveSPY
20172019202120232025

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

Year by year

2016
-1.32 pts/mo3
2017
-0.29 pts/mo12
2018
-0.19 pts/mo12
2019
-1.56 pts/mo12
2020
-0.87 pts/mo12
2021
-0.47 pts/mo12
2022
-0.23 pts/mo12
2023
-1.42 pts/mo12
2024
-1.21 pts/mo12
2025
-0.13 pts/mo12
2026
+0.01 pts/mo12