Learn › Strategies › 200-Day SMA Regime Filter › BND

200-Day SMA Regime Filter 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: 200-day regime filter on BND turned $10,000 into $10,213 (2.1% total, 0.4% CAGR): it beat buy-and-hold by 1.2% per year, with a maximum drawdown 11.1 points shallower than holding (6.5% vs 17.6%).

Under the 200-day regime filter the sleeve holds the fund after any close above its 200-day average and sits in cash after any close below it. BND is the Vanguard Total Bond Market ETF, a fund of the broad US bond market. From 2021-01-04 to 2026-10-02 the rule turned $10,000 into $10,213. That is a CAGR of 0.37% and a total return of 2.13%. Buy and hold on BND ended at $9,549, a CAGR of -0.8% and a total return of -4.51%.

The rule finished ahead of holding by 1.17 points of CAGR and $663 of ending equity, and the gap in maximum drawdown was larger: 6.54% for the rule against 17.64% for the fund. The Sharpe ratio was 0.12 against -0.12. A fund that lost money for 5.74 years is the case where a rule that can sit in cash has the most room to help, and the result here is a small gain where holding had a small loss.

The numbers are small. A CAGR of 0.37% is below the 1.84% median of this rule across all 59 funds, and it equals the 0.37% median of the 7 bond funds. The rule made 21 closed round trips, held nothing at the end of the window, and made 42 fills. Only 6 of the 21 won, a win rate of 29%. The average winner made 1.78% and the average loser lost 0.55%, which gives a profit factor of 1.27. The rule was invested on 55.5% of trading days.

On BND the filter ranked 5th of the 12 templates by CAGR. The RSI(2) snapback led at 1.41%, followed by the EMA 12/26 trend at 1.02%, the golden cross at 0.72% and the SMA 10/50 trend at 0.52%. Across the 59 funds, BND ranked 35th for this rule. Among the 7 bond funds it sat in the middle: SGOV at 3.22% led, then IGIB at 1.36% and IEI at 1.03%.

The test covers 5.74 years, decides once a day, uses no margin and charges nothing per fill in the headline run. With gains this small, the cost runs carry more weight here than on most pages.

0.4%CAGR
−0.8%buy & hold CAGR
−6.5%max drawdown
0.12Sharpe ratio
21round trips
29%win rate
■ 200-day regime filter   ■ buy & hold, $10,000 invested 2021-01-04

Year by year

Year200-day regime filterbuy & hold
2021−1.2%−1.7%
2022−0.4%−12.8%
2023−0.4%5.5%
20241.3%1.3%
20253.7%6.9%
2026−0.9%−2.6%

Year by year against holding

The rule beat buy and hold in 3 of the 6 years, tied in one and trailed in two. The yearly gaps in points were +0.5 in 2021, +12.4 in 2022, -5.9 in 2023, 0.0 in 2024, -3.2 in 2025 and +1.7 in 2026.

In 2021 the sleeve returned -1.2% and the fund -1.7%. January to September show 0.0% in the monthly table. The sleeve bought on 2021-10-28 at $72.22, roughly 200 sessions after the data begins on 2021-01-04, which is the time a 200-day average needs before it exists. That first trade sold on 2021-11-16 at $71.82 for -0.55%. Two more small trades closed before the year ended, and the rule bought again on 2021-12-31. The monthly table shows October at -0.09%, November at -0.61% and December at -0.47%.

2022 returned -0.4% against -12.8%, the rule's best year by far, with a margin of 12.4 points. The rule bought on 2021-12-31 at $72.15 and sold on 2022-01-03 at $71.82, a loss of 0.46% over 3 days. After that it held cash through the rest of the year. Every month from February to December reads 0.0%, and the fund's own low came on 2022-10-20. The whole advantage of the filter on this fund came from that one stretch. The BND price had fallen below its 200-day average by early January 2022, and the rule did not buy again until 2023-01-10.

2023 returned -0.4% against 5.5%, behind by 5.9 points. It was the busiest year, with 6 round trips closing and only 1 win, and the fund's year was positive while the rule's was not. The rule bought on 2023-01-10 at $63.94 and sold the next day at $64.08 for 0.22%. It bought again on 2023-01-12 at $64.45 and sold on 2023-02-13 at $63.73, a loss of 1.12%. A one-day trade followed, from 2023-02-14 at $63.76 to 2023-02-15 at $63.52 for -0.38%. The longest and worst trade of the cluster ran from 2023-03-13 at $64.34 to 2023-07-07 at $63.28, a loss of 1.65% over 116 days. Then 2023-07-11 to 2023-08-03 lost 0.75% and 2023-08-09 to 2023-08-11 lost 0.92%. The monthly table shows how it added up: February -1.88%, May -1.13%, July -0.6% and August -2.38%. September and October read 0.0%, and the next entry was on 2023-11-28 at $63.47.

2024 returned 1.3% for both the rule and the fund. No trade closed in 2024, because the position bought on 2023-11-28 stayed open for 407 days, until 2025-01-08 at $66.7, for a gain of 5.09%, the best trade of the test. The year was a full-year hold, which is why the two numbers match.

2025 returned 3.7% against 6.9%, behind by 3.2 points. The rule closed 4 round trips and won 2. It bought on 2025-01-17 at $67.24 and sold on 2025-04-11 at $67.67 for 0.64%. A 30-day trade from 2025-04-15 lost 0.04%, a 6-day trade from 2025-05-16 at $68.68 to 2025-05-22 at $67.9 lost 1.14%, and a trade from 2025-05-27 at $68.42 started the second-best position, which ran 356 days to 2026-05-18 at $71.55 for 4.57%.

2026 is a partial year to 2026-10-02. The rule returned -0.9% against -2.6%, ahead by 1.7 points. It closed 7 round trips and won 2: the 4.57% trade that exited on 2026-05-18, and a 0.04% trade. The six short trades after it were small. 2026-05-27 to 2026-06-08 lost 0.04%, 2026-06-10 to 2026-07-09 made 0.04%, 2026-07-10 to 2026-07-13 lost 0.25%, 2026-07-16 to 2026-07-21 lost 0.22%, 2026-08-20 to 2026-08-21 made 0.0%, and 2026-08-26 to 2026-08-28 lost 0.04%. The fund was hovering around its own 200-day average, and the rule bought and sold on each pass.

Month by month

YearJanFebMarAprMayJunJulAugSepOctNovDec
20210.0%0.0%0.0%0.0%0.0%0.0%0.0%0.0%0.0%−0.1%−0.6%−0.5%
2022−0.4%0.0%0.0%0.0%0.0%0.0%0.0%0.0%0.0%0.0%0.0%0.0%
20230.6%−1.9%0.5%0.6%−1.1%−0.2%−0.6%−2.4%0.0%0.0%0.7%3.5%
2024−0.1%−1.4%0.8%−2.4%1.7%0.8%2.3%1.4%1.3%−2.4%1.1%−1.6%
2025−0.2%2.1%0.0%−0.5%−2.0%1.5%−0.3%1.1%1.1%0.6%0.6%−0.3%
20260.2%1.6%−1.7%0.1%−0.4%0.3%−1.0%−0.0%0.0%0.0%––

What the monthly table shows

The monthly table is mostly small numbers. The best month for the rule was December 2023 at 3.5%, against 4.41% for buy and hold in November 2023, its best. The worst month was October 2024 at -2.43%, against -4.03% for the fund in September 2022, a month the rule spent in cash.

Many months read 0.0%, in three stretches: January to September 2021, February to December 2022 and September to October 2023. They mark the periods in which the rule held cash, and the 2022 stretch is the reason it avoided the 2022 loss.

Several months in 2024 and 2025 look large for a bond fund. April 2024 lost 2.35% and October 2024 lost 2.43%, and May 2025 lost 1.97%, each a loss in a month when the rule was invested. The rule gained 2.29% in July 2024 and 2.11% in February 2025. A bond fund with an annualized volatility of 5.78% produces monthly moves of this size when it trends.

The table shows how a 200-day filter behaves on a low-volatility asset. The fund's average daily range was 0.34% and its average overnight gap 0.2%. When price sits near the 200-day line, small moves create crossings, and the rule pays for each crossing.

Every trade

200-day regime filter on BND made 21 closed round trips, an average hold of 56 days, an average winner of 1.78%, an average loser of −0.55%, a profit factor of 1.27, a longest losing streak of 5. It held a position at the close on 55.5% of trading days.

EntryEntry priceExitExit priceReturnDays held
2021-10-28$72.222021-11-16$71.82−0.6%19
2021-11-19$72.192021-11-23$71.69−0.7%4
2021-11-29$71.962021-12-30$72.050.1%31
2021-12-31$72.152022-01-03$71.82−0.5%3
2023-01-10$63.942023-01-11$64.080.2%1
2023-01-12$64.452023-02-13$63.73−1.1%32
2023-02-14$63.762023-02-15$63.52−0.4%1
2023-03-13$64.342023-07-07$63.28−1.6%116
2023-07-11$63.582023-08-03$63.10−0.8%23
2023-08-09$63.792023-08-11$63.20−0.9%2
2023-11-28$63.472025-01-08$66.705.1%407
2025-01-17$67.242025-04-11$67.670.6%84
2025-04-15$68.292025-05-15$68.26−0.0%30
2025-05-16$68.682025-05-22$67.90−1.1%6
2025-05-27$68.422026-05-18$71.554.6%356
2026-05-27$72.022026-06-08$71.99−0.0%12
2026-06-10$71.972026-07-09$72.000.0%29
2026-07-10$72.072026-07-13$71.89−0.3%3
2026-07-16$71.972026-07-21$71.81−0.2%5
2026-08-20$71.792026-08-21$71.790.0%1
2026-08-26$72.062026-08-28$72.03−0.0%2

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 21 closed trades

The median trade returned -0.22% and the median hold was 12 days. The shortest hold was 1 day and the longest 407. That spread is the whole story. Two trades held for about a year or more, and the other 19 were short.

The two long trades made 5.09% (2023-11-28 to 2025-01-08, 407 days) and 4.57% (2025-05-27 to 2026-05-18, 356 days). The third-best trade was 0.64% over 84 days, and the fourth was 0.22% over 1 day. Every trade after the second-best was under 1%. The rule's total return of 2.13% comes almost entirely from those two trades, and the other 19 trades lost money in aggregate.

The five worst trades were -1.65% (2023-03-13, 116 days), -1.14% (2025-05-16, 6 days), -1.12% (2023-01-12, 32 days), -0.92% (2023-08-09, 2 days) and -0.75% (2023-07-11, 23 days). Four of the five fell in 2023. None of them lost as much as 2%, which is small in absolute terms, but they are large against the average winner of 1.78% and against the fund's tiny moves.

By exit year, 2021 had 3 round trips and 1 win, 2022 had 1 and none, 2023 had 6 and 1, 2025 had 4 and 2, and 2026 had 7 and 2. The longest losing streak was 5 and the longest winning streak was 2. The few winners carry the result.

The fills confirm the link to the fund's crossings. The bond fund crossed its 200-day average 42 times in the window, and the rule made 42 fills. Each cross produced one order. A 200-day rule on a fund that crosses the line that often will trade a lot, and each trade costs more than it earns when the fund barely moves.

Listed prices are adjusted for splits and dividends and read lower than the quotes of the day. A bond fund pays regular distributions, so the adjustment is visible in this table.

Largest drawdowns

PeakLow pointDepthDays to lowRecoveredDays to recover
2021-11-092023-08-11−6.5%6402024-08-02357
2024-09-162025-05-22−4.8%2482025-10-16147
2026-02-272026-08-28−2.6%182not yet–

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

The three largest drawdowns

The rule's largest drawdown was 6.54%, from the peak on 2021-11-09 to the low on 2023-08-11. It took 640 days to reach the low and 357 more to recover, on 2024-08-02. The second was 4.76%, from 2024-09-16 to 2025-05-22, with 248 days to the low and recovery on 2025-10-16 after 147 more. The third was 2.65%, from 2026-02-27 to 2026-08-28, over 182 days, and the data shows no recovery by 2026-10-02.

Holding BND produced a single drawdown of 17.64%. It began on 2021-01-04, bottomed on 2022-10-20 after 654 days and was still open at the end of the data. The fund's profile shows 18.09% for the same stretch.

The two drawdown histories are very different in length. The fund's lasted the whole window. The rule's three were each shorter and each recovered, apart from the last. The 2021 to 2023 drawdown looks long, 640 days to the low, but its depth was 6.54%, and most of it came from the cluster of small losses in 2023. The rule's peak came on 2021-11-09, during its first trade, and the loss from there was a slow bleed through the January 2022 trade and then the 2023 whipsaws.

The 11.1-point gap in maximum drawdown is the filter's main result on this fund. It came from sitting out 2022, and the rule gave up part of the 2023 and 2025 gains. Over the full window, the rule ended ahead of holding by $663, which is a small sum against the $10,000 start.

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.4%−6.5%$10,2130.12
5 basis points0.0%−7.4%$10,0050.02
10 basis points−0.3%−8.3%$9,801-0.07

Why cost runs decide this result

The rule made 42 fills, and the returns per trade are tiny, so costs matter more here than on almost any other page. At 5 basis points per fill the CAGR fell from 0.37% to 0.01%, the maximum drawdown rose from 6.54% to 7.4% and the final value fell from $10,213 to $10,005. The Sharpe ratio dropped from 0.12 to 0.021. At 10 basis points the CAGR was -0.35%, the maximum drawdown 8.26%, the final value $9,801 and the Sharpe ratio -0.073.

At 5 basis points the rule's gain over the starting capital had disappeared. At 10 basis points the account ended below its starting $10,000, though it was still above buy and hold's final $9,549. The advantage over holding was real in the headline run and was still there at both cost levels in dollars, while the absolute return went to zero and then below.

Its average daily dollar volume was $442,813,583 and its median minute volume was 8,357 shares. The flat basis points in the cost runs are a stand-in and do not model the real spread. The fund's average daily range of 0.34% is small, so a charge of 5 or 10 basis points is a large share of a typical day's move compared with an equity fund. That is why the result is so sensitive.

A rule making 21 round trips with an average winner of 1.78% has little room for execution cost. The two long trades produced the gain, and the short trades produced losses even before costs.

Changing the parameters

VersionCAGRMax drawdownRound tripsWin rateFinal value
Published rules0.4%−6.5%2129%$10,213
100-day SMA0.3%−6.4%4330%$10,182
150-day SMA−0.4%−8.5%3724%$9,762
250-day SMA0.2%−7.6%1932%$10,101

Changing the window

Three variants of the averaging window ran on BND.

The published 200-day rule had a CAGR of 0.37%, a drawdown of 6.54% and a Sharpe ratio of 0.12.

Every variant earned roughly the same as the published rule or less, and none was meaningfully better. The 100-day window made 43 trades, more than the published 21, and finished only a little behind at 0.31% with a slightly shallower drawdown of 6.37%. The 150-day window did worst, with a negative CAGR of -0.42% and the deepest drawdown, 8.46%. The 250-day window made 19 trades and returned 0.17%.

The results do not follow the window length. The 150-day window was the worst, with the 100-day and 250-day versions on either side of it both positive. On a fund whose price rarely moves far from its average, changing the window changes which small whipsaws happen, and the net result stays near zero. No variant earned a Sharpe ratio above 0.12.

All four versions finished ahead of buy and hold's -0.8% CAGR, and all four had shallower drawdowns than the fund's 17.64%. The sign of the result held across the windows even though the size is small.

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

How BND behaved

BND's buy-and-hold total return in the profile data was -4.67% over the window, a CAGR of -0.83%, with annualized volatility of 5.78%. Its deepest drawdown was 18.09%, from 2021-01-04 to 2022-10-20, and it did not recover. The longest drawdown lasted 1,443 sessions, essentially the whole window. Up days were 48.93% of sessions, with an average gain of 0.28% and an average loss of 0.29%.

Sessions ranged 0.34% on average, and the average overnight gap was 0.2%. Overnight log return was 4.42% while the intraday figure was -9.19%, so gains arrived between the close and the open and losses arrived during the day. A rule that trades at the open sits through both parts in turn.

Against SPY the fund shows a correlation of 0.21 and a beta of 0.07, and against TLT a correlation of 0.92 and a beta of 0.35. AGG at 1, IEF at 0.98, IGIB at 0.96, IEI at 0.94 and TLT at 0.92 move most closely with it. TBF at -0.92, KMLM at -0.44, USDU at -0.39, CTA at -0.36 and RINF at -0.35 move least with it. The rule on AGG earned 0.31% with a drawdown of 6.23% and 25 round trips, close to BND's result, because the two funds hold almost the same bonds.

BND closed above its 200-day average on 64.34% of sessions and crossed the line 42 times. The sleeve held the fund on 55.5% of sessions, a lower share that matches the opening months before the average existed. RSI(14) fell below 30 on 57 sessions, and the median 20-day forward return after those sessions was -0.85%, against a baseline median of 0.07%. RSI(2) fell below 10 on 176 sessions, with a median 20-day forward return of 0.1%. Oversold readings on this fund were not followed by rebounds. The fund never fell 10% or more from a 20-day high.

The worst days were -1.62% on 2022-06-13, -1.25% on 2022-09-26 and -1.2% on 2022-03-02, and the best was +2.06% on 2022-11-10. A bond fund with daily moves of this size gives a trend rule little to work with.

The rules

Own the asset when price closes above its 200-day average; hold cash when it closes below.

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

One rule and one number. Price above the 200-day moving average has historically coincided with better returns and lower volatility than price below it. This template uses no crossovers and no oscillators, only which side of the long-term average the price is on.

Good for: a first systematic strategy, simple enough to audit every trade.
Watch out: price whips around the 200-day line during volatile bottoms, generating clusters of buy-sell pairs. Some traders add a small buffer band to reduce churn.

How a 200-day line treats a bond fund

The rule buys when price is above the 200-day average and sells when it is below. On an equity index that line is crossed a few times a year. On BND it was crossed 42 times in 5.74 years, because bond prices drifted lower for most of the window and moved in a narrow band around their average. Each crossing was a buy or a sell.

The one clear benefit was in 2022, when the rule held cash and the fund fell 12.8%. The one clear cost was the rest of the window, where the rule paid for a long run of small whipsaws and was out for part of the 2023 and 2025 gains. In the end the benefit was larger than the cost, and the rule finished ahead of holding.

Among the twelve templates on BND the filter's 0.37% sat mid-table. The RSI(2) snapback earned 1.41% with a drawdown of 9.14%, the EMA 12/26 trend 1.02% with 4.96%, the golden cross 0.72% with 6.88% and the SMA 10/50 trend 0.52% with 6.62%. The dip buyer and the momentum breakout both show 0% CAGR and 0% drawdown, which fits templates that made no trades. Five more lost money: the RSI mean reversion at -0.23%, the weekly 7% target at -0.47%, the monthly cycle at -0.95%, the 3-month momentum at -0.98% and the trend with trailing stop at -1.08%. The monthly cycle's drawdown of 18.92% was the deepest of the 12.

The faster trend rules did better than the slow one here. The EMA 12/26 trend had the best result among the trend rules, with the shallowest drawdown of all 12 at 4.96%, apart from the two templates that never traded. A faster rule exits sooner when a bond fund turns down.

Among the bond funds the filter was best on SGOV at 3.22% with a drawdown of 0.02% and 5 round trips. SGOV barely moves, so the rule stays in the fund almost the whole window. On TLT the filter returned -7.58% with a drawdown of 40.21% and 48 round trips, the worst of the group. BND sits between the two extremes. The full list of results for the fund is on the BND hub.

Run 200-day regime filter 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 200-day regime filter beat buy-and-hold on BND?

Over 2021-01-04 to 2026-10-02, 200-day regime filter on BND returned 0.4% annualized vs −0.8% for buy-and-hold: it beat buy-and-hold by 1.2% per year, with a maximum drawdown 11.1 points shallower than holding (6.5% vs 17.6%).

How many trades did it make?

21 completed round trips over 5.7 years (42 fills), with 29% of round trips closing profitably.

Why the 200-day average specifically?

It approximates a year of trading days and has been studied across decades of data. It is not the best window for every asset. The per-ETF backtests here show where it helped and where it didn't.

Did the 200-day regime filter beat buy and hold on BND?

Yes, narrowly. From 2021-01-04 to 2026-10-02 it returned 0.37% a year against -0.8% for buy and hold, ending at $10,213 against $9,549. Its maximum drawdown was 6.54% against 17.64%.

How many trades did it make?

It made 21 closed round trips and 42 fills, with nothing open at the end. Six won, a win rate of 29%. The average winner made 1.78% and the average loser lost 0.55%.

Where did the gain come from?

Mostly from two long trades. One ran 407 days from 2023-11-28 and made 5.09%, and one ran 356 days from 2025-05-27 and made 4.57%. The rule also sat in cash through 2022, when the fund lost 12.8%.

What did trading costs do?

They erased the return. At 5 basis points per fill the CAGR was 0.01% and the final value $10,005. At 10 basis points the CAGR was -0.35% and the final value $9,801.

Would a different moving-average window have helped?

Not in this test. The 100-day window returned 0.31%, the 150-day -0.42% and the 250-day 0.17%, against 0.37% for 200 days. The differences are small and not in one direction.

Why does the rule trade so often on a bond fund?

BND crossed its 200-day average 42 times in the window, and the rule made one fill per crossing, 42 in all. The fund stayed close to its average, so small moves produced many crossings.

Why were the first nine months of 2021 flat?

The first entry was on 2021-10-28, about 200 sessions after the data starts on 2021-01-04. A 200-day average needs 200 sessions of history, so the timing is consistent with the rule waiting for its indicator.

Related

200-Day SMA Regime Filter 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.