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%).
−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%

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%––

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.

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%.

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

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

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

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.

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.

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.