Learn › Strategies › 20-Day Momentum + Trailing Stop › AGG

20-Day Momentum + Trailing Stop on AGG

iShares Core U.S. Aggregate Bond ETF: the broad US investment-grade bond market in one fund. Backtest 2021-01-04 to 2026-10-02, $10,000 starting capital, computed by the same engine that runs live DeployQuant strategies.

Result: momentum breakout on AGG turned $10,000 into $10,000 (0.0% total, 0.0% CAGR): it beat buy-and-hold by 0.8% per year, with a maximum drawdown 17.6 points shallower than holding (0.0% vs 17.6%).
0.0%CAGR
−0.8%buy & hold CAGR
−0.0%max drawdown
0.00Sharpe ratio
0round trips
■ momentum breakout   ■ buy & hold, $10,000 invested 2021-01-04

Year by year

Yearmomentum breakoutbuy & hold
20210.0%−1.6%
20220.0%−12.7%
20230.0%5.5%
20240.0%1.3%
20250.0%7.0%
20260.0%−2.7%

Month by month

YearJanFebMarAprMayJunJulAugSepOctNovDec
20210.0%0.0%0.0%0.0%0.0%0.0%0.0%0.0%0.0%0.0%0.0%0.0%
20220.0%0.0%0.0%0.0%0.0%0.0%0.0%0.0%0.0%0.0%0.0%0.0%
20230.0%0.0%0.0%0.0%0.0%0.0%0.0%0.0%0.0%0.0%0.0%0.0%
20240.0%0.0%0.0%0.0%0.0%0.0%0.0%0.0%0.0%0.0%0.0%0.0%
20250.0%0.0%0.0%0.0%0.0%0.0%0.0%0.0%0.0%0.0%0.0%0.0%
20260.0%0.0%0.0%0.0%0.0%0.0%0.0%0.0%0.0%0.0%––

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)0.0%−0.0%$10,0000.00
5 basis points0.0%−0.0%$10,0000.00
10 basis points0.0%−0.0%$10,0000.00

Changing the parameters

VersionCAGRMax drawdownRound tripsWin rateFinal value
Published rules0.0%−0.0%0–$10,000
5% trailing stop0.0%−0.0%0–$10,000
15% trailing stop0.0%−0.0%0–$10,000
20% return entry0.0%−0.0%0–$10,000

How AGG behaved

MeasureAGG
Data in this test2021-01-04 to 2026-10-02 (1444 sessions)
Total return, buy and hold−4.5%
Annualized volatility5.8%
Deepest drawdown−18.0% (2021-01-04 to 2022-10-20)
Up days49.3%
Average daily range0.35%
Average overnight gap0.21%
Correlation to SPY0.22
Correlation to QQQ0.21
Correlation to TLT0.92
Sessions above the 200-day average63.6%
Crossings of the 200-day average50
Falls of 10% or more from a 20-day high0

The rules

Buy after a +10% four-week burst and let a 10% trailing stop manage the exit.

  1. WHEN the market opens · IF not invested AND the 20-day return > +10% · THEN buy with 98% of the sleeve
  2. WHILE invested · a managed trailing stop follows 10% below the position's high-water mark

Momentum entry, trailing-stop exit. A +10% gain over 20 sessions marks a burst of momentum. The template buys the strength and exits on a 10% trailing stop that ratchets up beneath the highest close and never moves down. There is no profit target, so winners run until the trail is hit.

Good for: high-momentum assets where trends extend, such as semiconductor and leveraged tech ETFs.
Watch out: buying strength means buying high; when a burst immediately reverses, the trail exits about 10% below the entry.

Run momentum breakout on AGG 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 momentum breakout beat buy-and-hold on AGG?

Over 2021-01-04 to 2026-10-02, momentum breakout on AGG returned 0.0% annualized vs −0.8% for buy-and-hold: it beat buy-and-hold by 0.8% per year, with a maximum drawdown 17.6 points shallower than holding (0.0% vs 17.6%).

How many trades did it make?

0 completed round trips over 5.7 years (0 fills).

How does the trailing stop work in the backtest?

The stop sits 10% below the highest price since entry and only ratchets up. When a bar trades through it, the position sells at the stop, or at the open if the price gaps below it. Trailing-stop exits can be backtested now; deploying them live is not available yet.

Related

20-Day Momentum + Trailing Stop on all 59 ETFsfull results table All strategies on AGG12 templates compared RSI(14) Mean Reversion on AGGsame ETF, different rulesRSI(2) Dip Snapback on AGGsame 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.