Learn › Strategies › EMA 12/26 Trend › SH

EMA 12/26 Trend on SH

ProShares Short S&P500: -1x daily S&P 500, a simple index hedge. Backtest 2021-01-04 to 2026-10-02, $10,000 starting capital, computed by the same engine that runs live DeployQuant strategies.

Result: EMA 12/26 trend on SH turned $10,000 into $7,955 (−20.4% total, −3.9% CAGR): it beat buy-and-hold by 6.1% per year, with a maximum drawdown 22.6 points shallower than holding (24.6% vs 47.2%).
−3.9%CAGR
−10.0%buy & hold CAGR
−24.6%max drawdown
-0.28Sharpe ratio
20round trips
25%win rate
■ EMA 12/26 trend   ■ buy & hold, $10,000 invested 2021-01-04

Year by year

YearEMA 12/26 trendbuy & hold
2021−3.0%−24.6%
20221.1%17.4%
2023−2.4%−14.5%
2024−6.4%−13.1%
2025−2.4%−11.0%
2026−9.0%−8.4%

Month by month

YearJanFebMarAprMayJunJulAugSepOctNovDec
20210.0%0.0%0.0%0.0%0.0%0.0%0.0%0.0%1.5%−4.4%0.0%0.0%
20220.8%2.5%−3.0%2.2%−0.9%3.5%−5.5%0.0%9.2%−6.1%0.0%−0.7%
2023−2.7%0.2%−3.0%0.1%0.0%0.0%0.0%−1.4%5.6%2.8%−3.6%0.0%
20240.0%0.0%0.0%0.8%−3.4%0.0%−0.8%−1.4%−1.2%0.0%0.0%−0.6%
2025−3.4%0.2%6.1%−0.3%−1.8%0.0%0.0%0.0%0.0%0.0%−3.1%0.3%
20260.0%−2.6%5.4%−5.2%0.0%−1.3%0.1%−3.7%−1.9%0.1%––

Every trade

EMA 12/26 trend on SH made 20 closed round trips and one position still open at the end of the test, an average hold of 31 days, an average winner of 2.26%, an average loser of −2.28%, a profit factor of 0.33, a longest losing streak of 6. It held a position at the close on 29.6% of trading days.

EntryEntry priceExitExit priceReturnDays held
2021-09-22$50.292021-10-19$48.74−3.1%27
2022-01-20$47.652022-03-23$47.750.2%62
2022-04-25$50.332022-06-08$50.901.1%44
2022-06-10$53.262022-07-22$52.16−2.1%42
2022-09-01$52.942022-10-28$54.322.6%57
2022-12-20$54.222023-01-13$52.34−3.5%24
2023-02-28$52.292023-04-03$50.86−2.7%34
2023-08-16$48.182023-11-10$49.723.2%86
2024-04-16$44.132024-05-10$42.95−2.7%24
2024-07-29$41.692024-08-20$40.75−2.3%22
2024-09-11$41.802024-09-12$41.29−1.2%1
2024-12-23$39.262024-12-26$38.75−1.3%3
2024-12-31$39.422025-01-24$38.31−2.8%24
2025-02-26$39.482025-05-02$41.134.2%65
2025-11-19$36.192025-12-02$35.13−2.9%13
2026-02-06$35.412026-02-11$34.64−2.2%5
2026-02-13$35.432026-04-14$35.23−0.6%60
2026-06-29$33.172026-07-01$32.82−1.1%2
2026-07-27$32.912026-08-05$31.62−3.9%9
2026-09-14$32.572026-09-23$31.93−2.0%9
2026-10-02$32.09open–0.1%–

Prices are adjusted for splits and dividends, so they sit below the quotes printed at the time. An open position is marked at the last close.

Largest drawdowns

PeakLow pointDepthDays to lowRecoveredDays to recover
2022-06-162026-09-21−24.6%1558not yet–
2022-03-082022-05-04−8.9%572022-06-1643
2022-01-272022-02-09−5.8%132022-02-2314

Buy-and-hold's deepest drawdown ran from 2021-01-04 to 2026-08-13 and reached −47.2%.

With trading costs

The headline run fills at the bar price. These runs charge slippage on every fill.

Slippage per fillCAGRMax drawdownFinal valueSharpe
None (headline)−3.9%−24.6%$7,955-0.28
5 basis points−4.2%−25.8%$7,797-0.31
10 basis points−4.6%−26.9%$7,640-0.34

Changing the parameters

VersionCAGRMax drawdownRound tripsWin rateFinal value
Published rules−3.9%−24.6%2025%$7,955
EMA 8/21−3.8%−23.7%2631%$8,022
EMA 20/50−6.7%−35.2%1323%$6,737
EMA 12/50−5.8%−31.4%1513%$7,119

How SH behaved

MeasureSH
Data in this test2021-01-04 to 2026-10-02 (1444 sessions)
Total return, buy and hold−47.4%
Annualized volatility16.4%
Deepest drawdown−48.2% (2021-01-04 to 2026-08-13)
Up days45.5%
Average daily range1.16%
Average overnight gap0.44%
Correlation to SPY-1.00
Correlation to QQQ-0.94
Correlation to TLT-0.07
Sessions above the 200-day average21.9%
Crossings of the 200-day average50
Falls of 10% or more from a 20-day high6

The rules

Hold while the 12-day exponential average is above the 26-day, the core of the MACD used as a position switch.

  1. WHEN the market opens · IF not invested AND EMA(12) > EMA(26) · THEN buy with 98% of the sleeve
  2. WHEN the market opens · IF invested AND EMA(12) < EMA(26) · THEN sell the whole position

The 12/26 exponential moving average pair is the core of the MACD indicator. Exponential averages weight recent days more than simple averages, so this crossover reacts faster than an SMA pair of the same length. Used as a long/flat switch, it gives you a position you can hold and measure.

Good for: traders who like MACD logic but want it expressed as a simple, testable long/flat rule.
Watch out: faster reaction means more trades and more whipsaws than a 50/200 cross; check the trade count on each backtest page.

Run EMA 12/26 trend on SH yourself, free →

Build it from blocks (or type it in English), backtest it on 5.7 years of minute data in seconds, tweak any parameter, then paper trade it on live data. No card, no broker needed to start.

Frequently asked questions

Did EMA 12/26 trend beat buy-and-hold on SH?

Over 2021-01-04 to 2026-10-02, EMA 12/26 trend on SH returned −3.9% annualized vs −10.0% for buy-and-hold: it beat buy-and-hold by 6.1% per year, with a maximum drawdown 22.6 points shallower than holding (24.6% vs 47.2%).

How many trades did it make?

20 completed round trips over 5.7 years (41 fills), with 25% of round trips closing profitably.

Is this the same as trading MACD signals?

It uses the MACD's underlying trend component. Classic MACD trades the signal-line crossover of the 12/26 spread. This template trades the spread's sign directly, which is simpler and can be built fully in blocks.

Related

EMA 12/26 Trend on all 59 ETFsfull results table All strategies on SH12 templates compared RSI(14) Mean Reversion on SHsame ETF, different rulesRSI(2) Dip Snapback on SHsame ETF, different rules

Backtests are hypothetical, computed by DeployQuant's engine on minute-resolution consolidated US market data (2021-01-04 to 2026-10-02, $10,000 starting capital, no margin, no fees or slippage in the headline run; buy-and-hold puts 98% of the account in at the first open, as the templates do) and do not guarantee future results. Nothing on this page is investment advice. Live trading involves risk of loss.