200-Day SMA Regime Filter on TMF
Direxion Daily 20+ Year Treasury Bull 3X Shares: 3x daily leveraged long-term Treasuries, a leveraged rate bet. Backtest 2021-01-04 to 2026-10-02, $10,000 starting capital, computed by the same engine that runs live DeployQuant strategies.
TMF is Direxion's 3x daily leveraged fund on long-term Treasuries, a leveraged bet on interest rates. Over the test window it lost 91.44%. The 200-day regime filter buys at the open after a close above the 200-day average and sells at the open after a close below it. On TMF it lost money as well: a $10,000 sleeve on 2021-01-04 was worth $5,290 on 2026-10-02. That is a CAGR of -10.5%, a Sharpe ratio of -0.7 and a max drawdown of 53.17%.
Holding TMF turned the same $10,000 into $1,172 (CAGR -31.16%, max drawdown 88.49%). The rule came out well ahead of that and still lost nearly half its starting value. It led in five calendar years and trailed in 2025.
None of the 17 closed round trips won. The longest losing streak is therefore 17, the profit factor is 0, and the best trade lost 0.13%. The average loser was 3.74% down and the sleeve was invested on only 14.1% of trading days. This page is a test of what a trend filter does on a fund that mostly falls: it keeps most of the sleeve in cash, which limits the damage, and each short stay in the market costs a little more.
Year by year
| Year | 200-day regime filter | buy & hold |
|---|---|---|
| 2021 | 0.0% | −18.8% |
| 2022 | −8.8% | −69.7% |
| 2023 | −6.5% | −9.9% |
| 2024 | −26.5% | −30.7% |
| 2025 | −4.0% | −2.3% |
| 2026 | −12.2% | −23.1% |
Calendar years, rule against holding
2021 reads 0% for the rule, and it hides a few weeks of activity. TMF spent most of the year below its 200-day average, so the sleeve was in cash until the first entry on 2021-10-19 at $225.53 (adjusted). That trade lasted a day and lost 2.54%. The next, from 2021-10-27 at $234.41 to 2022-01-04 at $218.62, held for 69 days and lost 6.74%. October cost 0.14%, November gained 7.19% and December lost 6.57%. Holding lost 18.8% in 2021.
2022 is the year with the largest gap, 60.9 points in the rule's favour. TMF fell 69.7% as a holding and the rule lost 8.8%, all of it in January 2022 when the second 2021 trade closed. From February to December every monthly figure is 0. The price had fallen under the 200-day line and stayed under it, and the rule sat still for eleven months while the fund lost most of its value. This is the one case in the record where the filter did the job it exists for.
2023 shows a loss of 6.5% for the rule against 9.9% for holding. April lost 1.82% on a one-day trade from 2023-04-10 at $80.65 to 2023-04-11 at $79.14, and December lost 4.72% on two trades in the last ten days of the year. A position bought on 2023-12-21 at $60.10 was sold the next day at $59.31, and a second purchase on 2023-12-28 at $60.49 was sold on 2024-01-02 at $57.07 for a loss of 5.65%.
2024 is the year the rule did the most damage to itself. It lost 26.5% against 30.7% for holding, with 9 round trips and no winners. The monthly figures read 2.13% down in January, 5.11% down in February, 14.83% down in June, 4.52% down in July and 10.91% down in October, with gains of 4.56% in August and 4.48% in September. June holds the worst month in the record. The trade that opened on 2024-06-28 at $47.36 and closed on 2024-07-01 at $42.82 lost 9.59% in 3 days, the worst of all 17.
2025 is the only year the rule trailed, at 4.0% down against 2.3% down. It made a single trade from 2025-09-09 at $38.96 to 2025-12-08 at $37.37, a loss of 4.08% over 90 days, the longest hold. 2026 shows 12.2% down against 23.1% down for holding, with three trades. The sleeve entered on 2026-01-15, 2026-01-27 and 2026-02-11 and lost on all three. February 2026 gained 8.7%, the best month of the record, and March lost 11.73% when the last position closed on 2026-03-12 at $35.73.
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.1% | 7.2% | −6.6% |
| 2022 | −8.8% | 0.0% | 0.0% | 0.0% | 0.0% | 0.0% | 0.0% | 0.0% | 0.0% | 0.0% | 0.0% | 0.0% |
| 2023 | 0.0% | 0.0% | 0.0% | −1.8% | 0.0% | 0.0% | 0.0% | 0.0% | 0.0% | 0.0% | 0.0% | −4.7% |
| 2024 | −2.1% | −5.1% | 0.0% | 0.0% | 0.0% | −14.8% | −4.5% | 4.6% | 4.5% | −10.9% | 0.0% | 0.0% |
| 2025 | 0.0% | 0.0% | 0.0% | 0.0% | 0.0% | 0.0% | 0.0% | 0.0% | −0.8% | 3.0% | −0.2% | −5.7% |
| 2026 | −8.5% | 8.7% | −11.7% | 0.0% | 0.0% | 0.0% | 0.0% | 0.0% | 0.0% | 0.0% | – | – |
Mostly zeros, and what the other months did
The monthly table is mostly zeros. The sleeve held cash from January to September 2021, from February to December 2022, from January to August 2025 and from April to September 2026. In the months with a position the result was usually negative.
The best month was February 2026 at 8.7% and the worst was June 2024 at 14.83% down. For holding the best was November 2023 at 23.37% and the worst was April 2022 at 25.2% down. Holding's best month fell in a stretch where the rule had no position until late December, so the biggest single bounce in the window was missed. November is also the best calendar month for the fund in the data, averaging 12.46% across five Novembers, while September averaged 9.63% down, October 8.59% down and April 8.15% down. The rule traded on its own signal and did not use the calendar.
Cash months protected the sleeve and the invested months drew it down. With no winning trade, the best the rule could do was lose less than holding.
Every trade
200-day regime filter on TMF made 17 closed round trips, an average hold of 18 days, an average loser of −3.74%, a longest losing streak of 17. It held a position at the close on 14.1% of trading days.
| Entry | Entry price | Exit | Exit price | Return | Days held |
|---|---|---|---|---|---|
| 2021-10-19 | $225.53 | 2021-10-20 | $219.80 | −2.5% | 1 |
| 2021-10-27 | $234.41 | 2022-01-04 | $218.62 | −6.7% | 69 |
| 2023-04-10 | $80.65 | 2023-04-11 | $79.14 | −1.9% | 1 |
| 2023-12-21 | $60.10 | 2023-12-22 | $59.31 | −1.3% | 1 |
| 2023-12-28 | $60.49 | 2024-01-02 | $57.07 | −5.7% | 5 |
| 2024-02-02 | $53.27 | 2024-02-05 | $50.48 | −5.2% | 3 |
| 2024-06-06 | $46.74 | 2024-06-10 | $43.77 | −6.3% | 4 |
| 2024-06-14 | $48.76 | 2024-06-27 | $47.08 | −3.5% | 13 |
| 2024-06-28 | $47.36 | 2024-07-01 | $42.82 | −9.6% | 3 |
| 2024-07-12 | $47.10 | 2024-07-16 | $47.04 | −0.1% | 4 |
| 2024-07-17 | $47.54 | 2024-07-22 | $46.68 | −1.8% | 5 |
| 2024-07-31 | $48.24 | 2024-10-08 | $47.81 | −0.9% | 69 |
| 2024-10-17 | $47.48 | 2024-10-18 | $47.03 | −0.9% | 1 |
| 2025-09-09 | $38.96 | 2025-12-08 | $37.37 | −4.1% | 90 |
| 2026-01-15 | $37.93 | 2026-01-20 | $35.38 | −6.7% | 5 |
| 2026-01-27 | $37.12 | 2026-01-28 | $36.35 | −2.1% | 1 |
| 2026-02-11 | $37.28 | 2026-03-12 | $35.73 | −4.2% | 29 |
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.
Seventeen trades, no winners
The median trade lost 3.45% over 4 days. Holds ran from 1 day to 90. The least bad trade lost 0.13%, from 2024-07-12 at $47.10 to 2024-07-16 at $47.04. Then came losses of 0.89% (a 69-day hold from 2024-07-31 to 2024-10-08), 0.95%, 1.31% and 1.81%. The five worst lost 9.59%, 6.74%, 6.72%, 6.35% and 5.65%.
The short trades are the pattern. Entries on 2021-10-19, 2023-04-10, 2023-12-21, 2024-10-17 and 2026-01-27 each lasted a single day and each lost. When the price sits only just above the line, one down day sends it back under. The template description warns about this: price whips around the 200-day line during volatile bottoms and generates clusters of buy-sell pairs. Nine of the seventeen trips came in 2024.
A 3x fund adds to the problem. Its daily range averaged 2.81%, so a one-day move across the average is common.
The first trade lost 2.54% and the last lost 4.16% over 29 days, from 2026-02-11 at $37.28 to 2026-03-12 at $35.73. Taken together, 17 losses at an average of 3.74% turned $10,000 into $5,290.
Largest drawdowns
| Peak | Low point | Depth | Days to low | Recovered | Days to recover |
|---|---|---|---|---|---|
| 2021-12-03 | 2026-03-12 | −53.2% | 1560 | not yet | – |
| 2021-11-09 | 2021-11-23 | −12.0% | 14 | 2021-11-30 | 7 |
| 2021-10-18 | 2021-11-03 | −4.0% | 16 | 2021-11-05 | 2 |
Buy-and-hold's deepest drawdown ran from 2021-01-04 to 2026-10-02 and reached −88.5%.
Drawdowns
The rule's worst drawdown began at the 2021-12-03 peak and ended at a 53.17% low on 2026-03-12, 1560 days later. No recovery had come by the final day. The two other entries in the drawdown table are from late 2021, 12.04% from 2021-11-09 to 2021-11-23 and 3.97% from 2021-10-18 to 2021-11-03, and both recovered within days.
The sleeve peaked on 2021-12-03, when the first winning month, November 2021 at 7.19%, had pushed it up. It has been below that peak since. A drawdown that lasts 1560 days is a record of slow loss, not of one bad year: 2022 and 2025 cost little, 2024 cost the most and 2026 added to it.
Holding's own drawdown reached 88.49%, and the fund itself, measured from 2021-01-04, was 91.44% below its first-day level on the last day with no recovery. The rule's 53.17% was shallower by 35.32 points, and its final value was $4,118 higher. A shallower fall on a fund that kept falling is still a loss.
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) | −10.5% | −53.2% | $5,290 | -0.70 |
| 5 basis points | −10.8% | −53.9% | $5,201 | -0.72 |
| 10 basis points | −11.0% | −54.7% | $5,108 | -0.74 |
Slippage
Slippage of 5 basis points a fill brought the CAGR to -10.76%, the drawdown to 53.9%, the final value to $5,201 and the Sharpe to -0.719. At 10 basis points the readings were -11.04%, 54.68%, $5,108 and -0.74. The headline run ended at $5,290.
The rule makes 34 fills, 17 buys and 17 sells, and the costs take modest amounts from each. The headline and the 10 basis point run are close because the sleeve is in cash most of the time. TMF changes hands for about $162,498,054 a day and the median minute carries 3160 shares, which makes a $10,000 sleeve tiny. In this test the cost of trading is a minor part of the loss and the trades themselves are the larger part.
Changing the parameters
| Version | CAGR | Max drawdown | Round trips | Win rate | Final value |
|---|---|---|---|---|---|
| Published rules | −10.5% | −53.2% | 17 | 0% | $5,290 |
| 100-day SMA | −18.9% | −75.7% | 37 | 14% | $3,001 |
| 150-day SMA | −22.6% | −78.5% | 38 | 8% | $2,304 |
| 250-day SMA | −6.3% | −36.0% | 13 | 23% | $6,880 |
Different averages
Three other lengths were tested. A 100-day average gave a CAGR of -18.91%, a max drawdown of 75.67% and a final value of $3,001, over 37 trades with 5 wins. A 150-day average gave -22.56%, 78.45% and $2,304, over 38 trades with 3 wins. A 250-day average gave -6.3%, 35.96% and $6,880, over 13 trades with 3 wins. The published 200-day rule made -10.5% over 17 trades with none winning.
Shorter averages did worse. The 100-day and 150-day versions traded far more often than the 200-day one, and the extra crossings lost money. The 250-day version traded less and lost less, with the shallowest drawdown and the best result of the four. A longer average stays under the price line more often when the fund trends down, and fewer entries mean fewer losing trades.
Every version lost money, so none of these shows a setting that works on TMF. The order of the four runs follows the number of trades, which matches the cluster of losing entries in 2024. It is one window on one fund.
How TMF behaved
| Measure | TMF |
|---|---|
| Data in this test | 2021-01-04 to 2026-10-02 (1444 sessions) |
| Total return, buy and hold | −91.4% |
| Annualized volatility | 45.7% |
| Deepest drawdown | −91.4% (2021-01-04 to 2026-10-02) |
| Up days | 48.5% |
| Average daily range | 2.81% |
| Average overnight gap | 1.63% |
| Correlation to SPY | 0.08 |
| Correlation to QQQ | 0.09 |
| Correlation to TLT | 1.00 |
| Sessions above the 200-day average | 16.4% |
| Crossings of the 200-day average | 33 |
| Falls of 10% or more from a 20-day high | 62 |
How TMF behaved
TMF has 1444 sessions in the window and finished 91.44% below its first-day price, a CAGR of -34.82% with annualized volatility of 45.67%. Its drawdown lasted 1443 sessions and never recovered. Each calendar year was negative: 19.44% down, then 72.63%, 11.4%, 35.98%, 2.89% and 29.49% down for the partial 2026.
Fewer than half of sessions, 48.51%, closed up. Up days averaged 2.18% and down days 2.33% down. The average high-to-low range was 2.81% and the average overnight gap 1.63%. Overnight log returns summed to -260.41% while intraday log returns summed to 16.32%, so the whole loss came between the close and the next open. The rule trades at the open and holds through the overnight move on every day it is in, which is where TMF lost its value.
On the best day, 2022-11-10, TMF rose 11.57%, and on the worst, 2022-03-02, it fell 10.12%. Drops of 10% or more from a 20-day high came in 62 events over 526 days.
TMF is close to a pure rate bet. Against TLT it shows a correlation of 1 and a beta of 2.98, against SPY a correlation of 0.08 and against QQQ 0.09. The other close funds were BND at 0.92, AGG and IEF at 0.91 and UST at 0.86. TLT lost 40.49% in the window. Triple that reads -121.46%, a loss no fund can take, while a daily-rebalanced 3x calculation gives -85.94%. TMF lost 91.44%. The data records a 30.03 point gap to the triple-the-underlying figure and no breakdown of it.
Only 16.39% of sessions closed above the 200-day average, and the line was crossed 33 times. That accounts for the rule's 14.1% exposure. After the 75 sessions with RSI(14) under 30, the median 20-day return was -4.97% against a baseline of -3.02%, so oversold readings did not mark lows. RSI(2) under 10 occurred on 215 sessions, followed by a 20-day median of -2.78%. Autocorrelation of daily returns was -0.04.
Other leveraged funds gave the filter a very different record. TQQQ returned 24.95% a year, SOXL 23.44%, QLD 21.57%, ROM 17.99%, SSO 12.4%, TECL 11.53% and SPUU 10.54%. Three lost: FAS at 2.74%, UST at 6.68% and TMF at 10.5%. The category median is 12.4% and the all-fund median 1.84%. TMF is 52nd of 59 for this rule. The fund's full profile is on the TMF ETF page.
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.
The twelve templates on TMF
All twelve templates lost money on TMF. The RSI(2) snapback lost least, at -4% with a 55.1% drawdown. The golden cross followed at -8.36% and 50.12%, and the 200-day filter took third at -10.5% and 53.17%.
The middle of the table is tightly packed. SMA 10/50 lost 10.67% a year with a 57.56% drawdown, the momentum breakout 11.1% with 55.69%, the weekly 7% target 11.83% with 60.65%, trend with a trailing stop 12.92% with 62.48%, 3-month momentum 13.16% with 63.59% and EMA 12/26 13.9% with 65.06%.
Three templates did far worse: RSI mean reversion at -25.04% with an 81.12% drawdown, the dip buyer at -29.84% with 87.5%, and the monthly cycle at -32.21% with 89.65%. The monthly cycle lost slightly more per year than holding did.
The order does not split cleanly between trend rules and dip rules. The dip-based RSI(2) snapback came first, while the dip buyer and RSI mean reversion were near the bottom. On a fund like TMF, the template changes how much is lost and does not turn a loss into a gain. The hub page for this rule compares it across all 59 funds.
How much of the gap comes from one year
The yearly gaps in the rule's favour were 18.8 points in 2021, 60.9 in 2022, 3.4 in 2023, 4.2 in 2024 and 10.9 in 2026, with 1.7 against it in 2025. The single year 2022 carries most of the lead over holding. In 2023 and 2024 the rule's lead was small, because it was invested for just enough days to lose money in much the same way as the fund.
That shows what the filter did on TMF. It was out of the market during the fall that began in early 2022, and that decision accounts for most of the difference in final value. Once the fund was in a long downtrend with brief rebounds, each rebound that pushed the price over the line produced a small loss. A holder lost more, and a cash holder lost nothing. The rule sat between those two, which is a better place than holding and a worse one than not trading TMF at all.
The cash result has to be read with care. A sleeve left in cash for the whole window would have kept the $10,000, and no rule in the table beat that. The comparison with holding is the fair one for a rule that is always allowed to trade, and the loss against cash is the cost of the nine trades in 2024 and the eight others.
Where the test stops
This covers one leveraged fund, 5.74 years and 17 closed round trips, with nothing open at the end. Long-term Treasuries fell sharply in this window, and the figures say nothing about a window where they rose. The headline fills at the bar price with no cost, and two cost runs add 5 and 10 basis points. All figures are hypothetical.
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 TMF?
Over 2021-01-04 to 2026-10-02, 200-day regime filter on TMF returned −10.5% annualized vs −31.2% for buy-and-hold: it beat buy-and-hold by 20.7% per year, with a maximum drawdown 35.3 points shallower than holding (53.2% vs 88.5%).
How many trades did it make?
17 completed round trips over 5.7 years (34 fills), with 0% 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 TMF?
Yes, though both lost money. It compounded at -10.5% a year against -31.16% for holding, ending at $5,290 against $1,172, with a 53.17% max drawdown against 88.49%.
Why did every trade on TMF lose?
TMF kept falling, and each time the price poked above its 200-day average the rule bought and was stopped out by the next close below. The 17 round trips averaged a loss of 3.74% and the best one lost 0.13%.
How often was the rule invested on TMF?
On 14.1% of trading days. TMF closed above its 200-day average on 16.39% of sessions. The sleeve held cash from February to December 2022 and for most of 2023 and 2025.
What happened in 2022?
TMF fell 69.7% as a holding. The rule lost 8.8%, all of it in January, and held cash from February to December. The gap of 60.9 points was the largest of any year.
Does a longer or shorter average help on TMF?
A 250-day average lost 6.3% a year with 13 trades. A 100-day average lost 18.91% over 37 trades and a 150-day average lost 22.56% over 38. All three lost money and the 200-day rule's -10.5% sits in between.
How much did slippage change the TMF result?
Little. Slippage of 5 basis points a fill gave a CAGR of -10.76% and $5,201, and 10 basis points gave -11.04% and $5,108. The sleeve is in cash most of the time.
Where does the rule rank on TMF?
3rd of the 12 templates, at -10.5%, though all twelve lost money. The RSI(2) snapback was first at -4%. Across the 59 funds, TMF ranks 52nd for this rule.
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.