← The library

quants.md

MACD Trend

Fragile

“Long while MACD is above its signal line”

As tested: Each sector ETF is held while MACD (12, 26) is above its 9-day signal line; 1/N capped at 25%, daily.

Holding today: XLK 16% · XLB 16% · XLI 16% · XLY 16% · XLU 16% · XLE 16%

Edge per month-0.48 pts/mopts per month vs SPY
t-stat-1.7295% range -1.02 to +0.07
Months124Sep 1, 2016 – Dec 3, 2026
CAGR8.7%SPY 14.5%
Max drawdown-14.5%SPY -33.8%
Last 12 months-0.02 pts12 months, summed

Their backtest vs the rerun

WindowCAGRSharpeMax DDWin rateProfit factor
quants.md2000–2026+4.1%0.22-35.6%63%1.24
Rerun2016–2026+8.7%0.59-14.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

MACD TrendSPY
20172019202120232025

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

Year by year

2016
-0.80 pts/mo4
2017
-0.88 pts/mo12
2018
+0.04 pts/mo12
2019
-0.69 pts/mo12
2020
-0.48 pts/mo12
2021
-0.65 pts/mo12
2022
+1.77 pts/mo12
2023
-1.31 pts/mo12
2024
-0.88 pts/mo12
2025
-1.60 pts/mo12
2026
-0.00 pts/mo12