EMA 12/26 Trend on BND
Vanguard Total Bond Market ETF — Vanguard's total US bond market fund. Backtest 2021-01-04 → 2026-07-17, $10,000 starting capital, computed by the same engine that runs live DeployQuant strategies.
Year by year
| Year | EMA 12/26 trend | buy & hold |
|---|---|---|
| 2021 | −0.7% | −1.7% |
| 2022 | 0.5% | −12.8% |
| 2023 | 5.2% | 5.5% |
| 2024 | −0.5% | 1.3% |
| 2025 | 3.4% | 7.2% |
| 2026 | −1.2% | 0.1% |
The rules
Hold while the 12-day exponential average is above the 26-day — the MACD's skeleton as a position switch.
- WHEN the market opens · IF not invested AND EMA(12) > EMA(26) · THEN buy with 98% of the sleeve
- 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 heart of the MACD indicator. Exponential averages weight recent days more heavily than simple averages, so this crossover reacts faster than an SMA pair of the same length. As a plain long/flat switch it turns the MACD's core idea into a position you can actually 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.
Build it from blocks (or type it in English), backtest it on 5.5 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 BND?
Over 2021-01-04–2026-07-17, EMA 12/26 trend on BND returned 1.2% annualized vs −0.3% for buy-and-hold — it beat buy-and-hold by 1.5% per year, with a maximum drawdown 12.7 points shallower than holding (5.0% vs 17.7%).
How many trades did it make?
21 completed round trips over 5.5 years (42 fills), with 38% of round trips closing profitably.
Is this the same as trading MACD signals?
It's 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 — simpler, and fully expressible in blocks.
Related
Backtests are hypothetical, computed by DeployQuant's engine on minute-resolution consolidated US market data (2021-01-04 to 2026-07-17, $10,000 starting capital, no margin, fees and slippage not modeled) and do not guarantee future results. Nothing on this page is investment advice. Live trading involves risk of loss.