← The library

quants.md

Market SMA Cross

Fragile

“Buy SMA(20) crossing above SMA(50), sell on reverse”

As tested: SPY, QQQ and IWM: buy 18% of the account at the next open when the 20-day average crosses over the 50-day; sell the whole position on the cross back.

Edge per month-0.71 pts/mopts per month vs SPY
t-stat-2.2995% range -1.32 to -0.10
Months70Sep 1, 2016 – Dec 3, 2026
Win rate59%closed green
CAGR6.1%SPY 14.5%
Max drawdown-13.1%SPY -33.8%
Last 12 months-5.08 pts12 months, summed

Their backtest vs the rerun

WindowCAGRSharpeMax DDWin rateProfit factor
quants.md2001–2026+3.3%0.21-16.4%52%2.18
Rerun2016–2026+6.1%0.55-13.1%59%3.30

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

Market SMA CrossSPY
20172019202120232025

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

Year by year

2016
-0.77 pts/mo4
2017
-0.93 pts/mo12
2018
+0.69 pts/mo12
2019
-1.80 pts/mo12
2020
-0.37 pts/mo12
2021
-1.73 pts/mo12
2022
+0.56 pts/mo12
2023
-1.06 pts/mo12
2024
-1.35 pts/mo12
2025
-0.67 pts/mo12
2026
-0.42 pts/mo12