200-Day SMA Regime Filter on SGOV
iShares 0-3 Month Treasury Bond ETF: T-bills, often used as the cash leg of rotation strategies. Backtest 2021-01-04 to 2026-10-02, $10,000 starting capital, computed by the same engine that runs live DeployQuant strategies.
The 200-day regime filter holds SGOV while yesterday's close is above its 200-day simple average and moves to cash when the close drops below. SGOV is a fund of 0 to 3 month Treasury bills, and the fund note describes it as the cash leg of rotation strategies. From 2021-01-04 to 2026-10-02 the rule returned 3.22% a year, turned $10,000 into $11,996.96 and had a 0.02% maximum drawdown. It completed 5 round trips, won 2 of them, and still held a 6th position at the end.
Buy-and-hold on SGOV returned 3.22% a year, ended at $11,995.79 and had the same 0.02% drawdown. The two results differ by $1.17 of end equity. The rule beat buy-and-hold in 2022 by 0.1 point and matched it in every other year. Among the 12 templates on SGOV it ranked 2nd, level with golden cross and trend plus trailing stop at 3.22%. Among the 59 funds for this rule, SGOV ranked 27th.
This page is a control. A trend filter exists to step aside when price falls, and SGOV does not fall. The test shows what the rule does when there is nothing to avoid, and the answer is that it does nearly nothing. The numbers also show where ratios break down: the Sharpe ratio is 14.13, and that figure says more about a volatility of almost zero than about skill. The test is one window and the headline run has no fees.
Year by year
| Year | 200-day regime filter | buy & hold |
|---|---|---|
| 2021 | 0.0% | 0.0% |
| 2022 | 1.6% | 1.5% |
| 2023 | 5.0% | 5.0% |
| 2024 | 5.2% | 5.2% |
| 2025 | 4.1% | 4.1% |
| 2026 | 2.7% | 2.7% |
Year by year against buy-and-hold
The rule's calendar returns were 0% in 2021, 1.6% in 2022, 5% in 2023, 5.2% in 2024, 4.1% in 2025 and 2.7% in 2026 to date. Buy-and-hold returned 0%, 1.5%, 5%, 5.2%, 4.1% and 2.7%. The only difference is 2022, where the rule is 0.1 point ahead.
The yearly pattern is the fund's income. A Treasury bill fund earns interest, so its return follows the level of short-term rates. The fund returned about nothing in 2021, then 1.6% in 2022, and then 5%, 5.2%, 4.1% and 2.7%. Those are the figures an investor holding cash-like paper would see, and the filter did not change any of them.
The 0.1 point in 2022 is a rounding-level difference that comes from the cluster of short trades before 2022-01-26. The rule was in cash for some of those days and in the fund for others. The five completed trades happened between 2021-10-19 and 2022-01-25. After 2022-01-26 the rule bought and never sold again.
That last point matters for reading the whole window. For the 4 years and 8 months after 2022-01-26 the strategy and buy-and-hold are the same position. The yearly returns for 2023 to 2026 are identical because the account held the fund the entire time. The filter produced one decision in the second half of the test, and it was to stay in.
2021 shows 0% for both, since the fund's monthly returns were 0 for the first nine months of the window. The full-year return of the fund itself was 0.05%. The rule's first fill came on 2021-10-19.
Month by month
| Year | Jan | Feb | Mar | Apr | May | Jun | Jul | Aug | Sep | Oct | Nov | Dec |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2021 | 0.0% | 0.0% | 0.0% | 0.0% | 0.0% | 0.0% | 0.0% | 0.0% | 0.0% | 0.0% | 0.0% | 0.0% |
| 2022 | 0.0% | 0.0% | 0.0% | 0.0% | 0.1% | 0.1% | 0.1% | 0.2% | 0.2% | 0.2% | 0.3% | 0.4% |
| 2023 | 0.3% | 0.3% | 0.4% | 0.3% | 0.4% | 0.5% | 0.4% | 0.5% | 0.4% | 0.4% | 0.5% | 0.4% |
| 2024 | 0.4% | 0.4% | 0.4% | 0.4% | 0.5% | 0.4% | 0.4% | 0.5% | 0.4% | 0.4% | 0.4% | 0.4% |
| 2025 | 0.3% | 0.3% | 0.3% | 0.3% | 0.3% | 0.3% | 0.3% | 0.4% | 0.3% | 0.3% | 0.3% | 0.3% |
| 2026 | 0.3% | 0.3% | 0.3% | 0.3% | 0.3% | 0.3% | 0.3% | 0.3% | 0.3% | 0.1% | – | – |
The monthly table
The monthly returns tell a single story: income rising and then levelling off. In 2021 every month is 0 except October at 0.01% and December at 0.01%. In 2022 the figures climb: 0.02% in January, 0.01% in February and March, 0.02% in April, 0.06% in May, 0.07% in June and July, 0.2% in August, 0.22% in September, 0.2% in October, 0.3% in November and 0.36% in December.
From 2023 the monthly return sits between 0.28% and 0.49%. January 2023 returned 0.32%, February 0.34%, March 0.4%, and August 2023 was the best month at 0.49%. 2024 ran between 0.39% and 0.47%. 2025 ran between 0.3% and 0.37%, and 2026 has been 0.28% to 0.32% in each month through September, with 0.06% for the first days of October.
No month is negative for the rule, and the worst month in the table is January 2021 at 0%. The fund has no month of the sort that the equity pages show, where the best and worst months are several percentage points apart. The spread from 0.28% to 0.49% across four years is the width of the whole distribution.
The calendar averages confirm it. Across the years, each calendar month averaged between 0.24% and 0.31%, with February lowest at 0.24%. There is no seasonality to find because the return is an accrual, not a price move. A rule built on months, like the monthly cycle, earned 2.98% on the same fund, a little less than holding.
Compare the bond funds in the same category, where the monthly table has real swings. The TLT version of this rule shows what the monthly distribution looks like when price moves.
Every trade
200-day regime filter on SGOV made 5 closed round trips and one position still open at the end of the test, an average hold of 18 days, an average winner of 0.02%, an average loser of 0.00%, a profit factor of 3.00, a longest losing streak of 2. It held a position at the close on 85.7% of trading days.
| Entry | Entry price | Exit | Exit price | Return | Days held |
|---|---|---|---|---|---|
| 2021-10-19 | $83.40 | 2021-10-21 | $83.40 | 0.0% | 2 |
| 2021-10-22 | $83.38 | 2021-10-26 | $83.40 | 0.0% | 4 |
| 2021-10-27 | $83.40 | 2021-10-28 | $83.39 | −0.0% | 1 |
| 2021-11-01 | $83.40 | 2022-01-05 | $83.40 | 0.0% | 65 |
| 2022-01-06 | $83.40 | 2022-01-25 | $83.41 | 0.0% | 19 |
| 2022-01-26 | $83.39 | open | – | 20.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 six trades
There were 6 trades, 5 closed and 1 open. The five closed trades were all in the first few months. The first entered on 2021-10-19 at $83.40 and exited on 2021-10-21 at $83.40 for 0%, held for 2 days. The second entered on 2021-10-22 at $83.38 and exited on 2021-10-26 at $83.40 for 0.02%, in 4 days. The third entered on 2021-10-27 at $83.40 and exited on 2021-10-28 at $83.39 for -0.01%, in 1 day. The fourth entered on 2021-11-01 at $83.40, held for 65 days, and exited on 2022-01-05 at $83.40 for 0%. The fifth entered on 2022-01-06 at $83.40 and exited on 2022-01-25 at $83.41 for 0.01%, in 19 days.
Two of the five were wins, at 0.02% and 0.01%. One lost 0.01%, and two were flat. The average win was 0.02% and the average loss rounds to 0%. The profit factor of 3 is the ratio of tiny gains to a tiny loss and means nothing about edge. The median hold was 4 days and the longest was 65 days.
Adjusted prices are lower than the quotes printed at the time. The entries at $83.38 to $83.40 give the picture: five trades in three months moved the price by a cent or two.
The sixth trade entered on 2022-01-26 at $83.39 and is still open. It shows a gain of 20.44% at the end of the test, which is the fund's gain from January 2022 to October 2026. This is the single position that made the account's return.
That is how a trend filter on a flat asset behaves. It enters when the price pokes above its average, it exits when the price dips below, and it does so repeatedly when price is pinned to the line. The strategy page warns about this: price whips around the 200-day line and generates clusters of buy-sell pairs. Here the cluster was five trades in about three months, all at no profit. The line was crossed 10 times in total and the fund sat above it on 99.52% of sessions.
Largest drawdowns
| Peak | Low point | Depth | Days to low | Recovered | Days to recover |
|---|---|---|---|---|---|
| 2021-10-18 | 2021-10-20 | −0.0% | 2 | 2021-10-21 | 1 |
| 2021-10-26 | 2021-11-12 | −0.0% | 17 | 2022-01-26 | 75 |
| 2021-10-22 | 2021-10-25 | −0.0% | 3 | 2021-10-26 | 1 |
Buy-and-hold's deepest drawdown ran from 2021-03-02 to 2021-03-03 and reached −0.0%.
Drawdowns
The maximum drawdown was 0.02%, and it was the same for buy-and-hold. The three largest drawdowns for the rule were all 0.02% and all inside the five-trade cluster: from 2021-10-18 to 2021-10-20, recovered the next day, from 2021-10-22 to 2021-10-25, recovered the next day, and from 2021-10-26 to 2021-11-12, recovered on 2022-01-26 after 75 days.
The 75-day recovery reads dramatic and is not. A 0.02% drawdown is two basis points of equity, the size of a rounding difference in the fund's adjusted price, and it took 75 days to be overtaken only because the account was earning almost nothing at the time. Buy-and-hold's three largest drawdowns were also 0.02%, in March, July and August 2021.
The fund's own maximum drawdown was 0.02%, from 2021-03-01 to 2021-03-03, recovering on 2021-03-04, and the longest stretch below a prior high was 11 sessions. The worst day for the fund was -0.02% and the best was 0.08% on 2023-04-05.
A drawdown figure this small means the risk side of the test has nothing to compare. The regime filter exists to cut drawdown, and the drawdown here is 0.02% for both. The cost runs, covered next, show a larger drawdown than the base run, which is a reminder that friction is the only thing that moved the risk numbers.
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) | 3.2% | −0.0% | $11,997 | 14.13 |
| 5 basis points | 3.1% | −0.5% | $11,926 | 13.07 |
| 10 basis points | 3.0% | −1.0% | $11,873 | 11.32 |
What slippage does
At 5 basis points of slippage the CAGR falls from 3.22% to 3.12% and the end equity from $11,996.96 to $11,926.28. At 10 basis points the CAGR is 3.04% and the end equity is $11,872.98. The maximum drawdown rises from 0.02% to 0.5% and then 1.03%, and the Sharpe ratio goes from 14.13 to 13.066 and 11.32.
This is the clearest case on the page of friction exceeding the signal. The rule made 11 fills in 5.74 years, which is few, and each fill cost 5 or 10 basis points against a fund that earns a few tenths of a percent a month. The 10 basis point run takes the drawdown to 1.03%, and that comes entirely from paying the charge on a fund whose price barely moves.
SGOV is liquid. It averaged $532,191,384 a day over the window with a median minute volume of 8,376 shares, so in practice the spread on a fund like this is small. The cost runs apply a flat charge regardless of liquidity, so they overstate the friction for SGOV and understate it for thin funds elsewhere in the library. The conclusion holds either way: a filter that trades 11 times and avoids no losses cannot pay for any friction.
Holding the fund needs one fill, and the rule needed 11. On a cash-like fund the extra fills are the only thing that separates the two results.
Changing the parameters
| Version | CAGR | Max drawdown | Round trips | Win rate | Final value |
|---|---|---|---|---|---|
| Published rules | 3.2% | −0.0% | 5 | 40% | $11,997 |
| 100-day SMA | 3.2% | −0.1% | 17 | 41% | $11,995 |
| 150-day SMA | 3.2% | −0.1% | 14 | 43% | $11,996 |
| 250-day SMA | 3.2% | −0.0% | 1 | 100% | $11,997 |
Parameter variants
The three variants change the averaging window. A 100-day average returned 3.22% with a 0.05% drawdown, 17 trades and 7 wins. A 150-day average returned 3.22% with a 0.05% drawdown, 14 trades and 6 wins. A 250-day average returned 3.22% with a 0.02% drawdown, 1 trade and 1 win. The base 200-day setting returned 3.22%.
All four have the same CAGR. The only differences are the number of trades and the third decimal of the drawdown. The shorter windows traded 17 and 14 times and gained nothing for it. The longest window made a single trade, bought once and held, which is the same position as buy-and-hold, and its Sharpe ratio of 14.255 is the highest of the four.
A parameter table that moves nothing is itself a result. It says the rule has no setting to overfit on this fund, because the fund gives no price signal for the average to react to. On a fund that moves, the same table can show the CAGR changing from window to window as each version catches different swings.
The Sharpe ratios run from 13.99 to 14.255 here. Those values would be extraordinary for any ordinary asset. They are a product of dividing a return of a few percent a year by a volatility of 0.24%. A reader should not compare them with the Sharpe ratios on equity pages, where the denominator is several times larger.
How SGOV behaved
| Measure | SGOV |
|---|---|
| Data in this test | 2021-01-04 to 2026-10-02 (1444 sessions) |
| Total return, buy and hold | 20.5% |
| Annualized volatility | 0.2% |
| Deepest drawdown | −0.0% (2021-03-01 to 2021-03-03) |
| Up days | 69.0% |
| Average daily range | 0.01% |
| Average overnight gap | 0.01% |
| Correlation to SPY | -0.01 |
| Correlation to QQQ | -0.01 |
| Correlation to TLT | 0.01 |
| Sessions above the 200-day average | 99.5% |
| Crossings of the 200-day average | 10 |
| Falls of 10% or more from a 20-day high | 0 |
How SGOV behaved
SGOV returned 20.47% in total over the window, 3.3% a year, with annualised volatility of 0.24%. Its maximum drawdown was 0.02% and its longest stretch below a prior high was 11 sessions. Calendar returns were 0.05% in 2021, 1.57% in 2022, 5.12% in 2023, 5.29% in 2024, 4.23% in 2025 and 2.76% in 2026 to date. It was up on 68.95% of days.
The daily moves are tiny: an average up day of 0.02%, an average down day of -0.01% and an average intraday range of 0.01%. The beta to SPY, QQQ and TLT was 0 in each case, with correlations of -0.01, -0.01 and 0.01. The fund is not connected to stock or bond price swings. Of the total log return, 95.25% came overnight and 4.75% intraday, which fits an income accrual that shows up in the price between sessions.
The fund sat above its 200-day average on 99.52% of sessions and crossed it 10 times. RSI(14) never fell below 30 on any session, and it was above 70 on 1,085 sessions. RSI(2) fell below 10 on 17 sessions. This is why the RSI templates did nothing on SGOV: RSI mean reversion, the dip buyer and momentum breakout all show 0% because their entry conditions never occurred. There were no drawdown events of 10% in 20 days, so the dip buyer had no entry either.
The one-day autocorrelation was 0.06. Average daily dollar volume was $532,191,384. The SGOV fund page lists the full profile.
A fund like this answers one question for a strategy test: what does the strategy cost when there is nothing to avoid and nothing to catch? The best any rule did was 3.22%, the same as holding the fund.
The rules
Own the asset when price closes above its 200-day average; hold cash when it closes below.
- WHEN the market opens · IF not invested AND yesterday's close > SMA(200) · THEN buy with 98% of the sleeve
- 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 the rule fits this fund
The strategy page describes the rule as a first systematic strategy that is simple enough to audit every trade. On SGOV, auditing every trade takes a minute: six trades, all within three months, with returns between -0.01% and 0.02% except the open position. The rule is easy to read and has nothing to decide.
Across all 59 funds the rule has a median CAGR of 1.84%, and across the 7 bond funds the median is 0.37%. SGOV at 3.22% is the highest in the group. IGIB returned 1.36% with a 5.44% drawdown and 26 round trips. IEI returned 1.03% with 4.62% and 21 round trips. BND returned 0.37%, AGG 0.31%, IEF -1.53% with 30 round trips, and TLT -7.58% with a 40.21% drawdown and 48 round trips. The trade counts rise as the funds become more volatile, and so do the losses. The TLT result shows the rule doing the job it was designed for and still losing money in a falling bond market.
On SGOV, the templates group together. Golden cross, the 200-day filter and trend plus trailing stop all returned 3.22% with a 0.02% drawdown. SMA 10/50 and EMA 12/26 returned 3.21% with 0.05%. The weekly 7% target returned 3.2%, the monthly cycle 2.98% with a 0.06% drawdown and RSI(2) snapback 0.02% with 0.08%. The four templates that need volatility, RSI mean reversion, the dip buyer, momentum breakout and 3-month momentum, returned 0% and made no trades. The golden cross result matches this one on return and drawdown.
The test stops at one window, one fund and no fees in the headline. Nothing here is investment advice, and backtests are hypothetical. The strategy hub shows the rule on all 59 funds, where it has something to decide.
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 SGOV?
Over 2021-01-04 to 2026-10-02, 200-day regime filter on SGOV returned 3.2% annualized vs 3.2% for buy-and-hold: it beat buy-and-hold by 0.0% per year, with a maximum drawdown of 0.0% (buy-and-hold: 0.0%).
How many trades did it make?
5 completed round trips over 5.7 years (11 fills), with 40% 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.
How did the 200-day regime filter perform on SGOV?
From 2021-01-04 to 2026-10-02 it returned 3.22% a year, ended at $11,996.96 from $10,000 and had a 0.02% maximum drawdown. Buy-and-hold on SGOV returned 3.22% and ended at $11,995.79. The two differ by $1.17.
Why is the Sharpe ratio 14.13?
SGOV's volatility is 0.24% a year, so a return of about 3% divided by a tiny number gives a very large ratio. The figure reflects the near-zero volatility and says little about the rule. Compare it only with other cash-like funds.
Why did the strategy make six trades?
Five trades happened between 2021-10-19 and 2022-01-25, when price kept crossing its 200-day average by a cent or two. The sixth entered on 2022-01-26 and was still open at the end of the test, showing a 20.44% gain.
Do different moving-average windows change the result?
No. The 100-day, 150-day and 250-day versions all returned 3.22%. They differ in trade counts, at 17, 14 and 1, and in the third decimal of the drawdown.
What do slippage costs do to this rule?
The rule made 11 fills. At 5 basis points the CAGR fell from 3.22% to 3.12% and at 10 basis points it fell to 3.04%, while the drawdown rose from 0.02% to 1.03%. Holding avoids those charges.
Why did the RSI strategies earn 0% on SGOV?
Their entry conditions never occurred. RSI(14) was never below 30 on SGOV, there were no 10% drawdowns inside 20 sessions, and no 10% burst in 20 days. They made no trades and stayed in cash.
Is SGOV a useful fund for testing trend rules?
It shows the cost of trading without anything to avoid. The best template returned 3.22%, the same as holding. Rules are more informative on funds that move, such as [TLT](/learn/strategies/sma200-regime/tlt/), where the same filter made 48 round trips.
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.