200-Day SMA Regime Filter on TBF
ProShares Short 20+ Year Treasury: -1x daily long-term Treasuries, a rising-rates position. 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 has one rule. Buy at the open when yesterday's close was above the 200-day simple average, and sell at the open when yesterday's close was below it. Here it is applied to TBF, the ProShares Short 20+ Year Treasury fund, which returns the opposite of long-term Treasuries each day. The test runs from 2021-01-04 to 2026-10-02 with $10,000 at the start, no fees or slippage in the headline run, and orders filled on minute bars.
The strategy ended at $12,713, a CAGR of 4.27% and a total return of 27.13%. Buy-and-hold on TBF ended at $19,377, a CAGR of 12.21%. The strategy trailed in every one of the six calendar years and had a deeper maximum drawdown, 23.97% against 17.58%. The Sharpe ratio was 0.39 against 0.85.
TBF is one of the few inverse funds with a good result in this window, because long Treasuries fell sharply in 2022 and kept falling. The strategy still captured only part of that move. It made 27 closed round trips, won 10 of them, a win rate of 37%, and had one position open at the end. The average winner returned 3.86% and the average loser returned -1.37%, so a few large winners carried a low hit rate. One trade, held for 352 days from 2022-02-01, made 26.37% and produced most of the profit.
The test covers one window and one fund, with daily decisions and no margin. It is hypothetical and not a forecast. The 200-day SMA regime filter page covers the rule across 59 funds, and the TBF profile covers the fund.
Year by year
| Year | 200-day regime filter | buy & hold |
|---|---|---|
| 2021 | 0.0% | 1.7% |
| 2022 | 33.2% | 41.2% |
| 2023 | −11.6% | 2.3% |
| 2024 | −0.7% | 15.2% |
| 2025 | −1.8% | 2.1% |
| 2026 | 10.8% | 12.8% |
How each year compared
The year table has a clear shape. In 2021 the strategy returned 0% and the fund returned 1.7%, because TBF stayed below its 200-day average for the whole year and the rule did not buy. The first entry came on 2022-01-18 at an adjusted price of $14.55.
2022 was the main year. The fund returned 41.2% and the strategy returned 33.2%, a shortfall of 8 points that came from the late start and from two short trades in January that lost a little. The strategy then entered on 2022-02-01 at $14.37 and held through the rest of the year and into January 2023. That trade, the longest in the test, closed on 2023-01-19 at $18.16 for a gain of 26.37% over 352 days. The month table for 2022 shows gains in April of 10.13%, September of 8.77% and October of 6.43%, and losses of 6.62% in November.
2023 was the year the rule did the most damage. The fund returned 2.3% and the strategy lost 11.6%, a gap of 13.9 points. Eleven round trips closed in 2023 and only 3 were winners. The fund was moving sideways, crossing its 200-day line repeatedly, and the rule bought and sold for brief periods. From January to May 2023 there were nine trades, and most lost between 0.05% and 2.11%. The one 214-day trade from 2023-05-15 to 2023-12-15 made 5.83% and was the only large winner, but December 2023 itself lost 7.42% and November lost 8.63%.
2024 returned -0.7% for the strategy against 15.2% for the fund, a gap of 15.9 points, the widest in the table. Ten round trips closed in 2024 and 3 won. The fund rose through the year, but a strategy that bought and sold at the 200-day line missed most of the rise. The list shows several short trades between January and July 2024 and almost nothing for months afterward. 2025 gave -1.8% against 2.1%, and 2026 so far gives 10.8% against 12.8%.
The strategy never beat buy-and-hold in any year. The gap list reads -1.7 in 2021, -8 in 2022, -13.9 in 2023, -15.9 in 2024, -3.9 in 2025 and -2 in 2026. The shortfall grows in the years when the fund moved in a range, which is the case the strategy page warns about: price whips around the 200-day line during volatile bottoms and the rule produces clusters of buy-sell pairs.
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 | −2.2% | 1.3% | 4.9% | 10.1% | 1.6% | 1.1% | −2.5% | 4.6% | 8.8% | 6.4% | −6.6% | 2.7% |
| 2023 | −7.8% | 2.5% | −7.3% | −2.1% | −1.9% | 0.3% | 3.1% | 3.8% | 9.0% | 6.1% | −8.6% | −7.4% |
| 2024 | −0.1% | −0.0% | −1.5% | 7.4% | −2.1% | −6.2% | −3.3% | 0.0% | 0.0% | 2.2% | −1.4% | 5.0% |
| 2025 | 0.8% | −4.9% | 1.7% | −1.3% | 3.9% | −2.1% | 1.5% | 0.7% | −3.1% | 0.0% | 0.0% | 1.5% |
| 2026 | 0.6% | −2.6% | 1.4% | 1.3% | −0.1% | −0.7% | 5.1% | −0.3% | 5.7% | 0.2% | – | – |
The month table
The month table contains blanks. January to December 2021 are all 0.0%, as is August and September 2024, November 2025 and a few others, each a month in cash. The strategy was invested on 67.9% of trading days.
The best month was April 2022 at 10.13%, almost the same as the fund's best month, 10.14%, in the same month. The worst was November 2023 at -8.63%, against -8.68% for the fund. When the strategy is invested, its monthly return tracks the fund's closely, as it should for a long position of 98% of the sleeve. Its returns differ from the fund's by the months it is out.
The run from September 2022 to October 2022 gained 8.77% and 6.43%, then November 2022 gave back 6.62% and January 2023 lost 7.8%. March 2023 lost 7.33%. September and October 2023 gained 8.98% and 6.06%, and the next two months lost 8.63% and 7.42%. That is the whipsaw profile in monthly form: two strong months followed by two weak ones. The fund's calendar averages show November at -3.94% and September at 3.74%, each over five or six observations, and the strategy's results fit them, but the sample is small and the rule does not use the calendar.
In 2026 the table shows 1.37% in March, 1.31% in April and 5.12% in July. September 2026 returned 5.69%. The position opened on 2026-03-11 at $23.64 is still held at the end of the window with a mark of 13.43%, so the 2026 months include an open trade.
Every trade
200-day regime filter on TBF made 27 closed round trips and one position still open at the end of the test, an average hold of 45 days, an average winner of 3.86%, an average loser of −1.37%, a profit factor of 1.47, a longest losing streak of 6. It held a position at the close on 67.9% of trading days.
| Entry | Entry price | Exit | Exit price | Return | Days held |
|---|---|---|---|---|---|
| 2022-01-18 | $14.55 | 2022-01-24 | $14.20 | −2.4% | 6 |
| 2022-01-26 | $14.40 | 2022-01-28 | $14.42 | 0.1% | 2 |
| 2022-02-01 | $14.37 | 2023-01-19 | $18.16 | 26.4% | 352 |
| 2023-01-20 | $18.36 | 2023-02-02 | $18.01 | −1.9% | 13 |
| 2023-02-06 | $18.57 | 2023-03-16 | $18.30 | −1.4% | 38 |
| 2023-03-17 | $18.44 | 2023-03-20 | $18.42 | −0.1% | 3 |
| 2023-03-21 | $18.71 | 2023-03-23 | $18.70 | −0.1% | 2 |
| 2023-03-28 | $18.87 | 2023-04-03 | $18.55 | −1.7% | 6 |
| 2023-04-17 | $18.86 | 2023-04-26 | $18.48 | −2.0% | 9 |
| 2023-04-28 | $18.57 | 2023-05-01 | $18.70 | 0.7% | 3 |
| 2023-05-02 | $18.92 | 2023-05-03 | $18.52 | −2.1% | 1 |
| 2023-05-08 | $19.00 | 2023-05-12 | $18.73 | −1.4% | 4 |
| 2023-05-15 | $19.05 | 2023-12-15 | $20.16 | 5.8% | 214 |
| 2024-01-08 | $20.78 | 2024-01-09 | $20.64 | −0.7% | 1 |
| 2024-01-10 | $20.63 | 2024-02-01 | $20.54 | −0.4% | 22 |
| 2024-02-05 | $21.13 | 2024-03-06 | $20.99 | −0.7% | 30 |
| 2024-03-13 | $21.26 | 2024-06-06 | $21.77 | 2.4% | 85 |
| 2024-06-10 | $22.24 | 2024-06-14 | $21.43 | −3.6% | 4 |
| 2024-07-01 | $22.39 | 2024-07-09 | $21.92 | −2.1% | 8 |
| 2024-07-10 | $21.93 | 2024-07-12 | $21.69 | −1.1% | 2 |
| 2024-07-22 | $21.75 | 2024-07-30 | $21.71 | −0.2% | 8 |
| 2024-10-08 | $21.62 | 2024-10-17 | $21.67 | 0.2% | 9 |
| 2024-10-18 | $21.74 | 2024-12-09 | $21.76 | 0.1% | 52 |
| 2024-12-10 | $22.02 | 2025-04-07 | $22.37 | 1.6% | 118 |
| 2025-04-08 | $23.02 | 2025-09-08 | $23.13 | 0.5% | 153 |
| 2025-12-05 | $23.39 | 2026-02-11 | $23.56 | 0.7% | 68 |
| 2026-02-12 | $23.47 | 2026-02-13 | $23.16 | −1.3% | 1 |
| 2026-03-11 | $23.64 | open | – | 13.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.
27 closed trades and one open
The facts count 28 trades, 27 closed and 1 open at the end. Of the closed trades, 10 won. The average winner returned 3.86%, the average loser returned -1.37%, and the profit factor was 1.47. The median return was -0.44%, the median hold was 8 days, the average hold was 45 days, the longest was 352 days and the shortest 1 day. The longest winning streak was 5 and the longest losing streak was 6.
The gap between the median hold of 8 days and the average of 45 days shows two kinds of trade. Most are short and small. A few are long and large. The best trade, 2022-02-01 to 2023-01-19, held for 352 days from $14.37 to $18.16 and returned 26.37%. The second, 2023-05-15 to 2023-12-15, held 214 days and returned 5.83%. Next came 2024-03-13 to 2024-06-06 at 2.4% over 85 days, and 2024-12-10 to 2025-04-07 at 1.59% over 118 days.
The worst trades were small. The worst, 2024-06-10 to 2024-06-14, lost 3.64% in 4 days. Others lost 2.41% from 2022-01-18, 2.11% on 2023-05-02 to 2023-05-03, 2.1% in July 2024 and 2.01% in April 2023. No loss was above 3.64%. A rule that exits when the price crosses below a long average gives up small amounts on each false start, and that is the cost of the signal.
Many trades last only a few days: 2023-03-17 to 2023-03-20 lost 0.11%, 2023-03-21 to 2023-03-23 lost 0.05%, 2023-05-02 to 2023-05-03 lost 2.11%, 2024-01-08 to 2024-01-09 lost 0.67%, and 2026-02-12 to 2026-02-13 lost 1.32%. These are crossings and re-crossings of the 200-day line. Each costs a small amount of slippage in a real account.
The open trade deserves a note. It was entered on 2026-03-11 at $23.64 and carries a gain of 13.43% as of the last day. That figure is unrealised, and the closed-trade statistics above leave it out, but the strategy's CAGR of 4.27% includes it, since it is part of the equity curve. Without that open trade the final result would be lower.
Per exit year, the closed trips were 2 in 2022, 11 in 2023, 10 in 2024, 2 in 2025 and 2 in 2026. The wins were 1, 3, 3, 2 and 1. The activity is concentrated in 2023 and 2024, the two years when the fund stayed near its 200-day line.
Largest drawdowns
| Peak | Low point | Depth | Days to low | Recovered | Days to recover |
|---|---|---|---|---|---|
| 2022-10-24 | 2024-10-16 | −24.0% | 723 | not yet | – |
| 2022-06-14 | 2022-08-01 | −9.9% | 48 | 2022-09-06 | 36 |
| 2022-05-06 | 2022-05-25 | −4.8% | 19 | 2022-06-13 | 19 |
Buy-and-hold's deepest drawdown ran from 2023-10-19 to 2023-12-27 and reached −17.6%.
A drawdown with no recovery
The deepest drawdown was 23.97%, from a peak on 2022-10-24 to a trough on 2024-10-16, after 723 days. It had not recovered by the end of the window. The earlier drawdowns were 9.91% from 2022-06-14 to 2022-08-01, recovered by 2022-09-06, and 4.79% from 2022-05-06 to 2022-05-25, recovered by 2022-06-13.
The peak on 2022-10-24 was also the day the fund itself peaked before its own 15.78% drawdown, which ran to 2022-12-07. The strategy lost money from that peak through almost all of 2023 and 2024, with the whipsaw losses described above, and the account fell for two years. It was still below that peak when the window closed.
Buy-and-hold had a smaller worst drawdown, 17.58%, from 2023-10-19 to 2023-12-27, recovered on 2025-05-21 after 511 days. Its other drawdowns were 15.78% and 15.69%, from 2021-03-18 to 2021-12-03. A strategy designed to reduce drawdowns increased the maximum, which is the opposite of what the 200-day filter is usually used for. The reason is the fund. The filter works best in a fund that falls for long stretches and rises for long stretches, and TBF after 2022 did neither: it kept crossing its average.
The fund's worst days were -3.84% on 2022-11-10, -3.43% on 2023-03-10 and -3.37% on 2022-09-28. The strategy had a position on those days. TBF's own maximum drawdown was 17.79% and its longest drawdown lasted 396 sessions. Only 2 events with a 10% fall inside 20 days occurred, over 7 days. A fund this calm leaves the filter little to avoid, and the cost of the whipsaw is larger than the benefit of any exit.
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) | 4.3% | −24.0% | $12,713 | 0.39 |
| 5 basis points | 3.8% | −25.4% | $12,378 | 0.35 |
| 10 basis points | 3.3% | −26.8% | $12,051 | 0.32 |
Cost runs
At 5 basis points per trade the CAGR is 3.79%, the end equity is $12,378, the maximum drawdown is 25.38% and the Sharpe ratio is 0.353. At 10 basis points the CAGR is 3.3%, the end equity is $12,051, the drawdown is 26.77% and the Sharpe ratio is 0.316. The strategy made 55 fills.
The decline is gradual. Cost lowers the result at each step, which is moderate compared with a strategy that trades every few days. Cost matters here, but it does not decide the result.
TBF trades less than the large funds. Its average daily dollar volume was $14,836,750 and its median minute volume was 810 shares, so the real spread is likely to be wider than on a broad index fund. The cost runs use a flat charge per trade and leave out the actual TBF spread, so the 10 basis point run is a reasonable stress case and the result in a live account could be worse.
Changing the parameters
| Version | CAGR | Max drawdown | Round trips | Win rate | Final value |
|---|---|---|---|---|---|
| Published rules | 4.3% | −24.0% | 27 | 37% | $12,713 |
| 100-day SMA | 1.8% | −21.5% | 38 | 34% | $11,082 |
| 150-day SMA | 3.8% | −25.2% | 27 | 26% | $12,351 |
| 250-day SMA | 6.7% | −18.6% | 28 | 43% | $14,532 |
Window length variants
Three other average lengths were run.
- 100-day SMA: CAGR 1.81%, drawdown 21.48%, end equity $11,082, Sharpe 0.208, 38 trades, 13 wins.
- 150-day SMA: CAGR 3.75%, drawdown 25.24%, end equity $12,351, Sharpe 0.356, 27 trades, 7 wins.
- 250-day SMA: CAGR 6.73%, drawdown 18.57%, end equity $14,532, Sharpe 0.559, 28 trades, 12 wins.
The longer the average, the better the result, in this window. The 100-day version made 38 trades and returned 1.81%. The 150-day version made 27 trades and returned 3.75%. The default 200-day returned 4.27% and the 250-day returned 6.73% with the lowest drawdown of the four, 18.57%, and the highest Sharpe ratio, 0.559.
A longer window is slower to change its mind, so it makes fewer false signals in a sideways fund. The 250-day variant won 12 of 28 trades, a higher proportion than the 10 of 27 for the default. All four variants still trailed buy-and-hold's 12.21%, so no length found the whole move.
The ordering is smooth, which is a good sign for the idea, but four windows in one market window is a small test. A result of 6.73% for the 250-day average is a number from one path, and a different decade of Treasury moves could reverse the order. It does not show that 250 is the right length for TBF.
How TBF behaved
| Measure | TBF |
|---|---|
| Data in this test | 2021-01-04 to 2026-10-02 (1444 sessions) |
| Total return, buy and hold | 96.9% |
| Annualized volatility | 15.3% |
| Deepest drawdown | −17.8% (2023-10-19 to 2023-12-27) |
| Up days | 50.2% |
| Average daily range | 0.93% |
| Average overnight gap | 0.55% |
| Correlation to SPY | -0.07 |
| Correlation to QQQ | -0.09 |
| Correlation to TLT | -1.00 |
| Sessions above the 200-day average | 78.8% |
| Crossings of the 200-day average | 55 |
| Falls of 10% or more from a 20-day high | 2 |
How TBF behaved
TBF holds the opposite of long-term Treasuries each day. Its correlation to TLT was -1 and its beta to TLT was -1, with an R-squared of 0.99 against that fund. Over the window it returned 96.88% in total, a CAGR of 12.52%, with annualized volatility of 15.32% over 1,444 sessions. Its correlation to SPY was -0.07 and to QQQ -0.09, so it moved independently of equities in this window.
TLT lost 40.49% over the same window. The leverage table shows an inverse of 1x on that move would give 40.49%, and TBF returned 96.88%, a gap of 56.39 points in the fund's favour. The daily-rebalanced ideal was 46.87%. The table shows how the gain compounded: TLT fell 31.21% in 2022 and TBF gained 42.06%, and in 2023 TLT rose 2.79% and TBF still gained 2.34%, because the daily reset interacts with volatility. The fund is a position on rising rates, and in this window rates rose.
TBF was up on 50.17% of days, with an average up day of 0.8% and an average down day of -0.74%. The fund was above its 200-day average on 78.8% of sessions and crossed it 55 times. That number matters for this strategy. 55 crossings in under six years means the average is a line the fund crossed often. Each crossing is a chance for a false signal, and the strategy made 55 fills in response.
Overnight returns made up 120.62% of the fund's log return and the intraday part was -20.62%. In other words, all of the gain came from overnight moves and the trading day itself lost money on net. The rule buys at the open, so it takes the intraday moves and the overnight gap that follows. It has the overnight return only when it holds through the close.
After RSI(14) fell below 30, over 14 sessions, the median 20-day forward return was 3.26%, against a baseline of 0.88%. After RSI(2) fell below 10, over 138 sessions, the median 5-day forward return was 0.59% against 0.21%. Short-term washouts have paid more than average on TBF, which helps to explain why the RSI(2) snapback did better than the trend filter on this fund.
Within the Inverse group, TBF is first for this rule at 4.27%. PSQ returned -2.33%, SPDN -4.5%, SH -4.87%, EEV -5.6%, SDS -7.53%, QID -10.46%, SQQQ -10.51%, REW -12.99%, TECS -13.86% and SOXS -19.74%. The category median was -7.53% and the median across all 59 funds was 1.84%. Across all 59 funds TBF ranks 24th for this strategy.
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 filter fits this fund
The rule uses one number and no thresholds. The strategy page recommends it as a first systematic rule, simple enough to audit each trade, and its caveat is about the case on this page: price whips around the 200-day line during volatile bottoms, giving clusters of buy-sell pairs. Adding a buffer band is the common fix, and the test does not include one.
Eighth of the 12 templates on TBF is the 200-day filter. The monthly cycle returned 11.93% with a drawdown of 17.64%, the trend plus trailing stop 11.25% with 16.61%, the RSI(2) snapback 9.67% with 7.67%, the weekly 7% target 9.36%, the golden cross 8.47%, the EMA 12/26 trend 7.6% and the SMA 10/50 trend 6.68% with 13.88%. Behind it were the dip buyer at 2.69%, the 3-month momentum at 1.17%, RSI mean reversion at 0.92% and the momentum breakout at -2.3%.
The RSI(2) snapback on TBF returned 9.67% with a drawdown of 7.67%, far below the filter's drawdown, so a rule that buys short washouts was better matched to this fund. The trend plus trailing stop returned 11.25%, so a trend rule with an exit that follows the price did better than one tied to the 200-day line. The golden cross and the SMA 10/50 trend used other averages and also trailed the monthly cycle.
The monthly cycle on TBF was first, which fits the fund's steady rise with little structure. The filter's result on TBF is better than on most inverse funds, and it still trailed buy-and-hold by a wide margin. The window covers the strongest rising-rates period in the data, and a different window would give a different answer.
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 TBF?
Over 2021-01-04 to 2026-10-02, 200-day regime filter on TBF returned 4.3% annualized vs 12.2% for buy-and-hold: it trailed buy-and-hold by 7.9% per year, with a maximum drawdown of 24.0% (buy-and-hold: 17.6%).
How many trades did it make?
27 completed round trips over 5.7 years (55 fills), with 37% 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 TBF?
It turned $10,000 into $12,713 between 2021-01-04 and 2026-10-02, a CAGR of 4.27% with a maximum drawdown of 23.97%. Buy-and-hold on TBF ended at $19,377 with a CAGR of 12.21% and a drawdown of 17.58%.
Why did the strategy trail buy-and-hold in every year?
In 2021 the fund stayed below its 200-day line so the rule held cash. In 2023 and 2024 the fund crossed the line repeatedly, and the rule made many short losing trades. The yearly gaps ran from -1.7 to -15.9 points.
How many trades did the strategy make on TBF?
It closed 27 round trips and had one open at the end, entered on 2026-03-11 at $23.64. Ten of the closed trips won, a win rate of 37%. The best trade returned 26.37% over 352 days.
Does a longer moving average work better on TBF?
In this window, yes. The 250-day average returned 6.73% CAGR with a drawdown of 18.57%, the 150-day returned 3.75% and the 100-day returned 1.81%. The default 200-day returned 4.27%.
What do trading costs do to the result?
At 5 basis points per trade the CAGR falls to 3.79% and at 10 basis points to 3.3%, against 4.27% with no costs. The strategy made 55 fills.
Is TBF a good fit for a trend filter?
The fund crossed its 200-day average 55 times in the window, which gave the filter many false signals. The RSI(2) snapback returned 9.67% on TBF with a drawdown of 7.67%, against 4.27% and 23.97% for the filter.
Did the filter reduce drawdown on TBF?
No. The maximum drawdown was 23.97% against 17.58% for buy-and-hold, and it started on 2022-10-24 and had not recovered by 2026-10-02.
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.