SMA 10/50 Trend 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.
The SMA 10/50 trend rule on AGG, the iShares Core U.S. Aggregate Bond ETF, ended 2026-10-02 at $10,463.56 from a $10,000 start. The total return was 4.64%, the CAGR 0.79%, the Sharpe ratio 0.23 and the maximum drawdown 6.46%. The rule made 18 round trips and 36 fills. Eight of the 18 won, a 44% win rate, with an average win of 1.79% and an average loss of -0.94%, so the profit factor was 1.5.
Holding AGG did worse. Buy and hold lost 4.41% for a CAGR of -0.78% and ended at $9,558.95, after a drawdown of 17.57% that began on the first day and had no recovery date by the end. The trend rule beat it by 1.57% a year and finished $904.61 ahead, with a drawdown 11.11 points shallower. Those gaps come from one fact. The rule was invested 51.2% of the time and was in cash for most of the 2022 bond sell-off.
AGG is the broad US investment-grade bond market in one fund, and over this window it fell and then went sideways. A fast crossover on a fund like that earns little. It avoided a large loss and made a small gain. The AGG page ranks all 12 templates on this fund. The strategy hub shows the same rule on all 59.
Year by year
| Year | SMA 10/50 trend | buy & hold |
|---|---|---|
| 2021 | 0.2% | −1.6% |
| 2022 | −0.6% | −12.7% |
| 2023 | 2.6% | 5.5% |
| 2024 | −0.4% | 1.3% |
| 2025 | 3.3% | 7.0% |
| 2026 | −0.5% | −2.7% |
Month by month
| Year | Jan | Feb | Mar | Apr | May | Jun | Jul | Aug | Sep | Oct | Nov | Dec |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2021 | 0.0% | 0.0% | 0.0% | −0.2% | 0.1% | 0.9% | 1.1% | −0.2% | −0.8% | 0.0% | 0.0% | −0.7% |
| 2022 | −0.8% | 0.0% | 0.0% | 0.0% | 0.0% | 0.0% | 2.5% | −2.5% | 0.0% | 0.0% | 1.0% | −0.8% |
| 2023 | 3.4% | −2.5% | 0.0% | 0.6% | −1.6% | 0.0% | −0.4% | −1.5% | 0.0% | 0.0% | 1.2% | 3.6% |
| 2024 | −0.1% | −1.3% | −0.1% | −0.5% | −0.7% | 0.9% | 2.3% | 1.4% | 1.3% | −1.7% | 0.0% | −1.9% |
| 2025 | 0.0% | 1.6% | 0.0% | −1.0% | −1.5% | 1.9% | −0.3% | 1.2% | 1.1% | 0.6% | 0.6% | −0.8% |
| 2026 | 0.2% | 1.6% | −1.4% | −0.6% | 0.0% | 0.0% | −0.3% | 0.0% | 0.0% | 0.0% | – | – |
The 2024 and 2025 stretch month by month
Two long trades carried the later record, and the months around them show how the rule behaved when it was holding. The 2024-05-16 trade, at 88.48, produced June at 0.87%, July at 2.3%, August at 1.44% and September at 1.28%, then October at -1.69% as the exit came on 2024-10-14 at 91.66. The 3.59% gain over 151 days was the second best of the test.
The rule was then flat until the next position, which came on 2024-12-09 at 92.24 and was sold on 2024-12-23 at 90.45, which accounts for December's -1.9% and a 14-day hold. A similar short loss came from 2025-05-01 to 2025-05-15, at -1.55% over 14 days, in a month the table prints at -1.52%.
The 2025 winner ran from 2025-06-09 at 92.25 to 2025-12-16 at 96.59. June contributed 1.91%, July -0.27%, August 1.2%, September 1.08%, October 0.6%, November 0.59% and December -0.83%. Five of the seven months were gains. It was the longest hold at 190 days and the best trade at 4.7%.
The final trade, 2026-06-17 at 97.64 to 2026-07-17 at 97.28, lost 0.37% in 30 days, and the account was flat from then to 2026-10-02. January and February 2026 made 0.22% and 1.56% before March and April gave back 1.36% and 0.59%. The year to date stood at -0.5% for the rule against -2.7% for holding.
The drawdown from 2024-09-16 to 2025-05-14 was 5.41%, and it spans the October and December 2024 losses and the April and May 2025 losses in this table. It recovered only on 2026-02-12, a recovery of 274 days after the 240 days down.
Every trade
SMA 10/50 trend on AGG made 18 closed round trips, an average hold of 60 days, an average winner of 1.79%, an average loser of −0.94%, a profit factor of 1.50, a longest losing streak of 2. It held a position at the close on 51.2% of trading days.
| Entry | Entry price | Exit | Exit price | Return | Days held |
|---|---|---|---|---|---|
| 2021-04-23 | $96.45 | 2021-09-29 | $97.30 | 0.9% | 159 |
| 2021-12-06 | $97.75 | 2022-01-04 | $96.35 | −1.4% | 29 |
| 2022-07-14 | $87.20 | 2022-08-30 | $87.20 | 0.0% | 47 |
| 2022-11-21 | $84.35 | 2023-02-17 | $85.16 | 1.0% | 88 |
| 2023-03-23 | $87.18 | 2023-05-22 | $86.28 | −1.0% | 60 |
| 2023-07-24 | $86.70 | 2023-08-03 | $85.01 | −1.9% | 10 |
| 2023-11-14 | $85.01 | 2024-02-15 | $87.93 | 3.4% | 93 |
| 2024-03-13 | $88.46 | 2024-03-25 | $88.39 | −0.1% | 12 |
| 2024-04-01 | $88.26 | 2024-04-09 | $87.85 | −0.5% | 8 |
| 2024-05-16 | $88.48 | 2024-10-14 | $91.66 | 3.6% | 151 |
| 2024-12-09 | $92.24 | 2024-12-23 | $90.45 | −1.9% | 14 |
| 2025-02-05 | $91.46 | 2025-04-21 | $91.96 | 0.6% | 75 |
| 2025-05-01 | $93.39 | 2025-05-15 | $91.94 | −1.6% | 14 |
| 2025-06-09 | $92.25 | 2025-12-16 | $96.59 | 4.7% | 190 |
| 2025-12-29 | $97.16 | 2026-03-18 | $97.31 | 0.1% | 79 |
| 2026-04-22 | $97.69 | 2026-05-01 | $97.14 | −0.6% | 9 |
| 2026-06-05 | $96.98 | 2026-06-11 | $97.03 | 0.1% | 6 |
| 2026-06-17 | $97.64 | 2026-07-17 | $97.28 | −0.4% | 30 |
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.
Which of AGG's biggest sessions the crossover held through
AGG's three worst days in the window, -1.63% on 2022-06-13, -1.3% on 2022-09-26 and -1.23% on 2022-03-02, all fell while the rule was in cash. That is the practical content of the 12.1 point lead in 2022. The account sat out the spring decline, took one flat trade from 2022-07-14 to 2022-08-30, and stayed out through the September low. The two worst remaining days, -1.23% on 2025-04-07 and -1.18% on 2024-04-10, are different cases, since the monthly table shows the rule holding small losing positions in those months.
The rule also missed good days. The fund's best day was 2.14% on 2022-11-10 and the second best was 1.6% on 2022-09-28, and the account was in cash for both, since the next buy came on 2022-11-21. That trade, at 84.35, was entered after the bounce had begun and made 0.96% by 2023-02-17.
The 2023-11-14 entry sits on the fund's fourth best day, 1.21%, and the 1.26% day on 2023-12-13 fell inside the same trade. Together with the 3.56% December, they made the 93-day trade the third best of the test at 3.43%. The 1.19% gain on 2023-03-10 came before the 2023-03-23 entry, so that trade started after a rally and lost 1.03% over 60 days.
The pattern across these dates is consistent: the crossover avoided the first part of declines and the first part of rebounds. Whether that helped depended on which came first in the year. In 2022 it protected capital. In 2023 it bought late into January and held through the February drop.
Largest drawdowns
| Peak | Low point | Depth | Days to low | Recovered | Days to recover |
|---|---|---|---|---|---|
| 2023-02-02 | 2023-11-15 | −6.5% | 286 | 2024-08-02 | 261 |
| 2024-09-16 | 2025-05-14 | −5.4% | 240 | 2026-02-12 | 274 |
| 2022-08-01 | 2022-11-21 | −3.1% | 112 | 2023-01-12 | 52 |
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 fill | CAGR | Max drawdown | Final value | Sharpe |
|---|---|---|---|---|
| None (headline) | 0.8% | −6.5% | $10,464 | 0.23 |
| 5 basis points | 0.5% | −6.7% | $10,280 | 0.15 |
| 10 basis points | 0.2% | −7.0% | $10,106 | 0.07 |
Changing the parameters
| Version | CAGR | Max drawdown | Round trips | Win rate | Final value |
|---|---|---|---|---|---|
| Published rules | 0.8% | −6.5% | 18 | 44% | $10,464 |
| SMA 5/50 | 1.9% | −4.0% | 23 | 43% | $11,148 |
| SMA 20/50 | 0.9% | −6.4% | 15 | 40% | $10,525 |
| SMA 10/100 | 0.2% | −7.6% | 12 | 33% | $10,094 |
How AGG behaved
| Measure | AGG |
|---|---|
| Data in this test | 2021-01-04 to 2026-10-02 (1444 sessions) |
| Total return, buy and hold | −4.5% |
| Annualized volatility | 5.8% |
| Deepest drawdown | −18.0% (2021-01-04 to 2022-10-20) |
| Up days | 49.3% |
| Average daily range | 0.35% |
| Average overnight gap | 0.21% |
| Correlation to SPY | 0.22 |
| Correlation to QQQ | 0.21 |
| Correlation to TLT | 0.92 |
| Sessions above the 200-day average | 63.6% |
| Crossings of the 200-day average | 50 |
| Falls of 10% or more from a 20-day high | 0 |
The rules
A faster moving-average crossover: hold while the 10-day average is above the 50-day.
- WHEN the market opens · IF not invested AND SMA(10) > SMA(50) · THEN buy with 98% of the sleeve
- WHEN the market opens · IF invested AND SMA(10) < SMA(50) · THEN sell the whole position
A faster version of the golden cross. The 10- and 50-day averages catch intermediate trends measured in weeks rather than years. It enters recoveries earlier and exits breakdowns earlier, with more whipsaw trades in sideways markets. Useful for seeing how signal speed changes a strategy's results.
Good for: trending assets with multi-week swings, such as leveraged index ETFs.
Watch out: several false signals a year is normal; each whipsaw costs a small loss and they add up in flat markets.
Where the rule won and where it lagged
The rule returned 0.2% in 2021, -0.6% in 2022, 2.6% in 2023, -0.4% in 2024, 3.3% in 2025 and -0.5% in 2026 to date. AGG on a buy-and-hold basis returned -1.6%, -12.7%, 5.5%, 1.3%, 7% and -2.7%. The trend rule led in 2021, 2022 and 2026, by 1.8, 12.1 and 2.2 points. It trailed in the middle years, by 2.9 points in 2023, 1.7 in 2024 and 3.7 in 2025.
The 2022 gap carries the result. AGG lost 12.7% that year and the rule lost 0.6%. Only two round trips closed in 2022 and neither made money: one lost 1.43% as the December 2021 position was sold on 2022-01-04, and the other, bought on 2022-07-14 at 87.2 and sold on 2022-08-30 at the same price, broke even. Between those two trades the rule was in cash, and that period held most of the fund's decline.
In the three years after 2022 the fund recovered and the rule lagged. A moving-average crossover enters only after the short average has crossed above the long one, so each recovery was joined late. The rule's 2023 return of 2.6% compares with the fund's 5.5%, and in 2025 it made 3.3% against 7%. Both years had a long winning trade that started after the move was under way and ended before the fund finished rising. The shortfall in those years is the price paid for the 2022 protection.
A sparse table of small months
The best month was December 2023 at 3.56%, followed by January 2023 at 3.36% and July 2022 at 2.51%. The worst was February 2023 at -2.47%, then August 2022 at -2.45% and December 2024 at -1.9%. For comparison, holding the fund produced a 4.48% month in November 2023 and a -4.07% month in September 2022.
The monthly table skips about half its cells because the rule is in cash for those months. The months it holds a position mostly sit between -1.5% and 1.5%. A bond fund with a daily range of 0.35% does not produce large months, and the largest losses happened when the rule bought into a short rally that failed. The February 2023 loss of 2.47% followed the January 2023 gain of 3.36%, and the pair shows how a rally and its reversal can fit inside the same trade window.
In the fund's own sample averages, November was the standout at 2.08%, while September averaged -1.31% and October -0.95%. Each rests on 5 or 6 observations. The rule's 2023 gains in November and December, at 1.22% and 3.56%, are consistent with that pattern but cover one year only.
Eighteen trades, a few that mattered
The record has long winners and many short losers. The best trade bought on 2025-06-09 at 92.25 and sold on 2025-12-16 at 96.59, a gain of 4.7% over 190 days. The second bought on 2024-05-16 at 88.48 and sold on 2024-10-14 at 91.66 for 3.59% in 151 days. The third bought on 2023-11-14 at 85.01 and sold on 2024-02-15 at 87.93 for 3.43% in 93 days. After those came 0.96% from 2022-11-21 and 0.88% from 2021-04-23, the first trade of the test, which lasted 159 days.
The worst trade bought on 2023-07-24 at 86.7 and sold on 2023-08-03 at 85.01, a loss of 1.95% in 10 days. Right behind it, 2024-12-09 to 2024-12-23 lost 1.94%, 2025-05-01 to 2025-05-15 lost 1.55%, 2021-12-06 to 2022-01-04 lost 1.43% and 2023-03-23 to 2023-05-22 lost 1.03%. Prices are split and dividend adjusted.
The median trade returned 0%, the median hold was 47 days and the average hold was 59.7 days. The longest hold was 190 days and the shortest was 6. The longest winning streak and the longest losing streak were both 2 trades. By exit year, 2021 had 1 round trip with 1 win, 2022 had 2 with none, 2023 had 3 with 1, 2024 had 5 with 2, 2025 had 3 with 2 and 2026 had 4 with 2.
Three winners earned 3.43% or more, and they did the work. They were all held for at least 93 days. Most of the 10 trades that did not win were short and lost small amounts, such as -0.08% and -0.46% in the spring of 2024 and -0.56% in April 2026. Those are the whipsaws the template's caveat describes. Each costs a small amount, and the three long trends paid for them.
Three drawdowns under 7%
The deepest drawdown on the strategy was 6.46%, from the peak on 2023-02-02 to a trough on 2023-11-15 after 286 days, with recovery on 2024-08-02 after another 261. The second was 5.41%, from 2024-09-16 to 2025-05-14 after 240 days, recovered on 2026-02-12 after 274. The third was 3.13%, from 2022-08-01 to 2022-11-21, recovered on 2023-01-12.
Buy and hold had one drawdown of 17.57%, from 2021-01-04 to 2022-10-20 after 654 days and never recovered. The fund's own series lists -17.98% over the same dates and a longest drawdown of 1,443 sessions. The rule's worst drawdown was far smaller than that and arrived in 2023, after the rule had avoided the 2022 decline. It came from buying the January 2023 bounce and holding through February. Both of the larger drawdowns were slow, with troughs more than 200 days after the peak, and each took about as long to recover.
The slow recoveries are a feature of the bond fund and the rule together. With daily moves near 0.28% on an average up or down day, a drawdown of a few percent takes months to repair. A 0.79% CAGR repairs it slowly. At the end of the test the rule had regained its prior peak from the September 2024 drawdown only on 2026-02-12.
Fills that eat most of the edge
With no slippage the CAGR was 0.79%, the Sharpe ratio 0.23 and the final value $10,463.56. At 5 basis points per fill the CAGR was 0.48%, the drawdown 6.74%, the Sharpe ratio 0.149 and the final value $10,280.19. At 10 basis points the CAGR was 0.18%, the drawdown 7%, the Sharpe ratio 0.068 and the final value $10,105.87.
At 10 basis points of slippage the rule's CAGR is close to zero. The fund moves so little each day that 36 fills of friction take most of the gross edge. AGG is liquid, with average daily dollar volume of about $647,965,164 and a median minute volume of 8,686 shares, so fills of the account's size should be close to the quoted price. The cost runs are an assumption about friction and not a measurement of AGG's spread. Even a small cost matters when the headline return is under one percent a year.
Faster beat slower on this fund
Three variants were run. SMA 5/50 returned a CAGR of 1.91%, a drawdown of 4.05%, a final value of $11,147.83 and a Sharpe ratio of 0.528 over 23 trades with 10 wins. SMA 20/50 returned 0.9%, 6.44%, $10,524.98 and 0.265 over 15 trades with 6 wins. SMA 10/100 returned 0.16%, 7.58%, $10,093.62 and 0.063 over 12 trades with 4 wins.
The fastest setting did best, with the highest return, the shallowest drawdown and the best Sharpe ratio of the four. That is the reverse of what a whipsaw argument would predict, since more trades usually means more false signals. Here the faster average exited the 2022 decline sooner and re-entered the rallies sooner, and both effects helped on a fund with no strong trend of its own. The slowest setting, with a 100-day long average, did worst. It reacted late to the fund's turns and made 12 trades, 4 of them wins.
The published 10/50 returned 0.79%, below both the 5/50 at 1.91% and the 20/50 at 0.9%, and above only the 10/100 at 0.16%. These are single-window results with 12 to 23 trades, so the spread is a description of this sample. A different window could reverse the order.
What AGG did over the window
Over 1,444 sessions AGG lost 4.53% in total, which is a CAGR of -0.8%, and its annualized volatility was only 5.82%. Slightly fewer than half of its days were up, at 49.27%. Average moves were small in both directions at 0.28%, the daily high to low span averaged 0.35%, and the open sat 0.21% from the prior close on average. Its worst drawdown was -17.98% from 2021-01-04 to 2022-10-20, and it had not recovered.
The split between overnight and intraday returns runs against the usual pattern. AGG's overnight log return was 6.82% and its intraday log return was -11.45%, so the overnight share was -147.39% and the intraday share 247.39%. The fund lost money during market hours and gained overnight, the reverse of some of the equity funds in the library. The rule trades at the open, so it holds through the overnight stretch when in a position, and it gives up the intraday session when in cash.
AGG moves with other bond funds. Its correlation to BND was 1, to IEF 0.97, to IGIB 0.96 and to IEI 0.94, and to SPY it was 0.22. TBF was the opposite at -0.91. About 63.61% of sessions closed above the 200-day average, and the line was crossed 50 times. After the 59 sessions with the 14-day RSI below 30 the median forward 20-day return was -0.9%, against a baseline of 0.07%, so buying oversold readings did not help here. The fund had no fall of 10% inside 20 sessions.
A fast crossover on a slow-moving fund
The rule buys at the open with 98% of the sleeve when the 10-day average is above the 50-day and the account is flat, and sells everything at the open when the 10-day average falls below the 50-day. The template describes it as a faster golden cross, which catches intermediate trends measured in weeks. Its caveat is that several false signals a year are normal, and each costs a small loss.
AGG produced the number of false signals the caveat predicts. The fund's 50 crossings of its 200-day average give a rough sense of how often its trend changed. Of the 18 trades, the ones that lost were small, between 0.08% and 1.95%. The rule's average loss of 0.94% was about half the average win of 1.79%, which is why it earned a profit factor of 1.5 on a 44% win rate.
Within the bond category the rule returned 3.21% on SGOV with a drawdown of 0.05% and 6 round trips, 1.73% on IGIB, 1.33% on IEF and 1.24% on IEI. AGG's 0.79% sat ahead of BND at 0.52% and TLT at -0.85% with a 14.24% drawdown. The category median was 1.24%, against 2.12% across all 59 funds, and AGG ranks 38 of 59 for this rule. Bond funds suit it poorly compared with equity funds.
Against the other templates on AGG, the SMA rule placed third of 12. The RSI(2) snapback took first place with 1.57% and a 10.61% drawdown, and the EMA 12/26 trend was second with 1.07% and the shallowest drawdown among the leaders, 4.88%. A hair behind the SMA rule came the golden cross at 0.78% and the 200-day regime filter at 0.31%. The dip buyer and the momentum breakout never traded. Five templates lost money, among them the RSI mean reversion, the weekly 7% target, the 3-month momentum, the monthly cycle and the trend with a trailing stop, which finished last at -1.1%. Four trend crossovers filled four of the top five places, so a rule that stepped aside rewarded this fund.
Where the test stops
This is one bond fund over 5.74 years that included a sharp rate-driven fall in 2022. A different window could favour a different rule. The headline run has no fees or slippage, and a CAGR of 0.79% from 18 trades is within the range that costs and a different start date would change. Backtests are hypothetical and nothing here is a forecast or advice.
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 SMA 10/50 trend beat buy-and-hold on AGG?
Over 2021-01-04 to 2026-10-02, SMA 10/50 trend 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 11.1 points shallower than holding (6.5% vs 17.6%).
How many trades did it make?
18 completed round trips over 5.7 years (36 fills), with 44% of round trips closing profitably.
Why 10 and 50 days?
A common intermediate-trend pairing. It reacts within weeks and ignores single bad days. Both windows are editable parameters in DeployQuant.
How did the SMA 10/50 trend rule do on AGG?
It returned a CAGR of 0.79% and ended at $10,463.56 from $10,000, with a maximum drawdown of 6.46% and 18 round trips. Buy and hold lost 4.41% over the window. The rule beat it by 1.57% a year.
Why did the rule beat buy and hold on AGG?
AGG fell 12.7% in 2022 on a buy-and-hold basis and the rule lost 0.6%, a gap of 12.1 points. The rule was invested 51.2% of the time and sat in cash through most of the decline. It lagged in 2023, 2024 and 2025.
What was the win rate?
Eight of 18 round trips won, which is 44%. The average win was 1.79% and the average loss was -0.94%, giving a profit factor of 1.5. The best trade made 4.7% over 190 days.
Would a faster or slower average have worked better?
SMA 5/50 returned 1.91% with a 4.05% drawdown over 23 trades, and SMA 20/50 returned 0.9%. SMA 10/100 returned 0.16%. The faster pair did best on this window.
How much do trading costs matter?
At 5 basis points per fill the CAGR fell to 0.48% and at 10 basis points to 0.18%. The final values were $10,280.19 and $10,105.87. With a gross return under one percent a year, friction removes most of it.
How does AGG compare with other bond funds for this rule?
SGOV returned 3.21%, IGIB 1.73%, IEF 1.33% and IEI 1.24%. AGG's 0.79% was ahead of BND at 0.52% and TLT at -0.85%. The category median was 1.24%.
Related
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.