SMA-200 Trend + 15% 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.
TMF is the Direxion Daily 20+ Year Treasury Bull 3X Shares, a fund that targets three times the daily return of long-term Treasuries. Over 2021-01-04 to 2026-10-02 it lost 91.44%, a CAGR of -34.82%, with a drawdown that ran from the first day of the window to the last and never recovered. The trend plus trailing stop buys when yesterday's close is above the 200-day average and exits only when a stop 15% below the position's high-water mark is hit. On TMF it turned $10,000 into $4,517.69, a CAGR of -12.92% and a total return of -54.82%, with a max drawdown of 62.48%.
Buy-and-hold ended at $1,172.34, a CAGR of -31.16% with a max drawdown of 88.49%. The rule's CAGR was 18.24 points a year better than holding, and its drawdown was shallower. Both lost money, and the rule's loss was the smaller one.
The rule made 9 round trips, won 2 and lost 7. The average winner was 4.98% and the average loser was -12.22%, giving a profit factor of 0.12. It was invested for 24.5% of sessions, and its Sharpe ratio was -0.62 against -0.75 for holding. None of the twelve templates had a positive CAGR on TMF. The best, the RSI(2) snapback, returned -4.0%. This is one fund over one 5.74-year window, with no fees or slippage in the headline run.
Year by year
| Year | trend + trailing stop | buy & hold |
|---|---|---|
| 2021 | 6.7% | −18.8% |
| 2022 | −13.7% | −69.7% |
| 2023 | −17.2% | −9.9% |
| 2024 | −30.2% | −30.7% |
| 2025 | −7.1% | −2.3% |
| 2026 | −8.5% | −23.1% |
Year by year
The rule beat holding in 2021, 2022, 2024 and 2026, and trailed it in 2023 and 2025.
2021 returned 6.7% against -18.8%. The monthly table is 0.0% from January to September, because the 200-day average needs history before the rule can enter, and the first entry came on 2021-10-19 at $225.53. October gave 6.31% and November 7.26%. The trade ran 71 days and exited on 2021-12-29 at $235.19 for 4.28%, the first of only two winners. December lost 6.45%.
2022 returned -13.7% against -69.7%, the widest gap in the rule's favor, 56 points. The rule re-entered the fund on 2021-12-29 at $234.72, the same day it had sold, because price was still above the 200-day line. That trade lasted 20 days and ended on 2022-01-18 at $206.58 for -11.99%. January 2022 lost 13.7%. After that the rule held no position for the rest of 2022, February through December all 0.0%, while the fund fell 72.63%. The rule did not re-enter during the rest of 2022.
2023 returned -17.2% against -9.9%. The rule entered on 2023-04-10 at $80.65 and exited on 2023-05-16 at $68.41 for -15.18%, the worst trade in the list, then entered again on 2023-12-21 at $60.1 for a trade that lost 13.26% by 2024-01-16. April lost 4.3%, May 10.92% and December 2.85%.
2024 returned -30.2% against -30.7%, a gap of 0.5 points in the rule's favor. This was the most active year, with 4 round trips exiting: -13.26%, -14.87% from 2024-02-02 to 2024-04-02, +5.67% from 2024-06-06 to 2024-10-04, and -14.17% from 2024-10-04 to 2024-10-29. The month of October 2024 lost 19.99%, the worst month of the run.
2025 returned -7.1% against -2.3%. The rule entered on 2025-09-09 at $38.96 and exited on 2025-12-12 at $36.1165 for -7.3%, with December losing 8.8%. 2026 to 2026-10-02 returned -8.5% against -23.1%. The rule entered on 2026-01-15 at $37.93, gained 12.87% in February and lost 14.43% in March, and exited on 2026-03-20 at $34.612 for -8.75%. It held no position from April on.
The pattern is that the rule gained its relative edge in 2021, 2022 and 2026 by being in cash while the fund fell, and gave back ground in the whipsaw years of 2023 to 2025.
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% | 6.3% | 7.3% | −6.5% |
| 2022 | −13.7% | 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% | −4.3% | −10.9% | 0.0% | 0.0% | 0.0% | 0.0% | 0.0% | 0.0% | −2.9% |
| 2024 | −10.3% | −7.7% | 1.1% | −8.3% | 0.0% | −4.8% | 9.3% | 4.6% | 4.5% | −20.0% | 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% | −8.8% |
| 2026 | −5.3% | 12.9% | −14.4% | 0.0% | 0.0% | 0.0% | 0.0% | 0.0% | 0.0% | 0.0% | – | – |
Every trade
trend + trailing stop on TMF made 9 closed round trips, an average hold of 57 days, an average winner of 4.98%, an average loser of −12.22%, a profit factor of 0.12, a longest losing streak of 4. It held a position at the close on 24.5% of trading days.
| Entry | Entry price | Exit | Exit price | Return | Days held |
|---|---|---|---|---|---|
| 2021-10-19 | $225.53 | 2021-12-29 | $235.19 | 4.3% | 71 |
| 2021-12-29 | $234.72 | 2022-01-18 | $206.58 | −12.0% | 20 |
| 2023-04-10 | $80.65 | 2023-05-16 | $68.41 | −15.2% | 36 |
| 2023-12-21 | $60.10 | 2024-01-16 | $52.13 | −13.3% | 26 |
| 2024-02-02 | $53.27 | 2024-04-02 | $45.35 | −14.9% | 60 |
| 2024-06-06 | $46.74 | 2024-10-04 | $49.39 | 5.7% | 120 |
| 2024-10-04 | $49.62 | 2024-10-29 | $42.59 | −14.2% | 25 |
| 2025-09-09 | $38.96 | 2025-12-12 | $36.12 | −7.3% | 94 |
| 2026-01-15 | $37.93 | 2026-03-20 | $34.61 | −8.8% | 64 |
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 nine trades
The first trade gained 4.28% over 71 days. The next eight include one winner and seven losers: the list from 2021-12-29 onward reads -11.99%, -15.18%, -13.26%, -14.87%, +5.67%, -14.17%, -7.3% and -8.75%. The longest losing streak was 4, from the 2021-12-29 entry through the 2024-04-02 exit. The median trade lost 11.99% and the median hold was 60 days. Holds ranged from 20 days to 120 days, with an average of 57.3 days.
The sequence is the central finding. After the first winner, the rule made one more winner in eight tries. The 200-day filter gave valid entries, since each began with price above the average. The fund then failed to hold the gain, and the stop took the loss. The result of 9 trades with a 22% win rate and an average loss more than twice the average win is a profit factor of 0.12.
The price column looks odd. The 2021 entries are above $200 and the 2024 entries are in the $40s. The fund fell 91.44% across the window, and the prices are adjusted for splits and dividends, so the early numbers sit far above the later ones. The adjusted prices are lower than the quotes printed at the time.
The best and worst trades are 5.67% and -15.18%. The ratio of the worst loss to the best win is large, which is the reason the profit factor is so low.
The stop-outs set against TMF's largest single days
TMF's worst sessions in the window were 2022-03-02 at -10.12%, 2022-06-13 at -9.23%, 2025-04-07 at -9.21%, 2023-05-01 at -8.47% and 2025-04-10 at -8.17%. Two of them sit inside the page's trades. The 2023 position, bought at $80.65 on 2023-04-10, was open on 2023-05-01 when the fund lost 8.47% in one session, and it was stopped out on 2023-05-16 at $68.41 for -15.18%. A 15% stop leaves little room for a day like that. The fund's best days were 2022-11-10 at +11.57%, 2023-03-10 at +10.17%, 2022-09-28 at +10.02%, 2021-02-26 at +9.87% and 2022-12-01 at +9.56%. None of the five fell inside a position the rule held, since the account was flat from January 2022 to April 2023.
That gap in the trade list covers many of the largest daily moves in the window, up and down. The rule skipped all of it because the close stayed under the 200-day line. The fund spent 16.39% of its sessions above that line, so the entry condition was rarely true,
The fund's own 10% drops from a 20-day high happened 62 times over 526 days. A 15% trailing stop is wide enough to survive an ordinary day but a few bad sessions in a row can still reach it. The trades entered on 2021-12-29, 2023-04-10 and 2024-10-04 lasted 20, 36 and 25 days and all ended at the stop.
The fund's weekday averages were uneven: Monday -0.59%, Thursday -0.27%, Friday -0.2%, Tuesday +0.03% and Wednesday +0.33%. The lag-1 autocorrelation was -0.04. The rule does not use the weekday, and with 1,444 sessions the Monday figure is a description of this window and not a pattern a rule could trade.
Largest drawdowns
| Peak | Low point | Depth | Days to low | Recovered | Days to recover |
|---|---|---|---|---|---|
| 2021-12-03 | 2026-03-20 | −62.5% | 1568 | not yet | – |
| 2021-11-09 | 2021-11-23 | −12.2% | 14 | 2021-11-30 | 7 |
| 2021-10-18 | 2021-10-21 | −3.9% | 3 | 2021-10-26 | 5 |
Buy-and-hold's deepest drawdown ran from 2021-01-04 to 2026-10-02 and reached −88.5%.
Drawdown
The rule's largest drawdown was 62.48%, from a peak on 2021-12-03 to a low on 2026-03-20. It took 1,568 days to reach the low and had not recovered by the end of the test. Buy-and-hold's drawdown began on 2021-01-04, the first day, and reached 88.49% on 2026-10-02, the last day, so the fund never recovered during the window.
The rule's own equity path is the sum of losses. After the 4.28% gain in late 2021, most of the next trades lost between 12% and 15%, and the rule's equity fell in steps as each stop-out was followed by another entry. The other two drawdowns in the table are from 2021: 12.15% from 2021-11-09 to 2021-11-23, recovered by 2021-11-30, and 3.93% from 2021-10-18 to 2021-10-21, recovered by 2021-10-26.
A drawdown of 62.48% in a rule that was invested for only 24.5% of sessions shows how large the losses were while it was invested. It took a loss near the stop distance on most entries and entered repeatedly. The rule's drawdown was 26.01 points shallower than holding's, which is the amount by which the cash periods protected it.
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) | −12.9% | −62.5% | $4,518 | -0.63 |
| 5 basis points | −13.1% | −62.9% | $4,466 | -0.63 |
| 10 basis points | −13.3% | −63.3% | $4,416 | -0.64 |
Trading costs
Eighteen fills means costs had little to work with. Charging 5 basis points per fill gave a CAGR of -13.1%, a max drawdown of 62.89% and a final value of $4,466.41. Charging 10 basis points gave -13.27%, 63.29% and $4,416.36. Sharpe moved from -0.62 to -0.633 and then -0.642.
Liquidity is ample here. TMF traded $162,498,054 on an average day, with 3,160 shares in a median minute. The loss comes from the rule meeting a falling fund, and costs only add a small amount to it.
Changing the parameters
| Version | CAGR | Max drawdown | Round trips | Win rate | Final value |
|---|---|---|---|---|---|
| Published rules | −12.9% | −62.5% | 9 | 22% | $4,518 |
| 10% trailing stop | −8.0% | −51.0% | 14 | 29% | $6,215 |
| 20% trailing stop | −15.7% | −68.7% | 7 | 14% | $3,764 |
| 25% trailing stop | −13.9% | −64.9% | 5 | 0% | $4,222 |
Changing the stop distance
Three variants changed the width of the trailing stop.
A 10% stop made 14 trades and won 4, with a CAGR of -7.95%, a max drawdown of 51.0%, a Sharpe ratio of -0.446 and a final value of $6,215.35. This was the best of the group, and it lost less than the published 15% version. A tighter stop gave up less on each failed entry, which was the main cost on this fund.
A 20% stop made 7 trades and won 1, with a CAGR of -15.65%, a max drawdown of 68.74%, a Sharpe of -0.712 and a final value of $3,763.52. A wider stop gave up more on each failure and was the weakest.
A 25% stop made 5 trades and won none, with a CAGR of -13.95%, a max drawdown of 64.94%, a Sharpe of -0.611 and a final value of $4,221.75.
The order from 10% to 20% is monotonic: the wider the stop, the worse the result. The 25% version came out a little better than 20%, which breaks the pattern, and with 5 to 14 trades the differences rest on a handful of exits. All three variants lost money, and all three beat buy-and-hold's -31.16% CAGR. The finding that a tight stop helps is specific to a fund that fell most of the window. On a fund that rose, a tight stop would be expected to cut winners short.
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
Annualized volatility for TMF was 45.67%. Up days averaged 2.18% and down days -2.33%, the daily range averaged 2.81% and the overnight gap 1.63%. The fund closed higher on 48.51% of sessions. It stayed above its 200-day average on only 16.39% of sessions and crossed that line 33 times, so the entry condition held on a small share of days, which is why the rule was invested 24.5% of the time.
TMF is a leveraged bet on long Treasury yields. It had a correlation of 1.0 and a beta of 2.98 to TLT, and a correlation of 0.08 to SPY. TLT lost 40.49% over the window. Triple that would be -121.46%, which a long fund cannot reach, and TMF actually returned -91.44%, a gap of 30.03 points. A daily-rebalanced ideal of -85.94% lands close to the actual figure. The yearly gaps were -5.85 points in 2021, 20.99 in 2022, then -19.79, -11.78, -15.59 and -5.46. TLT rose 2.79% in 2023 and 4.23% in 2025 while TMF fell 11.4% and 2.89%, which shows the daily reset costing the fund in choppy years.
Almost the whole loss arrived overnight: the overnight log return was -260.41% against 16.32% intraday. A rule that holds through nights takes that loss, and one in cash avoids it.
RSI(14) dropped under 30 on 75 sessions. The median 20-day return afterwards was -4.97%, worse than the -3.02% baseline, so buying oversold readings made things worse. That agrees with the RSI mean reversion result of -25.04%. TMF had 62 episodes of a 10% or greater fall from a 20-day high, covering 526 days. November averaged 12.46% over 5 observations and September -9.63%, both thin samples.
Rates seasonality and the oversold statistics on TMF
TMF moves with the long end of the Treasury curve, and its month-of-year averages were lopsided. November averaged +12.46% and June +3.49%, while October averaged -8.59%, April -8.15%, September -9.63% and March -5.96%. Each month has five or six observations, so these averages are anecdotes, but they line up with the rule's own record: its worst month was October 2024 at -19.99%, and it lost 4.3% in April 2023 and 10.92% in May 2023. The one month where the rule gained on a large scale, February 2026 at +12.87%, was followed by the March loss that ended that position.
The 2-day RSI under 10 appeared on 215 sessions. The median 5-day return after those sessions was -0.29% against a baseline of -0.7%, and the median 20-day return was -2.78% against -3.02%. Both readings are better than the baseline, though both are still losses, since the fund's baseline was negative at every horizon. That small relative edge is the reason the RSI(2) snapback ranked first on TMF at -4.0% while longer-horizon dip rules finished near the bottom. A short hold in a falling fund loses less than a long one.
The fund moved with other bond funds almost one for one in direction. Its closest matches were TLT at 1.0, BND at 0.92, AGG at 0.91, IEF at 0.91 and UST at 0.86. UST, the 2x version in the leveraged group, lost 8.66% a year under this rule with a 41.4% drawdown, against -12.92% and 62.48% for the 3x TMF. The extra leverage brought a deeper drawdown and a lower CAGR on the same underlying direction.
Daily correlation to SPY was 0.08, so the equity market tells a reader little about when this rule would have entered. The signal depended on the price of long Treasuries relative to their own 200-day average, which they held above for only a sixth of the window.
The rules
Enter when price is above the 200-day average; exit only when a 15% trailing stop is hit.
- WHEN the market opens · IF not invested AND yesterday's close > SMA(200) · THEN buy with 98% of the sleeve
- WHILE invested · a managed trailing stop follows 15% below the position's high-water mark
A hybrid of the regime filter and the trailing stop. The 200-day average decides when to get in, and a 15% trail from the position's high-water mark decides when to get out. Winners can run well past the point where a crossover would have exited, and the position gives back 15% from every peak.
Good for: long trends with moderate pullbacks; the 15% trail is wide enough to survive normal corrections.
Watch out: every exit gives back 15% from the peak, and on choppy assets it re-enters above the 200-day repeatedly after each stop-out.
How the trend plus trailing stop compares on TMF
Seventh place out of 12 templates went to this rule on TMF, and every template finished with a negative CAGR. At the top the RSI(2) snapback lost -4.0% with a 55.1% drawdown. The golden cross followed at -8.36% with 50.12%, then the 200-day regime filter at -10.5% and the SMA 10/50 trend at -10.67%. Next came the momentum breakout at -11.1% and the weekly 7% target at -11.83%. This rule's -12.92% sat just below those, ahead of the 3-month momentum at -13.16% and the EMA 12/26 trend at -13.9%. The bottom three were the RSI mean reversion at -25.04%, the dip buyer at -29.84% and the monthly cycle at -32.21%, whose drawdown reached 89.65%.
The results spanned -4.0% to -32.21%. The golden cross and the 200-day filter share this rule's 200-day idea but leave by another route, a cross or a close under the line, and each lost less than the trailing stop did.
The template's median CAGR across the 59 funds was 2.61%, with TMF at -12.92% in 58th place. The median among the 10 leveraged funds was 14.4%. TQQQ led with 25.03%, followed by SOXL at 17.82%, QLD at 17.16%, ROM at 16.46% and TECL at 14.4%. SSO made 11.43% and SPUU 11.01%. Negative results came from three leveraged funds: UST at -8.66%, FAS at -11.05% and TMF at -12.92%. The TMF fund page covers all twelve templates.
How the 15% trailing stop behaved
The exit is a stop that follows 15% below the highest price reached since entry. When the fund rises, the stop rises with it. When the fund falls from its high by 15%, the position is sold. Nothing else ends a trade, and the rule is not looking at the 200-day average once it is in.
The losing trades are clustered at the stop distance. Seven of nine trades lost, and the losses were -15.18%, -14.87%, -14.17%, -13.26%, -11.99%, -8.75% and -7.3%. The five largest sit between 11.99% and 15.18%. Each of those trades entered above the 200-day line and then fell through a stop placed 15% under its high. A stop that wide gives up about 15% on every failed entry, which is the caveat named in the strategy notes. When the fund moves 2.81% in an average day, as TMF did, a 15% stop is only a few daily ranges away.
The two winners were smaller than the typical loss. The best trade ran from 2024-06-06 at $46.74 to 2024-10-04 at $49.39 for 5.67% over 120 days, and the other from 2021-10-19 to 2021-12-29 for 4.28%. A trailing stop is meant to let winners run so they pay for the losers. Here the winners had no room to run, because the fund's drift was down and its rallies were short. Each winner ended when the stop was hit after a rally of a few months, and the losers ended when the stop was hit with no rally at all.
The trades on 2021-12-29 and 2024-10-04 show a quirk of the rule. The stop sold the position and the 200-day condition bought it again at about the same price on the same day. A re-entry on the day of an exit is the cost of separating the entry rule from the exit rule, and in both cases the new position lost money.
What the test covers
This is one fund over one window of 5.74 years in which long-term Treasuries fell and the 3x fund lost most of its value. The nine trades are a small sample, and the 22% win rate and the 0.12 profit factor rest on them. The headline run has no fees or slippage, and stop-triggered fills in a live account can differ from the modeled stop price, especially on a gap. Backtests are hypothetical and do not predict future results. Nothing on this page is investment advice.
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 trend + trailing stop beat buy-and-hold on TMF?
Over 2021-01-04 to 2026-10-02, trend + trailing stop on TMF returned −12.9% annualized vs −31.2% for buy-and-hold: it beat buy-and-hold by 18.2% per year, with a maximum drawdown 26.0 points shallower than holding (62.5% vs 88.5%).
How many trades did it make?
9 completed round trips over 5.7 years (18 fills), with 22% of round trips closing profitably.
Why 15% rather than 10%?
A wider trail survives routine corrections and gives back more at the end. Both numbers are one-field edits in DeployQuant, so you can backtest both and compare.
Did the trend plus trailing stop beat buy-and-hold on TMF?
In relative terms, yes. It returned -12.92% a year against -31.16% for holding and ended at $4,517.69 against $1,172.34. It still lost 54.82% of the starting money.
Why did the strategy win only 2 of 9 trades on TMF?
Each entry was above the 200-day average, but TMF's rallies were short and the 15% trailing stop took each failed entry out for a loss of 12% to 15%. The two winners were 5.67% and 4.28%.
What happened in 2022 on TMF?
The fund fell 72.63% and the rule returned -13.7%, against -69.7% for holding. The rule lost 11.99% on a trade from 2021-12-29 to 2022-01-18 and then held no position for the rest of the year.
Does a tighter stop help on TMF?
A 10% stop returned -7.95% a year, against -12.92% for the published 15% stop, and a 20% stop returned -15.65%. A tighter stop gave up less on each failed entry on this fund. The result applies to a fund that fell most of the window.
How large was the drawdown?
The rule's max drawdown was 62.48% and it had not recovered by 2026-10-02. Buy-and-hold's was 88.49% and ran from the first day to the last day of the window.
Which of the 12 templates did best on TMF?
Best on TMF was the [RSI(2) snapback](/learn/strategies/rsi2-dip-snapback/tmf/), at -4.0%, and none of the 12 templates had a positive CAGR. The trend plus trailing stop ranked 7th of 12.
Do costs change the result?
Slightly. At 5 basis points the CAGR was -13.1% and at 10 basis points -13.27%, against -12.92% in the headline run. The rule made 18 fills.
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.