EdgeStacker
Library
Trend · SPY · 1D

Does SMA 20/50 cross actually work on SPY? We tested it

We ran SMA 20/50 cross on SPY through walk-forward testing and a 100-run random-entry gauntlet. 4 of 4 unseen periods positive. Beat 86 of 100 random-entry runs.

WALK-FORWARD VERIFIED EDGESTACKER ENGINE
Return +103.4%
Win rate 61.9%
Max drawdown −29.6%
Trades 21
Sharpe 0.83
Equity curve

Equity curve over Aug 2016 to Jul 2026. Hover any point for its value. Turn on buy and hold to compare.

PeriodWindowReturnSharpeTrades
1 Aug 2018 to Jul 2020 +11.3% 0.60 4
2 Jul 2020 to Jul 2022 +6.8% 0.41 3
3 Jul 2022 to Jul 2024 +8.6% 0.51 6
4 Jul 2024 to Jul 2026 +23.5% 1.30 4
4 of 4 periods positive. Mean Sharpe 0.71. Worst period +6.8%.
Market matrix
Edge held on 9 of 28

The same rules, tested on 28 tickers. Edge held on 9. We ship it on those.

SPY SHIPPED
86/100 EDGE
MU
100/100 EDGE
QQQ
97/100 EDGE
GLD
97/100 EDGE
GOOGL
96/100 EDGE
META
93/100 EDGE
NVDA
92/100 EDGE
AVGO
76/100 EDGE
AMD
76/100 EDGE
Show every ticker we tested
MSFT
84/100 NONE
NFLX
84/100 NONE
COIN
79/100 NONE
AAPL
74/100 NONE
TSLA
72/100 NONE
MARA
70/100 NONE
JPM
70/100 NONE
DIA
67/100 NONE
RIOT
60/100 NONE
AMZN
51/100 NONE
SOFI
47/100 NONE
IWM
46/100 NONE
MSTR
45/100 NONE
UBER
42/100 NONE
PLTR
34/100 NONE
XOM
20/100 NONE
SMCI
11/100 NONE
BA
0/100 NONE
HOOD
too new TOO NEW
The rules
Entrywhen SMA of close over 20 bars crosses above SMA of close over 50 bars
Exitwhen a signal fires (SMA of close over 20 bars crosses below SMA of close over 50 bars)
Sizing**Position size:** no fixed stop distance to size against. This strategy exits on signal only. Size by conviction, or add a hard stop for a size-by-risk number.
Diagnosis

This strategy made money overall, turning a 103% gain across 21 trades, but the ride was very lumpy. The worst stretch was a brutal 29.64% drawdown that lasted from September 2021 to April 2023, which is a long and painful period to sit through. The entry timing is doing the heavy lifting here, since your real entries outperformed 86% of random entry attempts, meaning the signal itself is strong at getting you in at good moments. The edge was consistent across all four test periods, so the profit didn't come from just one lucky streak. The 61.9% win rate and average trade gain of 3.76% suggest the strategy wins more often than it loses, but that single massive drawdown shows it can get stuck in a long losing trend.

Run this on your own account.

Sign up free. EdgeStacker runs a fresh backtest for you, then alerts you on the Today screen when the setup fires.

Test it yourself, free
Backtested results, not live trading returns. Fees and slippage included. Not investment advice.