20-Day Momentum + Trailing Stop 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.
The momentum breakout rule trades TMF, the Direxion Daily 20+ Year Treasury Bull 3X Shares, which targets three times the daily move of long-term Treasuries. The rule enters when the 20-day return tops 10% and leaves on a trailing stop set 10% under the highest close since entry. Between 2021-01-04 and 2026-10-02 it took $10,000 down to $5,089. That is a total return of -49.11% and a CAGR of -11.1%. Holding TMF from the first day ended at $1,172, a total return of -88.28% and a CAGR of -31.16%.
The rule lost money and still finished well ahead of holding. Its worst drawdown was 55.69%, while holding's was 88.49% and never recovered before the data ended. Year by year the rule was ahead in five years, 2021 to 2024 and 2026, and behind only in 2025, when holding fell 2.3% and the rule fell 24.4%.
The rule made 27 round trips and 54 fills. Seven won, a win rate of 26%. The average winner made 11.01% and the average loser lost 6.76%. The profit factor was 0.56, so the winners did not pay for the losers. The rule was invested on 24.1% of days, with an average hold of 19 days.
On TMF the rule ranks 5th of 12 strategies, and all 12 had negative CAGRs. The RSI(2) snapback was the least bad at -4%. For this strategy TMF ranks 52nd of 59 funds. Across all 59 funds the rule's median CAGR is 0%, and across the 10 leveraged funds 13.32%, so TMF is far below its group. Every fund is on the strategy page.
The window is 5.74 years, rules are checked daily, there is no margin, and the headline run carries no fees or slippage. TMF fell through almost all of it, which makes this a test of a trailing-stop rule in a long decline.
Year by year
| Year | momentum breakout | buy & hold |
|---|---|---|
| 2021 | −9.7% | −18.8% |
| 2022 | −3.6% | −69.7% |
| 2023 | 21.4% | −9.9% |
| 2024 | −28.6% | −30.7% |
| 2025 | −24.4% | −2.3% |
| 2026 | −10.7% | −23.1% |
Year by year
The rule lost 9.7% in 2021, 3.6% in 2022, made 21.4% in 2023, and lost 28.6% in 2024, 24.4% in 2025 and 10.7% in the partial year 2026. Holding TMF lost 18.8%, 69.7%, 9.9%, 30.7%, 2.3% and 23.1%. In the rule's favour the margin was 9.1 points in 2021, 66.1 in 2022, 31.3 in 2023, 2.1 in 2024 and 12.4 in 2026. In 2025 the gap was 22.1 points against.
2022 is the year that makes the result. TMF lost 72.63% on a calendar basis, and holding lost 69.7%. The rule lost 3.6%. It closed five round trips and two won: a 4.02% trade from 2022-07-14 to 2022-08-03 and a 17.34% trade from 2022-11-17 at $67.92 to 2022-12-19 at $79.695. Between the two it lost 8.5% from 2022-08-04 to 2022-08-11. For most of the year the rule held nothing. April 2022, the worst month for holding at -25.2%, reads 0% for the rule.
2023 was the one year the rule made real money, 21.4% while holding lost 9.9%. It came from a single trade. The 49-day trade from 2023-11-15 at $42.96 to 2024-01-03 at $55.197 returned 28.48%, the best of the test, and December 2023 at 25.28% was the rule's best month. Earlier in 2023 the rule lost 4.41% from 2023-01-26, 8.38% from 2023-03-20 and made 2.37% from 2023-03-30, so the year's gain sits in that one trade.
2024 gave back most of it. The rule lost 28.6% against 30.7% for holding, from seven round trips with three winners. The year opened with the rule's worst month, January at -14.06%. The month included the trade bought on 2024-01-04 at $55.60, one day after the 28.48% trade was stopped out, and sold on 2024-01-17 at $50.346 for -9.45%. Further losses followed on 2024-05-17 (-9.5%) and 2024-06-20 (-8.9%), and the two wins of 4.81% and 5.91% in August and September did not repair the damage.
2025 was the rule's worst relative year. Five trades closed and none won. The losses were -9.16% from 2025-02-06, -5.73% from 2025-02-26, -3.38% from 2025-03-14, -5.34% from 2025-06-25 and -4.06% from 2025-09-15, a 60-day trade, the longest of the test. TMF itself lost only 2.89% for the calendar year, so a rule that waits for a +10% burst bought into rallies that kept failing. In 2026 two trades lost 5.74% and 5.54%.
Month by month
| Year | Jan | Feb | Mar | Apr | May | Jun | Jul | Aug | Sep | Oct | Nov | Dec |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2021 | 0.0% | 0.0% | 0.0% | −1.0% | −5.6% | 6.9% | 9.7% | −5.3% | 0.0% | 0.0% | −4.6% | −8.7% |
| 2022 | −4.2% | 0.0% | 0.0% | 0.0% | 0.0% | 0.0% | 6.0% | −10.1% | 0.0% | 0.0% | 7.0% | −1.3% |
| 2023 | 0.1% | −4.4% | −3.3% | −2.8% | 0.0% | 0.0% | 0.0% | 0.0% | 0.0% | 0.0% | 7.8% | 25.3% |
| 2024 | −14.1% | 0.0% | 0.0% | 0.0% | −9.3% | −5.5% | −2.5% | 4.5% | 5.1% | 0.0% | 0.0% | −9.5% |
| 2025 | 0.0% | −6.2% | −11.4% | 0.0% | 0.0% | 3.8% | −8.7% | 0.0% | −3.0% | 3.0% | −3.8% | 0.0% |
| 2026 | 0.0% | 4.3% | −9.5% | 0.0% | 0.0% | 0.1% | −5.5% | 0.0% | 0.0% | 0.0% | – | – |
Monthly returns
Most cells in the table read 0%. The rule was invested on 24.1% of days, so it held nothing in most months. The best month was December 2023 at 25.28% and the worst was January 2024 at -14.06%. For holding, November 2023 at 23.37% was the best month and April 2022 at -25.2% the worst. December 2023 was the rule's one big month, and holding made 23.37% a month earlier.
The rule's positive months were few: 6.9% in June 2021, 9.68% in July 2021, 5.96% in July 2022, 7.02% in November 2022, 7.76% in November 2023, 25.28% in December 2023, 4.45% in August 2024, 5.07% in September 2024, 3.83% in June 2025, 2.95% in October 2025 and 4.34% in February 2026. The negative months were more numerous, among them -5.63% in May 2021, -10.08% in August 2022, -9.28% in May 2024, -11.41% in March 2025, -8.71% in July 2025 and -9.53% in March 2026. A month's return is whatever a trade did while it was open, and the average loser lost 6.76% against an average winner of 11.01%.
The seasonal averages of the fund are extreme. Over the window TMF averaged 12.46% in November, and lost 9.63% in September, 8.59% in October and 8.15% in April. Only 5 or 6 years sit behind each average. The rule's November results line up: 7.02% in 2022 and 7.76% in 2023, with a loss of 3.79% in November 2025.
Long runs of zeros show the rule was out for the whole of the first quarter of 2021, most of 2022, the middle of 2023 and the late months of 2026. The rule spent most days in cash.
Every trade
momentum breakout on TMF made 27 closed round trips, an average hold of 19 days, an average winner of 11.01%, an average loser of −6.76%, a profit factor of 0.56, a longest losing streak of 8. It held a position at the close on 24.1% of trading days.
| Entry | Entry price | Exit | Exit price | Return | Days held |
|---|---|---|---|---|---|
| 2021-04-16 | $202.75 | 2021-05-12 | $189.00 | −6.8% | 26 |
| 2021-06-10 | $211.10 | 2021-07-21 | $240.97 | 14.2% | 41 |
| 2021-07-23 | $243.00 | 2021-08-10 | $236.83 | −2.5% | 18 |
| 2021-11-08 | $246.19 | 2021-11-15 | $234.49 | −4.8% | 7 |
| 2021-12-02 | $265.49 | 2021-12-08 | $249.28 | −6.1% | 6 |
| 2021-12-15 | $248.16 | 2022-01-03 | $230.02 | −7.3% | 19 |
| 2022-07-14 | $107.32 | 2022-08-03 | $111.64 | 4.0% | 20 |
| 2022-08-04 | $118.39 | 2022-08-11 | $108.32 | −8.5% | 7 |
| 2022-11-17 | $67.92 | 2022-12-19 | $79.69 | 17.3% | 32 |
| 2022-12-19 | $79.44 | 2022-12-23 | $71.57 | −9.9% | 4 |
| 2023-01-26 | $80.45 | 2023-02-07 | $76.90 | −4.4% | 12 |
| 2023-03-20 | $78.42 | 2023-03-29 | $71.85 | −8.4% | 9 |
| 2023-03-30 | $73.28 | 2023-04-14 | $75.02 | 2.4% | 15 |
| 2023-11-15 | $42.96 | 2024-01-03 | $55.20 | 28.5% | 49 |
| 2024-01-04 | $55.60 | 2024-01-17 | $50.35 | −9.4% | 13 |
| 2024-05-17 | $44.79 | 2024-05-29 | $40.54 | −9.5% | 12 |
| 2024-06-20 | $47.08 | 2024-07-01 | $42.89 | −8.9% | 11 |
| 2024-07-31 | $48.24 | 2024-08-07 | $50.56 | 4.8% | 7 |
| 2024-08-07 | $50.62 | 2024-09-23 | $53.61 | 5.9% | 47 |
| 2024-12-06 | $47.67 | 2024-12-12 | $43.06 | −9.7% | 6 |
| 2025-02-06 | $40.52 | 2025-02-12 | $36.81 | −9.2% | 6 |
| 2025-02-26 | $42.26 | 2025-03-13 | $39.84 | −5.7% | 15 |
| 2025-03-14 | $40.40 | 2025-03-26 | $39.03 | −3.4% | 12 |
| 2025-06-25 | $35.93 | 2025-07-14 | $34.01 | −5.3% | 19 |
| 2025-09-15 | $39.86 | 2025-11-14 | $38.24 | −4.1% | 60 |
| 2026-02-19 | $38.88 | 2026-03-11 | $36.65 | −5.7% | 20 |
| 2026-06-17 | $35.09 | 2026-07-07 | $33.15 | −5.5% | 20 |
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 27 trades
The median trade returned -5.54% and lasted 15 days. The shortest hold was 4 days and the longest 60. At most 2 wins came in a row, and as many as 8 losses. The first trade bought on 2021-04-16 at $202.75 and sold on 2021-05-12 at $189 for -6.78%. The last bought on 2026-06-17 at $35.09 and sold on 2026-07-07 at $33.147 for -5.54%. No position was open at the end.
The winners were 28.48%, 17.34%, 14.15%, 5.91%, 4.81%, 4.02% and 2.37%. Three of them, 28.48%, 17.34% and 14.15%, held for 49, 32 and 41 days and supply most of the gross gain. The five worst were -9.91%, -9.68%, -9.5%, -9.45% and -9.16%. All of them sit at the trailing stop's 10% distance, held for 4, 6, 12, 13 and 6 days. When a burst reverses at once, the stop sells about 10% under the entry, and the rule had many of these.
The worst trade shows how the rule interacts with its own exits. It sold the 17.34% winner on 2022-12-19 at $79.695 and bought again the same day at $79.44. Four days later, on 2022-12-23, it sold at $71.568 for -9.91%. The 28.48% trade ended on 2024-01-03 and a new entry followed on 2024-01-04 at $55.60, which lost 9.45% in 13 days. The entry condition, a 20-day gain above 10%, was still true when the stop fired, so the rule bought straight back in.
Counting by the year each trade closed gives 5, 5, 3, 7, 5 and 2 trades for 2021 through 2026, with 1, 2, 1, 3, 0 and 0 winners. The 2024 count of seven is the highest, and three of the seven won, which is the best ratio among the years with more than three trades.
The profit factor of 0.56 means gross gains were a little over half of gross losses. A 26% win rate with an average winner of 11.01% and an average loser of 6.76% leaves the rule below break-even, and the total return of -49.11% shows it. The trade prices are split and dividend adjusted, which puts them below the quotes printed then.
Largest drawdowns
| Peak | Low point | Depth | Days to low | Recovered | Days to recover |
|---|---|---|---|---|---|
| 2021-07-19 | 2026-07-07 | −55.7% | 1814 | not yet | – |
| 2021-04-22 | 2021-05-12 | −9.1% | 20 | 2021-06-18 | 37 |
| 2021-06-18 | 2021-06-25 | −7.3% | 7 | 2021-07-06 | 11 |
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 was 55.69%. It began at the 2021-07-19 peak, reached its low on 2026-07-07, 1,814 days later, and was still open when the data stopped. The next two were small by comparison: 9.06%, from 2021-04-22 to 2021-05-12, recovered on 2021-06-18 after 37 days, and 7.3%, from 2021-06-18 to 2021-06-25, recovered on 2021-07-06.
The rule's peak on 2021-07-19 fell inside the 14.15% trade, which closed on 2021-07-21. Six of the trades after it won, and the two largest were the 17.34% trade of late 2022 and the 28.48% trade of late 2023.
Holding TMF produced a single drawdown that ran the entire window, 88.49% from 2021-01-04 to 2026-10-02 over 2,097 days. The fund's raw series gives 91.44% and a longest drawdown of 1,443 sessions. The rule's drawdown was 32.8 points shallower. Sitting in cash on most days did most of that work, since the entries lost money on average.
A drawdown of 55.69% is still deep, and the rule's best trade made 28.48%. The 20-day, 10% fall test on the fund shows 62 events across 526 days, so sharp reversals were common during the window, and the rule's stop was hit often.
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) | −11.1% | −55.7% | $5,089 | -0.46 |
| 5 basis points | −11.5% | −56.7% | $4,962 | -0.48 |
| 10 basis points | −11.9% | −58.0% | $4,819 | -0.51 |
What trading costs do
The rule makes 54 fills over 5.74 years. Charging 5 basis points per fill moves the CAGR to -11.49%, the maximum drawdown 56.74% and the final value $4,962, with a Sharpe ratio of -0.48. At 10 basis points the CAGR is -11.94%, the drawdown 57.95% and the final value $4,819, with a Sharpe ratio of -0.51. The headline figures are -11.1%, 55.69% and $5,089, with a Sharpe ratio of -0.46.
Each cost step moves the CAGR by less than half a point. Daily dollar volume in the fund averages $162,498,054 and median minute volume is 3,160 shares. The cost runs apply an assumed fixed charge per fill.
Every cost run stays far above the buy-and-hold final value of $1,172. Slippage does not change the ranking against holding, and the loss is already large before any cost is charged.
Changing the parameters
| Version | CAGR | Max drawdown | Round trips | Win rate | Final value |
|---|---|---|---|---|---|
| Published rules | −11.1% | −55.7% | 27 | 26% | $5,089 |
| 5% trailing stop | −2.1% | −34.5% | 58 | 40% | $8,856 |
| 15% trailing stop | −2.0% | −44.4% | 13 | 38% | $8,912 |
| 20% return entry | 0.3% | −30.5% | 7 | 29% | $10,150 |
Changing the stop and the entry
Each of three variants changed a single setting. A 5% trailing stop made 58 trades with 23 winners, a CAGR of -2.09%, a drawdown of 34.47% and a final value of $8,856. A 15% trailing stop made 13 trades with 5 winners, a CAGR of -1.99%, a drawdown of 44.35% and $8,912. A 20% return entry made 7 trades with 2 winners, a CAGR of 0.26%, a drawdown of 30.51% and $10,150. The published rule, with a 10% stop and a 10% entry, made -11.1% with 55.69% and $5,089.
All three variants beat the published rule by a wide margin, and one of them made a small positive return. The 20% entry waits for a much stronger burst, so it traded only 7 times in 5.74 years, and 2 of the trades won. Fewer entries meant fewer of the quick reversals that cost the published rule most of its money.
The two stop variants are close to each other. A 5% stop gave 58 trades and a drawdown of 34.47%, and a 15% stop gave 13 trades and a drawdown of 44.35%. Both had a CAGR of about -2%. The published 10% stop sits between them and did far worse, which suggests that its result is at least partly down to which entries and exits fell on which days, and does not follow from the stop's size. With 7 to 58 trades behind each variant and a single window, no setting can be called better.
The variants are a robustness check on the published rule, and the check shows the rule's result depends on settings. Its -11.1% is the weakest of the four.
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 |
Why TMF punishes a momentum entry
TMF is a leveraged long-term Treasury fund, and it lost 91.44% over the window. That is a CAGR of -34.82%, with annualized volatility of 45.67%. Up days were 48.51% of sessions. An average up day was 2.18% and an average down day -2.33%, the average daily range was 2.81% and the average overnight gap 1.63%. Its correlation to TLT was 1 and the realized beta to TLT was 2.98, which is the 3x design working as stated.
Leverage decay is visible in the numbers. The underlying, TLT, lost 40.49% over the window. Three times that return would be -121.46%, which is impossible for a long fund, and a daily-rebalanced 3x position would have returned -85.94%. TMF returned -91.44%, 30.03 points above the nominal figure. By calendar year the fund fell 19.44% in 2021, 72.63% in 2022, 11.4% in 2023, 35.98% in 2024 and 2.89% in 2025, and 29.49% in 2026 so far. TLT was up in 2023 and 2025 by 2.79% and 4.23%, and TMF lost 11.4% and 2.89% in those years.
Split by session, the overnight part of its log return was -260.41% and the intraday part 16.32%. The overnight leg was deeply negative and the trading day slightly positive. Entries happen at the open, so every trade takes the overnight gap.
Price closed above its 200-day line on only 16.39% of sessions, with 33 crossings. Falls of 10% or more from a 20-day high happened 62 times and covered 526 days. RSI(14) closed under 30 on 75 sessions, and the median 5-day forward return after them was -0.1% and the 20-day return -4.97%, against baselines of -0.7% and -3.02%. After RSI(2) fell below 10, on 215 sessions, the medians were -0.29% and -2.78%. The best day was 11.57% on 2022-11-10 and the worst -10.12% on 2022-03-02.
For a momentum rule the picture is poor. A burst of +10% over 20 days happened inside a downtrend, and bursts in TMF were rallies in a falling fund. In this window most of them reversed and the stop sold below the entry.
The rules
Buy after a +10% four-week burst and let a 10% trailing stop manage the exit.
- WHEN the market opens · IF not invested AND the 20-day return > +10% · THEN buy with 98% of the sleeve
- WHILE invested · a managed trailing stop follows 10% below the position's high-water mark
Momentum entry, trailing-stop exit. A +10% gain over 20 sessions marks a burst of momentum. The template buys the strength and exits on a 10% trailing stop that ratchets up beneath the highest close and never moves down. There is no profit target, so winners run until the trail is hit.
Good for: high-momentum assets where trends extend, such as semiconductor and leveraged tech ETFs.
Watch out: buying strength means buying high; when a burst immediately reverses, the trail exits about 10% below the entry.
How a 10% trailing stop treats a 3x bond fund
Two instructions make up the rule. When flat and the 20-day return is above 10%, it buys with 98% of the sleeve. Once in, a managed trailing stop sits 10% under the position's highest close and only ever moves up. Nothing takes a profit. Entering after a surge puts the buyer near a high, and a surge that reverses straight away leaves the stop about 10% below the entry.
TMF supplied that caveat often: 20 of the 27 trades lost money. The fund's average daily range is 2.81%, so ordinary swings can reach a 10% stop. The worst five trades all lost between 9.16% and 9.91%, about the width of the stop.
Four strategies lost less on TMF. The RSI(2) snapback made -4% with a drawdown of 55.1%, then came the golden cross at -8.36% with 50.12%, the 200-day regime filter at -10.5% with 53.17% and the SMA 10/50 trend at -10.67% with 57.56%. The weekly 7% target made -11.83%, the trend plus trailing stop -12.92%, the 3-month momentum -13.16% and the EMA 12/26 trend -13.9%. The RSI(14) mean reversion lost 25.04%, the dip buyer 29.84% and the monthly cycle 32.21%, with a drawdown of 89.65%. The TMF page ranks all 12.
Other leveraged funds show the contrast. QLD returned 22.49% with a drawdown of 20.1%, SOXL 19.06% with 67.49% and 138 round trips, SPUU 17.25% and SSO 15.43%. ROM made 13.32% and TECL 10.24%. TQQQ made 0.57% and UST lost 4.27% with 3 round trips. TMF at -11.1% is the lowest of the ten. The rule works as designed on funds that trend up and fails on the fund that fell for the whole window.
One window, one fund, 27 trades.
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 momentum breakout beat buy-and-hold on TMF?
Over 2021-01-04 to 2026-10-02, momentum breakout on TMF returned −11.1% annualized vs −31.2% for buy-and-hold: it beat buy-and-hold by 20.1% per year, with a maximum drawdown 32.8 points shallower than holding (55.7% vs 88.5%).
How many trades did it make?
27 completed round trips over 5.7 years (54 fills), with 26% of round trips closing profitably.
How does the trailing stop work in the backtest?
The stop sits 10% below the highest price since entry and only ratchets up. When a bar trades through it, the position sells at the stop, or at the open if the price gaps below it. Trailing-stop exits can be backtested now; deploying them live is not available yet.
Did the momentum breakout beat buy-and-hold on TMF?
Yes, though both lost money. The rule ended at $5,089 for -11.1% a year, where holding ended at $1,172 for -31.16%. Its worst drawdown was 55.69% against 88.49%, and it was ahead in five of the six years.
How many trades did the rule make on TMF?
There were 27 round trips, or 54 fills. Winners numbered 7, which is 26%. Trades lasted 19 days on average and 60 at most.
What was the best trade?
The best trade came from the 2023-11-15 entry at $42.96 and the 2024-01-03 exit at $55.197, 49 days later, for 28.48%. It supplied most of the rule's 2023 gain.
Do trading costs matter on TMF?
Only a little. The CAGR was -11.49% with 5 basis points charged and -11.94% with 10, against -11.1% in the headline run, and the final values were $4,962 and $4,819.
Would a different trailing stop or entry work better?
In this window all three variants did better. A 5% stop returned -2.09%, a 15% stop -1.99% and a 20% return entry 0.26%, against -11.1% for the published rule. Each result rests on a small number of trades.
Which strategy did best on TMF?
The RSI(2) snapback lost the least, -4% with a drawdown of 55.1%. This rule was 5th of 12 at -11.1%, and all 12 strategies had negative CAGRs on TMF.
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.