Learn › Strategies › EMA 12/26 Trend › IGIB

EMA 12/26 Trend on IGIB

iShares 5-10 Year Investment Grade Corporate Bond ETF: investment-grade corporate credit. 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 IGIB turned $10,000 into $11,424 (14.2% total, 2.4% CAGR): it beat buy-and-hold by 2.1% per year, with a maximum drawdown 14.8 points shallower than holding (5.3% vs 20.1%).
2.4%CAGR
0.2%buy & hold CAGR
−5.3%max drawdown
0.58Sharpe ratio
20round trips
35%win rate
■ EMA 12/26 trend   ■ buy & hold, $10,000 invested 2021-01-04

Year by year

YearEMA 12/26 trendbuy & hold
20211.3%−1.6%
20221.5%−13.6%
20237.3%8.9%
20241.5%3.4%
20254.7%9.3%
2026−2.5%−3.3%

Month by month

YearJanFebMarAprMayJunJulAugSepOctNovDec
20210.0%−0.6%0.0%0.3%0.6%1.1%1.1%−0.3%−0.6%0.0%−0.4%0.0%
2022−0.5%0.0%0.0%0.0%0.0%0.0%2.7%−2.2%0.0%0.0%2.2%−0.7%
20234.2%−2.4%1.2%0.7%−1.6%0.4%−1.2%−1.1%0.0%0.0%3.1%4.0%
20240.0%−1.1%0.3%−1.5%0.5%0.7%2.5%1.6%1.6%−1.2%0.0%−1.9%
2025−0.1%1.9%0.0%−2.4%0.4%1.8%0.1%1.3%1.2%0.3%0.1%−0.1%
20260.2%1.3%−1.8%−0.4%−0.6%0.1%−0.8%−0.5%−0.2%0.0%––

Every trade

EMA 12/26 trend on IGIB made 20 closed round trips, an average hold of 59 days, an average winner of 3.43%, an average loser of −0.75%, a profit factor of 2.36, a longest losing streak of 5. It held a position at the close on 56.1% of trading days.

EntryEntry priceExitExit priceReturnDays held
2021-02-11$49.332021-02-16$49.02−0.6%5
2021-04-19$48.022021-09-27$49.162.4%161
2021-11-10$48.992021-11-11$48.78−0.4%1
2021-12-14$48.732022-01-05$48.49−0.5%22
2022-07-18$42.832022-08-25$43.000.4%38
2022-11-14$41.262023-02-16$42.653.4%94
2023-03-20$43.132023-05-18$43.250.3%59
2023-06-29$43.282023-07-06$42.85−1.0%7
2023-07-17$43.572023-08-04$43.16−0.9%18
2023-11-08$42.632024-02-15$45.276.2%99
2024-03-06$45.592024-04-11$45.03−1.2%36
2024-05-08$45.372024-10-11$48.096.0%156
2024-12-03$48.232024-12-19$47.31−1.9%16
2025-01-29$47.772025-04-11$47.41−0.8%72
2025-04-29$48.772025-11-17$51.395.4%202
2025-11-25$51.832026-03-13$51.79−0.1%108
2026-04-14$52.172026-05-15$51.69−0.9%31
2026-06-01$52.002026-06-09$51.87−0.3%8
2026-06-12$52.112026-07-14$51.87−0.5%32
2026-08-27$51.972026-09-01$51.62−0.7%5

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
2023-02-022023-11-09−5.3%2802023-12-1334
2024-10-012025-05-21−5.0%2322025-09-04106
2026-02-272026-09-01−3.9%186not yet–

Buy-and-hold's deepest drawdown ran from 2021-08-03 to 2022-10-20 and reached −20.1%.

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)2.4%−5.3%$11,4240.58
5 basis points2.0%−5.7%$11,2040.50
10 basis points1.6%−6.1%$10,9870.42

Changing the parameters

VersionCAGRMax drawdownRound tripsWin rateFinal value
Published rules2.4%−5.3%2035%$11,424
EMA 8/211.7%−5.9%2733%$10,992
EMA 20/501.2%−6.4%1354%$10,688
EMA 12/501.6%−7.0%1644%$10,932

How IGIB behaved

MeasureIGIB
Data in this test2021-01-04 to 2026-10-02 (1444 sessions)
Total return, buy and hold1.3%
Annualized volatility6.3%
Deepest drawdown−20.6% (2021-08-03 to 2022-10-20)
Up days50.0%
Average daily range0.37%
Average overnight gap0.21%
Correlation to SPY0.35
Correlation to QQQ0.34
Correlation to TLT0.84
Sessions above the 200-day average66.3%
Crossings of the 200-day average52
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 IGIB 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 IGIB?

Over 2021-01-04 to 2026-10-02, EMA 12/26 trend on IGIB returned 2.4% annualized vs 0.2% for buy-and-hold: it beat buy-and-hold by 2.1% per year, with a maximum drawdown 14.8 points shallower than holding (5.3% vs 20.1%).

How many trades did it make?

20 completed round trips over 5.7 years (40 fills), with 35% 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 IGIB12 templates compared RSI(14) Mean Reversion on IGIBsame ETF, different rulesRSI(2) Dip Snapback on IGIBsame 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.