MACD crosses zero: does it work after costs?
On SPY, holding did better: +289.4% vs +149.5% for the rule after costs.
Over the last 10 years on SPY (2016-11-30 to 2026-11-30), this rule made +149.5% after modelled costs, against +289.4% for simply holding SPY, across 34 trades. It ended ahead of holding on 2 of the 30 tickers in the table. Run on 2026-12-01 with the estockes strategy test; a historical simulation, not advice.
Test this rule on SPYThe rule on 30 liquid tickers, closest to holding first
Across the 30 tickers with a result, the rule came closest to holding on DIS (+87.4% against +40.8%, 46.6 pts ahead) and furthest from it on NVDA (+962.6% against +6,634%, 5,672 pts behind). It made 1221 trades in all; 0 of the 30 runs had fewer than 30 trades, too few to judge on their own. Luck Test: could be luck on 4, looks like luck on 26.
| Ticker | Verdict | Trades | After costs | Holding | Luck Test |
|---|---|---|---|---|---|
| DIS | Passed basic checks | 41 | +87.4% | +40.8% | could be luck, beat 83% |
| TLT | Only in the past | 44 | +18.7% | -9.5% | could be luck, beat 84% |
| GLD | Holding did better | 40 | +161.1% | +197.2% | looks like luck, beat 76% |
| XOM | Holding did better | 40 | +147.4% | +186.8% | looks like luck, beat 67% |
| BA | Lost money | 44 | -40.0% | +22.5% | looks like luck, beat 20% |
| IWM | Holding did better | 40 | +65.3% | +135.6% | looks like luck, beat 39% |
| DIA | Holding did better | 33 | +105.1% | +220.6% | looks like luck, beat 26% |
| XLV | Holding did better | 40 | +96.2% | +215.2% | looks like luck, beat 22% |
| META | Only in the past | 35 | +308.1% | +440.1% | looks like luck, beat 78% |
| INTC | Lost money | 53 | -24.8% | +109.0% | looks like luck, beat 16% |
| SPY | Holding did better | 34 | +149.5% | +289.4% | looks like luck, beat 12% |
| XLF | Only in the past | 46 | +38.5% | +203.6% | looks like luck, beat 13% |
| KO | Holding did better | 44 | +44.1% | +221.5% | looks like luck, beat 10% |
| NFLX | Only in the past | 37 | +216.5% | +426.3% | looks like luck, beat 67% |
| XLE | Only in the past | 51 | +54.2% | +267.9% | looks like luck, beat 30% |
| QQQ | Holding did better | 34 | +247.5% | +500.3% | looks like luck, beat 26% |
| AMZN | Only in the past | 38 | +262.3% | +589.5% | looks like luck, beat 42% |
| JPM | Holding did better | 40 | +92.7% | +421.7% | looks like luck, beat 5% |
| WMT | Holding did better | 40 | +199.7% | +554.5% | looks like luck, beat 53% |
| GOOGL | Holding did better | 41 | +305.1% | +668.1% | looks like luck, beat 38% |
| V | Holding did better | 42 | +76.8% | +494.9% | looks like luck, beat 5% |
| XLK | Holding did better | 35 | +203.1% | +732.0% | looks like luck, beat 23% |
| COST | Holding did better | 41 | +232.9% | +774.0% | looks like luck, beat 30% |
| MSFT | Holding did better | 38 | +256.3% | +806.1% | looks like luck, beat 22% |
| SMH | Holding did better | 40 | +469.1% | +1,288% | looks like luck, beat 28% |
| AAPL | Holding did better | 38 | +434.9% | +1,295% | looks like luck, beat 36% |
| TSLA | Holding did better | 42 | +1,557% | +3,177% | could be luck, beat 90% |
| AVGO | Holding did better | 42 | +445.9% | +2,344% | looks like luck, beat 18% |
| AMD | Holding did better | 44 | +1,227% | +4,701% | could be luck, beat 80% |
| NVDA | Only in the past | 44 | +962.6% | +6,634% | looks like luck, beat 33% |
How the rule works
MACD is the 12-day exponential average minus the 26-day one, so MACD crossing above zero is the same day the 12-day EMA crosses above the 26-day EMA. The test enters at the next open after that cross and exits after MACD falls back below zero.
Why costs matter
MACD crosses come every few weeks, and many reverse within days, so each reversal pays costs twice. A filter (below zero, above the 200-day average) cuts the number of trades, which cuts costs, but also skips some of the moves.
Every result here is after modelled costs: the engine charges commission and slippage on each entry and exit, set by the ticker's liquidity (on SPY: 0 bp commission, 2 bp slippage per side), and fills at the next session's open, never at the signal's close. Holding is measured on the same total-return prices with no costs.
Limits of this test
- It is a historical simulation of 10 years of daily data, not a forecast and not advice. A rule that did well in this window can do badly in the next.
- Survivorship: only tickers listed today can be tested, so companies that failed or were delisted are missing, which flatters any rule tested on stocks.
- The recent window matters: ten years that include one long rally favour holding, and a different decade could rank the rule differently. Run the test on another window to see.
- Fixed settings for every ticker. Changing the period or the exit changes the result, and trying many settings until one looks good is how false results are made. That is also why the Luck Test bar rises with the number of results shown.
Related rules
- MACD crosses its signal line
- MACD crosses its signal line below zero
- MACD cross above the 200-day average
- RSI(14) below 30
- All tested rules
- The scoreboard: 90 of 1,260 tests ended ahead of holding, and why
- Strategies we tested
Every rule on one ticker
Questions
MACD crosses zero: does this rule work?
Over the last 10 years on SPY (2016-11-30 to 2026-11-30), this rule made +149.5% after modelled costs, against +289.4% for simply holding SPY, across 34 trades. It ended ahead of holding on 2 of the 30 tickers in the table. Run on 2026-12-01 with the estockes strategy test; a historical simulation, not advice.
MACD crosses zero: how does the rule work?
MACD is the 12-day exponential average minus the 26-day one, so MACD crossing above zero is the same day the 12-day EMA crosses above the 26-day EMA. The test enters at the next open after that cross and exits after MACD falls back below zero.
Why do trading costs matter here?
MACD crosses come every few weeks, and many reverse within days, so each reversal pays costs twice. A filter (below zero, above the 200-day average) cuts the number of trades, which cuts costs, but also skips some of the moves.
How was it tested?
Each number comes from one run of the estockes strategy test (public API), fetched on 2026-12-01: daily bars, signal on the close, fill at the next open, costs on every fill, idle cash earning the 3-month Treasury bill rate, compared with holding the same ticker over the same window.