Learn › Strategies › EMA 12/26 Trend › TMF

EMA 12/26 Trend 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.

Result: EMA 12/26 trend on TMF turned $10,000 into $4,236 (−57.6% total, −13.9% CAGR): it beat buy-and-hold by 17.3% per year, with a maximum drawdown 23.4 points shallower than holding (65.1% vs 88.5%).

The EMA 12/26 trend rule lost money on TMF, and it lost less than holding the fund. From $10,000 on 2021-01-04 it ended at $4,235.92, a total return of -57.64% and a CAGR of -13.9%. Buy-and-hold on the same fund ended at $1,172.34, a CAGR of -31.16%. The rule's maximum drawdown was 65.06% against 88.49% for holding.

TMF is a three-times leveraged fund on long-term Treasuries. Over the window it lost 91.44% of its value, and its price was still making new lows on the last day of data. A rule that holds the fund when the 12-day exponential average sits above the 26-day, and sells when it drops below, can only reduce that loss. It cannot turn a falling asset into a rising one, and here it did not come close.

The trade record is the useful part. There were 26 round trips and 7 winners, a 27% win rate, with a profit factor of 0.33. The average win was 5.65% and the average loss was -6.35%, so the typical trade was a small loss and the occasional winner was not large enough to pay for the losses. The account held the fund for 35.3% of the window.

The result ranks 9th of 12 strategies on TMF and 54th of 59 funds for this rule. The headline gap over buy-and-hold, 17.26 points a year in the rule's favour, is real, but it measures how badly holding did. It does not describe a working strategy. The rule is described on its strategy page.

−13.9%CAGR
−31.2%buy & hold CAGR
−65.1%max drawdown
-0.47Sharpe ratio
26round trips
27%win rate
■ EMA 12/26 trend   ■ buy & hold, $10,000 invested 2021-01-04

Year by year

YearEMA 12/26 trendbuy & hold
2021−3.8%−18.8%
2022−15.4%−69.7%
202314.2%−9.9%
2024−34.3%−30.7%
2025−20.2%−2.3%
2026−13.1%−23.1%

Year by year on a fund in a bond bear market

The rule lost in five of the six calendar years. It returned -3.8% in 2021, -15.4% in 2022, 14.2% in 2023, -34.3% in 2024, -20.2% in 2025 and -13.1% in the partial year 2026. The only gain came in 2023, and it came from two trades in November and December.

Buy-and-hold lost every year: -18.8%, -69.7%, -9.9%, -30.7%, -2.3% and -23.1%. The rule beat holding in 2021, 2022, 2023 and 2026, and trailed it in 2024 and 2025. The largest gap in the rule's favour was 2022, by 54.3 points. TMF lost 72.63% that year, and the EMA pair spent nearly all of the year in cash. The rule's monthly returns in 2022 show 0.0% in January through June, and again in September and October. It held the fund only in three stretches: July to August, late November and December.

The two years the rule trailed holding are the years it did the most damage to itself. In 2024 it made 7 round trips and won 2 of them, and the account lost 34.3% while the fund lost 30.7%. In 2025 it made 5 round trips and won 2, and lost 20.2% against 2.3% for holding. A trend rule buys after the fund has already risen for several weeks, and TMF kept reversing before the move paid. The fund's daily average range was 2.81%, so a 12/26 crossover that took weeks to confirm was often wrong within days.

The yearly gaps are 15 points in 2021 and 24.1 points in 2023 in the rule's favour, 10 in 2026, then -3.6 in 2024 and -17.9 in 2025. In 2025 the rule was stopped out on 2025-04-10 at a loss of 14.91%. The comparison with holding looks good in total because the 2022 gap dominates it, and the 2022 gap is a single year.

Month by month

YearJanFebMarAprMayJunJulAugSepOctNovDec
20210.0%0.0%0.0%−3.6%−2.8%12.3%10.6%−1.4%−8.9%0.0%0.3%−8.1%
20220.0%0.0%0.0%0.0%0.0%0.0%−1.8%−6.7%0.0%0.0%1.2%−8.8%
20232.7%−9.0%−3.6%−1.8%0.0%−4.4%0.0%0.0%0.0%0.0%7.8%25.3%
2024−15.9%0.0%−9.5%0.0%−6.9%−5.1%0.8%4.6%4.5%−1.5%0.0%−9.9%
20250.0%9.5%−8.0%−14.5%0.0%3.8%−7.4%−4.4%−0.1%3.0%−1.9%0.0%
20260.0%3.5%−11.3%0.0%0.0%1.2%−6.4%0.0%0.0%0.0%––

The months that made and lost the money

The best month was December 2023, a gain of 25.32%, and the worst was January 2024, a loss of 15.88%. They are adjacent and come from the same trade. The rule bought on 2023-11-15 at an adjusted price of 42.96 and sold on 2024-01-19 at 48.93. That was the best trade of the six years, a gain of 13.9% over 65 days. The December gain is the climb, and the January loss is the fund falling back before the exit signal arrived.

Buy-and-hold's best month was November 2023 at 23.37%, and its worst was April 2022 at -25.2%. The rule was in cash for all of April 2022, so it took none of that loss.

Other months worth naming are April 2025, when the rule lost 14.51%, March 2026 at -11.34%, December 2024 at -9.95% and March 2024 at -9.51%. Each of these is a single trade that entered after a rally and exited after a sharp reversal. In April 2025 the entry on the 2nd and the exit on the 10th lost 14.91% in 8 days, the worst trade in the sample.

The fund's own calendar-month averages show how uneven the seasonality was. November averaged a gain of 12.46% across the five Novembers in the data, while September averaged -9.63%, October -8.59% and April -8.15%. Those are averages from six years, with only five or six observations each, and the template has no calendar logic. They show that the fund lurched, and a 26-day exponential average could not keep up with a fund that moved this far in single months.

In many months of the grid the rule held cash, and those zeros are months the long-term bond fund moved without an entry signal.

Every trade

EMA 12/26 trend on TMF made 26 closed round trips, an average hold of 29 days, an average winner of 5.65%, an average loser of −6.35%, a profit factor of 0.33, a longest losing streak of 4. It held a position at the close on 35.3% of trading days.

EntryEntry priceExitExit priceReturnDays held
2021-04-23$208.292021-05-04$205.12−1.5%11
2021-05-05$203.002021-05-12$192.68−5.1%7
2021-06-03$200.532021-09-28$224.5011.9%117
2021-11-03$241.672021-11-24$226.38−6.3%21
2021-11-29$240.982021-12-30$236.38−1.9%31
2022-07-18$107.852022-07-20$108.670.8%2
2022-07-22$116.932022-08-17$106.14−9.2%26
2022-11-23$71.932022-12-29$66.28−7.8%36
2023-01-12$78.382023-02-13$73.11−6.7%32
2023-03-16$80.192023-04-20$73.94−7.8%35
2023-04-27$74.722023-04-28$76.602.5%1
2023-06-28$70.152023-06-30$66.99−4.5%2
2023-11-15$42.962024-01-19$48.9313.9%65
2024-03-08$52.022024-03-18$46.96−9.7%10
2024-05-17$44.792024-05-30$41.63−7.1%13
2024-06-05$46.902024-07-05$45.42−3.2%30
2024-07-09$45.672024-07-25$44.64−2.3%16
2024-07-31$48.242024-10-03$52.508.8%64
2024-12-05$46.172024-12-16$41.48−10.2%11
2025-02-07$39.682025-03-28$39.980.8%49
2025-04-02$43.732025-04-10$37.21−14.9%8
2025-06-25$35.932025-07-15$34.50−4.0%20
2025-08-04$37.242025-08-22$35.58−4.5%18
2025-09-08$38.672025-11-10$39.000.8%63
2026-02-13$39.222026-03-13$35.88−8.5%28
2026-06-15$34.692026-07-09$32.81−5.4%24

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.

Twenty-six trades, seven wins

The first trade opened on 2021-04-23 at 208.29 and closed on 2021-05-04 at 205.12, a loss of 1.52%. The adjusted prices in this list look high for a fund that ended near 33, and the reason is the adjustment for splits and dividends described in the method. The last trade opened on 2026-06-15 at 34.69 and closed on 2026-07-09 at 32.81, a loss of 5.42%. The median trade lost 4.46% and the median hold was 24 days. The longest hold was 117 days and the shortest was 1.

The five best trades are 13.9% (2023-11-15 to 2024-01-19), 11.95% (2021-06-03 to 2021-09-28, 117 days), 8.83% (2024-07-31 to 2024-10-03), 2.52% (2023-04-27 to 2023-04-28, one day) and 0.85% (2025-09-08 to 2025-11-10). The five worst are -14.91% (2025-04-02 to 2025-04-10), -10.16% (2024-12-05 to 2024-12-16), -9.73% (2024-03-08 to 2024-03-18), -9.23% (2022-07-22 to 2022-08-17) and -8.52% (2026-02-13 to 2026-03-13).

The longest winning streak was 1 and the longest losing streak was 4. A winner was never followed by another winner. That is the whipsaw signature: the crossover confirmed a move, the move faded, and the exit came after the loss was already taken. By exit year, 2021 had 5 round trips and 1 win, 2022 had 3 and 1, 2023 had 4 and 1, 2024 had 7 and 2, 2025 had 5 and 2, and 2026 had 2 and 0.

Pairs of trades close together show the problem. On 2022-07-18 the rule entered at 107.85 and exited two days later at 108.67 for a 0.76% gain. It re-entered on 2022-07-22 at 116.93, a higher price, and exited on 2022-08-17 at 106.14 for a 9.23% loss. A similar pair occurred in May and June 2024, with a loss of 7.06% followed by one of 3.16%. Re-entering at a higher price after an exit is built into any crossover rule.

Each exit and entry executes at the open after the signal, so every one of the 52 fills gave up the gap that formed overnight. For this fund that gap averaged 1.63%.

Largest drawdowns

PeakLow pointDepthDays to lowRecoveredDays to recover
2021-09-222026-07-09−65.1%1751not yet–
2021-07-192021-08-12−9.6%242021-09-2241
2021-05-062021-06-03−7.3%282021-06-107

Buy-and-hold's deepest drawdown ran from 2021-01-04 to 2026-10-02 and reached −88.5%.

Drawdowns: a long fall with one trough

The deepest drawdown was 65.06%, from a peak on 2021-09-22 to a trough on 2026-07-09, 1,751 days later, with no recovery. The account was still below that peak at the end of the window. The next two drawdowns were small, 9.6% from 2021-07-19 to 2021-08-12 and 7.32% from 2021-05-06 to 2021-06-03. Both recovered within weeks, and they belong to the 2021 stretch when the rule's winning trade ran.

Holding the fund had a single drawdown that began on the first day, 2021-01-04, reached 88.49% on 2026-10-02 and never recovered. The fund's longest drawdown lasted 1,443 sessions, essentially the whole window. A 65.06% fall for the rule is better than 88.49%, and it is still a loss that takes a large gain to repair.

The drawdown is built from the same trades listed above. The 2021-09-22 peak followed the 11.95% winner. After that the account kept trading, and no later winner was big enough to carry it back to that peak.

Leverage matters for the size of each loss. The fund's realized beta to TLT was 2.98, with an R-squared of 1, so TMF moved as a nearly exact multiple of the long-bond fund day to day. TLT itself lost 40.49% over the window. Three times the daily move compounded produced -85.94% on an ideal daily-rebalanced basis, and the fund's actual return was -91.44%, with the facts putting the decay gap at 30.03 percentage points against a simple three-times calculation of -121.46%. A single trade that lost 14.91% in 8 days was ordinary for a fund with 45.67% annualized volatility.

With trading costs

The headline run fills at the bar price. These runs charge slippage on every fill.

Slippage per fillCAGRMax drawdownFinal valueSharpe
None (headline)−13.9%−65.1%$4,236-0.47
5 basis points−14.3%−65.9%$4,125-0.48
10 basis points−14.7%−66.7%$4,023-0.50

Trading costs on top of a losing rule

The headline run charges nothing per fill. With 5 basis points of slippage per fill the CAGR falls from -13.9% to -14.29%, the maximum drawdown rises from 65.06% to 65.91%, and the final value drops from $4,235.92 to $4,125.43. With 10 basis points the CAGR is -14.66%, the drawdown 66.69% and the final value $4,023.43. The Sharpe ratio goes from -0.47 to -0.483 and then -0.5.

The cost drag is small next to the loss from the trades themselves. The extra cost at 10 basis points is a fraction of a point of annual return, and most of the -13.9% came from the price path and the entries. Costs do not change the ranking of outcomes here. The rule loses with or without them.

A further caveat applies to slippage on this fund. TMF's average daily dollar volume was $162,498,054 over the window, and its median minute carried 3,160 shares. A $10,000 account trades easily at that size, so the fixed basis-point charge is a reasonable test. A larger account would meet a thinner book on the same fund.

Changing the parameters

VersionCAGRMax drawdownRound tripsWin rateFinal value
Published rules−13.9%−65.1%2627%$4,236
EMA 8/21−10.3%−56.5%3123%$5,359
EMA 20/50−17.7%−73.5%138%$3,276
EMA 12/50−19.7%−77.0%2114%$2,832

What other EMA lengths did

Three variants were tested against the published 12/26 pair. EMA 8/21 was the best of the group: a CAGR of -10.3%, a maximum drawdown of 56.49%, 31 trades and 7 wins, ending at $5,358.71 with a Sharpe of -0.278. EMA 20/50 returned -17.66% a year with a 73.53% drawdown, 13 trades and 1 win, and ended at $3,276.22. EMA 12/50 returned -19.73% with a 77.04% drawdown, 21 trades and 3 wins, and ended at $2,831.96.

All three variants lost money, so there is no setting in the table where the rule worked on TMF. The ordering is the informative part. The faster pair, 8/21, lost the least, and the slower pairs lost more. On a fund that falls hard in sudden bursts, an average that reacts quickly gets out sooner, and the slower averages take a larger share of each drop before they flip. The costs of speed are visible too: 31 trades against 26.

The result does not show that faster is better in general. One window and one fund prove nothing about the rule elsewhere. With 5.74 years of data and a fund that was down for nearly all of it, the table says the rule has no edge on TMF at these four settings, and the small differences between them are within what one lucky or unlucky trade could produce. EMA 20/50 won once in 13 trades, and that single trade decides whether its record looks like 1 win or 2.

How TMF behaved

MeasureTMF
Data in this test2021-01-04 to 2026-10-02 (1444 sessions)
Total return, buy and hold−91.4%
Annualized volatility45.7%
Deepest drawdown−91.4% (2021-01-04 to 2026-10-02)
Up days48.5%
Average daily range2.81%
Average overnight gap1.63%
Correlation to SPY0.08
Correlation to QQQ0.09
Correlation to TLT1.00
Sessions above the 200-day average16.4%
Crossings of the 200-day average33
Falls of 10% or more from a 20-day high62

Why TMF punishes a trend rule

TMF returned -91.44% over the window, a CAGR of -34.82%, with annualized volatility of 45.67%. It was up on 48.51% of days. The average up day was 2.18%, the average down day was -2.33%, and the average intraday range was 2.81%. Best days were 11.57% on 2022-11-10 and 10.17% on 2023-03-10, and worst days were -10.12% on 2022-03-02 and -9.23% on 2022-06-13.

Only 16.39% of sessions closed above the 200-day average, and the fund crossed it 33 times. A trend rule needs a fund that trends, and TMF mostly trended down with violent bounces. The 14-day RSI fell below 30 on 75 sessions, and the median return over the following 20 sessions was -4.97%, worse than the unconditional median of -3.02%. Oversold readings were followed by more losses, which is the opposite of what a dip rule wants and the same behaviour that hurt the dip buyer here.

The overnight split is unusual. The fund's overnight log return was -260.41%, while its intraday log return was 16.32%. Nearly all of the decline came between the close and the next open. A rule that decides after the close and trades at the open takes the overnight move whether it is long or flat. Being flat avoided it, and being long took all of it. The 35.3% exposure was concentrated in stretches where the fund briefly rose.

The fund's correlation to TLT was 1, to SPY 0.08 and to QQQ 0.09, and its beta to SPY was 0.21. It behaves as a leveraged interest-rate bet and does not diversify an equity portfolio in the usual way. Its closest relatives are BND at 0.92, AGG at 0.91 and IEF at 0.91. The TMF ETF page lists the full profile.

The rules

Hold while the 12-day exponential average is above the 26-day, the core of the MACD used as a position switch.

  1. WHEN the market opens · IF not invested AND EMA(12) > EMA(26) · THEN buy with 98% of the sleeve
  2. WHEN the market opens · IF invested AND EMA(12) < EMA(26) · THEN sell the whole position

The 12/26 exponential moving average pair is the core of the MACD indicator. Exponential averages weight recent days more than simple averages, so this crossover reacts faster than an SMA pair of the same length. Used as a long/flat switch, it gives you a position you can hold and measure.

Good for: traders who like MACD logic but want it expressed as a simple, testable long/flat rule.
Watch out: faster reaction means more trades and more whipsaws than a 50/200 cross; check the trade count on each backtest page.

How the same rule fared on other leveraged funds

The EMA 12/26 rule's median CAGR across all 59 ETFs was 2.76%, and its median across the leveraged category was 17.3%. TMF sits at the bottom of that category. Peers include SOXL at 26.2% with a 65.38% drawdown and 22 round trips, TECL at 19.83%, SPUU at 19.12% with a 22.88% drawdown, SSO at 17.3%, TQQQ at 15.25%, QLD at 10.85%, FAS at 8.7% and UST at -2.49%. UST, a two-times Treasury fund, is the only other loser, which makes the Treasury exposure the common factor.

The same rule with the same parameters earned more on equity-linked leveraged funds because equities rose over most of the window. TMF's underlying asset fell, and a rule that only goes long a falling asset has nothing to harvest.

On TMF itself the other templates ranked above this one. RSI(2) snapback was the best at -4% with a 55.1% drawdown. Golden cross returned -8.36%, the 200-day regime filter -10.5% and SMA 10/50 trend -10.67%. Below the EMA rule were RSI mean reversion at -25.04%, the dip buyer at -29.84% and monthly cycle at -32.21%. Every one of the 12 templates lost money on TMF, so the lesson is about the fund. The window is 5.74 years, the decisions are daily, the headline run has no fees, and none of this forecasts what the fund does next.

Run EMA 12/26 trend on TMF yourself, free →

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 EMA 12/26 trend beat buy-and-hold on TMF?

Over 2021-01-04 to 2026-10-02, EMA 12/26 trend on TMF returned −13.9% annualized vs −31.2% for buy-and-hold: it beat buy-and-hold by 17.3% per year, with a maximum drawdown 23.4 points shallower than holding (65.1% vs 88.5%).

How many trades did it make?

26 completed round trips over 5.7 years (52 fills), with 27% of round trips closing profitably.

Is this the same as trading MACD signals?

It uses the MACD's underlying trend component. Classic MACD trades the signal-line crossover of the 12/26 spread. This template trades the spread's sign directly, which is simpler and can be built fully in blocks.

Did the EMA 12/26 strategy beat buy-and-hold on TMF?

Yes, but both lost money. The rule returned -13.9% a year and ended at $4,235.92, while holding returned -31.16% a year and ended at $1,172.34. The rule's maximum drawdown was 65.06% against 88.49%.

Why was the win rate only 27% on TMF?

The rule made 26 round trips and won 7. TMF reversed sharply within days of each crossover, so entries after a rally were often followed by a drop before the exit signal. The average win was 5.65% and the average loss was -6.35%.

Would a faster EMA pair have helped?

EMA 8/21 lost the least of the variants tested, at -10.3% a year, but it still lost money and made 31 trades. The slower pairs, 20/50 and 12/50, lost 17.66% and 19.73% a year. No setting tested made money on TMF.

How much did trading costs matter?

At 5 basis points per fill the CAGR was -14.29%, and at 10 basis points it was -14.66%, against -13.9% in the headline run. The costs added to the loss, and the main driver was the trades themselves.

What was the worst trade on TMF?

The entry on 2025-04-02 at an adjusted price of 43.73, exited on 2025-04-10 at 37.21, lost 14.91% in 8 days. It is the largest single loss among the 26 round trips.

Is this result likely to repeat?

The test covers one window of 5.74 years in which TMF lost 91.44%. It shows how the rule behaved on that path and says nothing certain about future results. The same rule showed positive CAGRs on several equity-linked leveraged funds in the same window.

Related

EMA 12/26 Trend on all 59 ETFsfull results table All strategies on TMF12 templates compared RSI(14) Mean Reversion on TMFsame ETF, different rulesRSI(2) Dip Snapback on TMFsame ETF, different rules

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.