Learn › Strategies › EMA 12/26 Trend › BND

EMA 12/26 Trend on BND

Vanguard Total Bond Market ETF: Vanguard's total US bond market fund. 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 BND turned $10,000 into $10,602 (6.0% total, 1.0% CAGR): it beat buy-and-hold by 1.8% per year, with a maximum drawdown 12.7 points shallower than holding (5.0% vs 17.6%).
1.0%CAGR
−0.8%buy & hold CAGR
−5.0%max drawdown
0.29Sharpe ratio
22round trips
36%win rate
■ EMA 12/26 trend   ■ buy & hold, $10,000 invested 2021-01-04

Year by year

YearEMA 12/26 trendbuy & hold
2021−0.7%−1.7%
20220.4%−12.8%
20235.4%5.5%
2024−0.5%1.3%
20253.1%6.9%
2026−1.6%−2.6%

Month by month

YearJanFebMarAprMayJunJulAugSepOctNovDec
20210.0%0.0%0.0%0.0%−0.3%0.9%1.1%−0.2%−0.9%0.0%−1.0%−0.4%
20220.0%0.0%0.0%0.0%0.0%0.0%2.5%−2.2%0.0%0.0%1.0%−0.8%
20233.3%−1.8%0.1%0.6%−1.6%0.0%−0.8%0.0%0.0%0.0%2.1%3.5%
2024−0.1%−1.8%−0.9%−0.5%0.3%0.9%2.3%1.4%1.3%−1.3%0.0%−1.9%
2025−0.2%2.1%0.0%−1.0%−1.4%1.2%−0.3%1.1%1.1%0.6%0.3%−0.5%
20260.2%1.6%−1.6%−0.5%−0.0%0.1%−0.7%−0.4%−0.3%0.0%––

Every trade

EMA 12/26 trend on BND made 22 closed round trips, an average hold of 51 days, an average winner of 2.06%, an average loser of −0.73%, a profit factor of 1.58, a longest losing streak of 4. It held a position at the close on 53.0% of trading days.

EntryEntry priceExitExit priceReturnDays held
2021-04-16$71.382021-05-18$71.22−0.2%32
2021-05-25$71.522021-09-28$72.211.0%126
2021-11-08$72.572021-11-16$71.82−1.0%8
2021-12-03$72.332021-12-30$72.05−0.4%27
2022-07-14$64.592022-08-23$64.740.2%40
2022-11-16$62.512023-02-15$63.521.6%91
2023-03-16$64.622023-05-19$64.03−0.9%64
2023-07-19$64.492023-07-31$63.99−0.8%12
2023-11-08$62.562024-02-14$64.863.7%98
2024-03-07$65.932024-03-20$65.31−0.9%13
2024-03-22$65.722024-04-04$65.41−0.5%13
2024-05-10$65.062024-10-09$68.335.0%152
2024-12-03$68.402024-12-19$67.04−2.0%16
2025-01-30$67.612025-04-14$68.130.8%74
2025-04-29$69.082025-05-14$68.26−1.2%15
2025-06-05$68.992025-11-19$71.663.9%167
2025-11-24$71.912025-12-16$71.64−0.4%22
2025-12-17$71.742026-03-13$72.000.4%86
2026-04-15$72.412026-05-04$71.98−0.6%19
2026-06-03$72.052026-06-09$71.92−0.2%6
2026-06-12$72.202026-07-13$71.89−0.4%31
2026-08-26$72.062026-09-02$71.56−0.7%7

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
2024-09-162025-06-06−5.0%2632025-10-28144
2023-02-022023-11-09−4.6%2802023-12-1334
2023-12-272024-05-29−4.3%1542024-08-0265

Buy-and-hold's deepest drawdown ran from 2021-01-04 to 2022-10-20 and reached −17.6%.

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)1.0%−5.0%$10,6020.29
5 basis points0.7%−5.3%$10,3790.19
10 basis points0.3%−5.7%$10,1550.09

Changing the parameters

VersionCAGRMax drawdownRound tripsWin rateFinal value
Published rules1.0%−5.0%2236%$10,602
EMA 8/210.7%−5.7%3543%$10,422
EMA 20/500.9%−4.5%1250%$10,542
EMA 12/501.0%−5.3%1932%$10,607

How BND behaved

MeasureBND
Data in this test2021-01-04 to 2026-10-02 (1444 sessions)
Total return, buy and hold−4.7%
Annualized volatility5.8%
Deepest drawdown−18.1% (2021-01-04 to 2022-10-20)
Up days48.9%
Average daily range0.34%
Average overnight gap0.20%
Correlation to SPY0.21
Correlation to QQQ0.21
Correlation to TLT0.92
Sessions above the 200-day average64.3%
Crossings of the 200-day average42
Falls of 10% or more from a 20-day high0

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 BND 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 BND?

Over 2021-01-04 to 2026-10-02, EMA 12/26 trend on BND returned 1.0% annualized vs −0.8% for buy-and-hold: it beat buy-and-hold by 1.8% per year, with a maximum drawdown 12.7 points shallower than holding (5.0% vs 17.6%).

How many trades did it make?

22 completed round trips over 5.7 years (44 fills), with 36% 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 BND12 templates compared RSI(14) Mean Reversion on BNDsame ETF, different rulesRSI(2) Dip Snapback on BNDsame 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.