Learn › Strategies › Golden Cross (SMA 50/200) › AGG

Golden Cross (SMA 50/200) 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: golden cross on AGG turned $10,000 into $10,453 (4.5% total, 0.8% CAGR): it beat buy-and-hold by 1.6% per year, with a maximum drawdown 10.4 points shallower than holding (7.1% vs 17.6%).

The golden cross rule held AGG, the iShares Core U.S. Aggregate Bond ETF, with 98% of a $10,000 sleeve whenever the 50-day simple average sat above the 200-day average, and moved to cash when it dropped below. From 4 January 2021 to 2 October 2026 that produced $10,453, a total return of 4.53% and a CAGR of 0.78%. Buy-and-hold on AGG over the same dates ended at $9,559, a CAGR of -0.78%.

The rule beat holding by a small margin in return and a large margin in drawdown. Its worst peak-to-trough fall was 7.13%, against 17.57% for buy-and-hold. The Sharpe ratio was 0.22, against -0.11. Both of those numbers describe a fund that did very little. AGG's annualized volatility in this window was 5.82%, and a bond fund with that profile gives a trend rule little to capture.

The rule made 5 round trips and won 2 of them, a win rate of 40%. The winners averaged 4.44% and the losers averaged -1.37%, which gives a profit factor of 2.14. The strategy was invested on 57.3% of trading days. Most of the result comes from two long holds in 2024 to 2026, and most of the drawdown advantage comes from sitting in cash through 2022.

This is a hypothetical backtest of a daily-decision rule on one fund and one window of 5.74 years. The headline run has no fees or slippage, no margin, and fills on minute bars at the open. The cost runs below add 5 and 10 basis points per fill.

0.8%CAGR
−0.8%buy & hold CAGR
−7.1%max drawdown
0.22Sharpe ratio
5round trips
40%win rate
■ golden cross   ■ buy & hold, $10,000 invested 2021-01-04

Year by year

Yeargolden crossbuy & hold
20210.2%−1.6%
2022−1.6%−12.7%
2023−2.4%5.5%
20242.1%1.3%
20256.9%7.0%
2026−0.4%−2.7%

What each year did to the position

2021 returned 0.2% for the rule and -1.6% for buy-and-hold. The 50-day average only crossed above the 200-day on 19 October 2021, so the rule was in cash for the first nine months. The first trade bought at an adjusted price of $96.93. It earned 0.24% in October and 0.27% in November, then lost 0.34% in December as AGG slipped.

2022 is where the rule earned most of its edge. It returned -1.6% and buy-and-hold returned -12.7%. All of the loss came in January: the death cross fired and the position exited on 10 January 2022 at $95.50, a loss of 1.48% on a trade held 83 days. The rule then stayed in cash for every remaining month of 2022, and each monthly return reads 0.0%. AGG itself fell through the year, with a calendar-year return of -13.02%, and its worst days were 13 June, 26 September and 2 March. The rule missed all of them.

2023 reversed the picture. The rule returned -2.4% and buy-and-hold returned 5.5%, the one year where cash cost the rule most. The 50-day recrossed the 200-day on 7 February 2023, after the recovery from the October 2022 low was well under way, and the entry price was $86.52. The rule gave away the first leg of the rebound, which is the lag the strategy page lists as its main caveat. The trade then lost 2.51% over 196 days and exited on 22 August 2023.

2024 returned 2.1% against 1.3%. The rule re-entered on 4 January 2024 at $88.48 and held through the whole year. It captured the gain, and it also took the monthly swings, which were large relative to the fund: April lost 2.4% and October lost 2.46%.

2025 returned 6.9% against 7.0%, so the two were level. The position carried over from 2024 until 25 February 2025, exited at $92.32 for a gain of 4.34% over 418 days, and re-entered on 6 March 2025 at $92.44. The short stretch in cash between the two positions accounts for the 0.1 point gap in the yearly comparison.

2026 returned -0.4% against -2.7% for buy-and-hold, with the year running to 2 October. The second 2025 position was sold on 27 July 2026 at $96.63 for 4.53%, the best trade in the run, and a new position entered on 6 August 2026 at $96.89. It was closed on 10 August at $96.77, four days later, for a loss of 0.12%. That last pair is a whipsaw, a cross that reversed within a week.

Across the six years the rule beat buy-and-hold in 2021, 2022, 2024 and 2026, trailed in 2023, and tied within a tenth of a point in 2025. The gap in 2022 was 11.1 points, and the gap in 2023 was -7.9 points. The sum of those two years is nearly the whole story of the comparison.

Month by month

YearJanFebMarAprMayJunJulAugSepOctNovDec
20210.0%0.0%0.0%0.0%0.0%0.0%0.0%0.0%0.0%0.2%0.3%−0.3%
2022−1.6%0.0%0.0%0.0%0.0%0.0%0.0%0.0%0.0%0.0%0.0%0.0%
20230.0%−1.8%2.6%0.6%−1.1%−0.3%−0.1%−2.3%0.0%0.0%0.0%0.0%
20240.7%−1.4%0.9%−2.4%1.6%0.9%2.3%1.4%1.3%−2.5%1.1%−1.6%
20250.5%1.6%0.5%0.4%−0.6%1.4%−0.3%1.2%1.1%0.6%0.6%−0.3%
20260.2%1.6%−1.7%0.2%0.3%0.2%−1.0%−0.1%0.0%0.0%––

The month-by-month record

The month table shows a long string of 0.0% readings. The rule held cash in every month from January 2021 to September 2021, every month from February 2022 to December 2022 and January 2023, and September to December 2023. The remaining sessions were spent in cash, which matches the exposure of 57.3%.

The best month was March 2023 at 2.56%. That was the first full month after the February 2023 entry. The worst month was October 2024 at -2.46%, followed by April 2024 at -2.4% and August 2023 at -2.25%. The 2023 and 2024 losses came when the position was held and bond prices dropped, and cash months were never negative.

The 2024 and 2025 months show how a bond fund moves in a trend. In 2024 there were 8 positive months and 4 negative ones, with sharp offsets such as the 1.44% in August followed by 1.28% in September, then -2.46% in October. In 2025 the monthly returns were smaller and more consistent, with 9 positive months and 3 negative ones, the worst at -0.6% in May.

A trend rule on a bond fund holds through these swings because it only looks at two slow averages. The 50-day and 200-day averages did not flip in any of the monthly drops of 2024, so each one was absorbed into the position.

Every trade

golden cross on AGG made 5 closed round trips, an average hold of 242 days, an average winner of 4.44%, an average loser of −1.37%, a profit factor of 2.14, a longest losing streak of 2. It held a position at the close on 57.3% of trading days.

EntryEntry priceExitExit priceReturnDays held
2021-10-19$96.932022-01-10$95.50−1.5%83
2023-02-07$86.522023-08-22$84.35−2.5%196
2024-01-04$88.482025-02-25$92.324.3%418
2025-03-06$92.442026-07-27$96.634.5%508
2026-08-06$96.892026-08-10$96.77−0.1%4

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.

The five trades

The trade list is short enough to read in full. The 2021 entry and the 2026 entry were losers, with one that ran 83 days and one that ran 4. The 2023 entry was the largest loser at -2.51%, held 196 days. The 2024 entry and the 2025 entry were the two winners, at 4.34% and 4.53%, and they were held 418 and 508 days.

The median trade returned -0.12% and the median hold was 196 days. The mean is a different story: an average winner of 4.44% against an average loser of -1.37%, and the two winners were held far longer than any loser. A 40% win rate still produced a profit factor above 2 because each win was larger than each loss.

Two of the trades also show the golden cross's exit lag. The 2021 position was bought at $96.93 and sold at $95.50, after AGG had already started to fall. The 2023 position was bought at $86.52 and sold at $84.35. In both cases the death cross arrived after the price had already moved against the position. The 50-day average needs the 200-day to be overtaken, which takes weeks of decline.

The only trade count the rule has to work with is small. Five round trips on one fund is not enough to say whether a 40% win rate is typical or a feature of this window. The per-year counts give 1 round trip exiting in 2022, 1 in 2023, 1 in 2025 and 2 in 2026, with none exiting in 2021 or 2024.

Largest drawdowns

PeakLow pointDepthDays to lowRecoveredDays to recover
2021-11-092024-04-16−7.1%8892024-09-05142
2024-09-162025-01-13−4.7%1192025-08-01200
2026-02-272026-05-19−2.7%81not yet–

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

What the drawdowns show

The deepest drawdown was 7.13%. It began at the 9 November 2021 peak, reached a low on 16 April 2024 after 889 days, and recovered on 5 September 2024 after 142 more days. That is a long time for a drawdown in a fund that sat in cash for much of it.

The reason is that equity peaked in November 2021, before the exit, and then lost a little in the December 2021 and January 2022 months, 0.34% and 1.61%. After the exit the equity curve was flat through the 2022 bond decline, then lost again in the 2023 trade, 2.51%. The equity could not make a new high until the 2024 holding period built up enough gain to recover. The drawdown was shallow and drawn out.

The second drawdown ran from 16 September 2024 to a low on 13 January 2025, with a depth of 4.74%. It recovered on 1 August 2025, after 200 days. The third began on 27 February 2026 and reached 2.67% by 19 May 2026. It had not recovered by 2 October 2026.

Buy-and-hold had one drawdown, from 4 January 2021 to 20 October 2022, with a depth of 17.57%, and it had not recovered by the end of the window. The golden cross rule cut that deepest decline roughly to the size of its own worst, 7.13%, which the facts list as 10.44 points shallower. For a bond fund, 2022 is the whole risk event of the window, and the rule was in cash for it.

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.8%−7.1%$10,4530.22
5 basis points0.7%−7.3%$10,4000.20
10 basis points0.6%−7.5%$10,3510.18

What 5 and 10 basis points did

The headline run charges nothing per fill. At 5 basis points of slippage per fill, the CAGR fell to 0.69%, the max drawdown deepened to 7.33%, and the final value was $10,400. At 10 basis points the CAGR was 0.6%, the drawdown 7.52% and the final value $10,351.

With 10 fills, 2 per round trip across 5 round trips, the cost of each step was small. The rule traded rarely, so the slippage had little to act on. Even at 10 basis points the rule still ended ahead of buy-and-hold's $9,559.

The Sharpe ratio fell from 0.22 to 0.2 at 5 basis points and to 0.18 at 10. This is the typical profile of a low-turnover rule: the cost line is nearly flat. A more active strategy on the same fund would show a steeper line. For comparison, the rank table shows that the weekly 7% target and the monthly cycle both lost money on AGG, at -0.29% and -0.91%.

Changing the parameters

VersionCAGRMax drawdownRound tripsWin rateFinal value
Published rules0.8%−7.1%540%$10,453
SMA 40/2000.4%−7.5%450%$10,214
SMA 50/1500.5%−5.9%650%$10,276
SMA 60/2500.7%−7.0%333%$10,412

Three nearby parameter sets

The facts include three variants of the averages. SMA 40/200 returned 0.37% with a 7.55% drawdown over 4 round trips, ending at $10,214. SMA 50/150 returned 0.48% with a 5.88% drawdown over 6 round trips, ending at $10,276. SMA 60/250 returned 0.71% with a 7.03% drawdown over 3 round trips, ending at $10,412.

The published 50/200 rules returned 0.78% and ended at $10,453, ahead of all three on CAGR. The variants fall in a narrow band, from 0.37% to 0.71% in CAGR and from 5.88% to 7.55% in drawdown. That is a tight cluster. A shift of 10 days in the fast average or 50 days in the slow average did not change the sign of the result or the main behaviour.

The slower 60/250 pair made the fewest trades, 3, and ended with the CAGR closest to the base case. The shorter 50/150 slow average made 6 round trips and had the shallowest drawdown of the four sets at 5.88%. Win rates of 33% to 50% across the variants confirm that the rule won about as often as it lost, and that the gain came from the size of the winners.

The caution is the sample. With 3 to 6 trades per version, one trade moving a few days changes the CAGR by a visible amount. The variants say the result is not fragile to small changes, and they do not say that 50/200 is the best setting. A broader sweep would be needed for that.

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

How AGG behaved

AGG is the broad US investment-grade bond market in one fund. In this window it lost 4.53% in total, a CAGR of -0.8% on the price series, with a max drawdown of 17.98% from 4 January 2021 to 20 October 2022. It never recovered that peak by 2 October 2026, and its longest drawdown covered 1,443 of the 1,444 sessions.

The calendar-year returns were -1.64% in 2021, -13.02% in 2022, 5.62% in 2023, 1.35% in 2024, 7.19% in 2025 and -2.75% in 2026 to date. A trend rule needs sustained moves in one direction to earn anything. AGG had one large one, the 2022 decline, and a rule that is long only can use it to avoid loss but not to profit.

Daily moves were small. The average up day was 0.28% and the average down day -0.28%, and AGG rose on 49.27% of sessions. The best day was 2.14% on 10 November 2022 and the worst was -1.63% on 13 June 2022. The average intraday range was 0.35%. A fund with a daily range this narrow produces few strong signals, and the 50-day average stays close to the 200-day for long periods.

That closeness is what causes the 4-day whipsaw in August 2026. AGG closed above its 200-day average on 63.61% of sessions and crossed the 200-day line 50 times in the window. When the two averages are within a fraction of a percent of each other, a small move flips the order.

AGG's correlation with the equity funds was low, 0.22 with SPY and 0.21 with QQQ, and high with other bond funds: 1.0 with BND, 0.97 with IEF and 0.92 with TLT. It was negatively correlated with TBF, the inverse long-bond fund, at -0.91.

Since AGG moves little within the day, the RSI statistics in the profile are not informative. RSI(14) fell under 30 on 59 sessions, and the median five-day return afterward was -0.04%, about the same as the all-days median of -0.01%. The twenty-day median was -0.9% against 0.07%. A dip in a bond fund in this window was not followed by a rebound on average.

The rules

Hold while the 50-day average is above the 200-day; step aside when it crosses below (the death cross).

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

A widely used trend filter. When the 50-day simple moving average is above the 200-day, the asset is in a long-term uptrend and the strategy holds. When it crosses below, the strategy moves to cash. It trades rarely, with a handful of signals per decade on an index. Its use is skipping the deepest bear markets, and it will lag some rallies.

Good for: long-horizon investors who want to hold trends but sidestep multi-year bear markets.
Watch out: crosses lag at turning points: the strategy gives back the first leg of a crash and misses the first leg of a recovery, and choppy sideways markets whipsaw it.

How the 50/200 rule interacts with a bond fund

The rule enters on a crossover of two averages and exits on the reverse crossover. On an equity index the crossovers are rare because trends last for years. On AGG the averages were close together for long stretches, and the rule bought after the October 2021 crossover, the February 2023 crossover, the January 2024 crossover, the March 2025 crossover and the August 2026 crossover.

The rule's behaviour split into two cases. When AGG trended, as in 2024 and 2025, the position held for 418 and 508 days and gained 4.34% and 4.53%. When AGG changed direction, as in late 2021 and 2023, the rule entered late and exited late, and lost 1.48% and 2.51%. A 50-day average takes about two months to turn, so the lag applied at both ends.

Against the other strategies tested on AGG, the golden cross ranked 4th of 12 on CAGR. The leaders were the RSI(2) snapback at 1.57%, the EMA 12/26 trend at 1.07%, and the SMA 10/50 trend at 0.79%. The golden cross at 0.78% was just behind the 10/50 pair. The 200-day regime filter returned 0.31%, and the trend with a trailing stop lost 1.1% with an 18.83% drawdown. The EMA rule had the shallowest drawdown of those that traded, 4.88%.

Among the 7 bond funds the golden cross rule ranked AGG 4th, behind SGOV at 3.22%, IGIB at 1.84% and IEI at 1.09%. It ranked 38th of 59 funds. The median CAGR for the rule across all 59 ETFs was 2.05% and across the bond category it was 0.78%, so AGG sat exactly at the bond median.

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

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

How many trades did it make?

5 completed round trips over 5.7 years (10 fills), with 40% of round trips closing profitably.

How often does a golden cross happen?

On a broad index, roughly every couple of years. The backtest pages show the exact trade count for each ETF over the 2021 to 2026 window.

Golden cross vs buy and hold: which does better?

It depends on the asset and the window. Every backtest page here shows the same-window buy-and-hold comparison.

How did the golden cross do on AGG?

It turned $10,000 into $10,453 from January 2021 to October 2026, a CAGR of 0.78%, with 5 round trips and a 40% win rate. Buy-and-hold ended at $9,559, a CAGR of -0.78%. The rule's max drawdown was 7.13% against 17.57% for holding.

Why did the golden cross beat buy-and-hold on AGG?

Almost all of it came from 2022. The rule exited on 10 January 2022 and stayed in cash for the rest of the year, while AGG's calendar-year return was -13.02%. In 2023 it gave some of that back, returning -2.4% against 5.5% for buy-and-hold.

How often does the golden cross trade AGG?

It made 5 closed round trips in 5.74 years, with an average hold of about 242 days. The longest hold was 508 days and the shortest was 4 days. The 4-day trade in August 2026 lost 0.12%.

Do trading costs change the result?

Slightly. At 5 basis points of slippage per fill the CAGR was 0.69% and the final value $10,400. At 10 basis points it was 0.6% and $10,351. The rule has 10 fills in total, so the costs are small.

Is the 50/200 setting special on AGG?

Three other settings returned 0.37% to 0.71% in CAGR, all below the 0.78% of the published rules, with drawdowns from 5.88% to 7.55%. Each had only 3 to 6 trades, so the test shows the result is stable to small changes and cannot rank settings.

Is the golden cross the best rule for AGG?

Of 12 rules tested on AGG, it ranked 4th by CAGR. The RSI(2) snapback returned 1.57% and the EMA 12/26 trend 1.07%. The ranking comes from one window and one fund, and the gaps between the top four are under a point.

Related

Golden Cross (SMA 50/200) 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.