Learn › Strategies › EMA 12/26 Trend › SOXL

EMA 12/26 Trend on SOXL

Direxion Daily Semiconductor Bull 3X Shares: 3x daily leveraged semiconductors, one of the more volatile ETFs listed. 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 SOXL turned $10,000 into $38,043 (280.4% total, 26.2% CAGR): it trailed buy-and-hold by 7.1% per year, with a maximum drawdown 24.2 points shallower than holding (65.4% vs 89.6%).
26.2%CAGR
33.3%buy & hold CAGR
−65.4%max drawdown
0.69Sharpe ratio
22round trips
36%win rate
■ EMA 12/26 trend   ■ buy & hold, $10,000 invested 2021-01-04

Year by year

YearEMA 12/26 trendbuy & hold
2021−19.5%119.0%
2022−41.6%−84.8%
2023114.0%211.2%
202428.8%−12.1%
20254.5%53.6%
2026181.0%285.2%

Month by month

YearJanFebMarAprMayJunJulAugSepOctNovDec
20210.0%−5.4%−17.4%−16.1%−7.7%16.6%−10.5%−5.3%−10.9%6.5%34.8%5.2%
2022−12.4%0.0%−14.2%−4.4%0.0%0.0%16.1%−21.1%0.0%0.0%13.8%−22.0%
202316.8%0.7%12.2%−16.2%20.2%17.7%14.2%−23.3%0.0%0.0%13.6%37.5%
20242.1%33.1%8.7%−14.7%9.0%14.0%−8.4%0.0%0.9%−11.0%0.0%0.0%
2025−31.6%−16.4%0.0%0.0%−6.6%54.1%−0.2%4.2%33.4%36.4%−27.2%−7.9%
202645.9%1.6%−19.4%68.1%75.3%18.9%−38.3%0.0%−1.8%10.7%––

Every trade

EMA 12/26 trend on SOXL made 22 closed round trips and one position still open at the end of the test, an average hold of 52 days, an average winner of 52.61%, an average loser of −11.93%, a profit factor of 2.73, a longest losing streak of 5. It held a position at the close on 54.6% of trading days.

EntryEntry priceExitExit priceReturnDays held
2021-02-10$39.642021-03-05$30.79−22.3%23
2021-04-05$42.842021-05-04$32.95−23.1%29
2021-06-02$36.912021-07-20$35.77−3.1%48
2021-07-22$39.882021-08-20$39.03−2.1%29
2021-08-26$43.302021-09-30$40.12−7.3%35
2021-10-25$43.272022-01-14$57.5533.0%81
2022-03-30$43.752022-04-05$35.67−18.5%6
2022-07-26$16.542022-08-29$15.12−8.6%34
2022-11-11$11.822022-12-21$10.46−11.5%40
2023-01-13$12.152023-03-14$14.6320.4%60
2023-03-17$16.252023-04-19$14.95−8.0%33
2023-05-19$17.142023-08-11$21.3324.4%84
2023-11-13$19.652024-04-16$39.0598.7%155
2024-05-15$43.842024-07-23$50.0514.2%69
2024-09-30$35.942024-10-24$34.31−4.5%24
2024-10-30$34.312024-10-31$32.19−6.2%1
2025-01-08$30.632025-01-13$26.69−12.9%5
2025-01-21$33.082025-01-29$25.74−22.2%8
2025-02-21$31.592025-02-25$26.29−16.8%4
2025-05-13$17.252025-11-19$34.62100.7%190
2025-12-04$45.702026-03-06$50.3510.2%92
2026-04-10$74.772026-07-08$163.94119.3%89
2026-09-23$150.34open–8.9%–

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
2024-07-102025-05-23−65.4%3172025-10-27157
2021-02-162023-01-19−60.8%7022024-01-23369
2026-06-222026-09-28−48.1%98not yet–

Buy-and-hold's deepest drawdown ran from 2021-12-27 to 2022-10-14 and reached −89.6%.

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)26.2%−65.4%$38,0430.69
5 basis points25.7%−65.6%$37,2440.68
10 basis points25.3%−65.8%$36,4420.68

Changing the parameters

VersionCAGRMax drawdownRound tripsWin rateFinal value
Published rules26.2%−65.4%2236%$38,043
EMA 8/2127.2%−73.4%3730%$39,844
EMA 20/5019.7%−70.5%1233%$28,028
EMA 12/5025.9%−64.5%1457%$37,480

How SOXL behaved

MeasureSOXL
Data in this test2021-01-04 to 2026-10-02 (1444 sessions)
Total return, buy and hold451.0%
Annualized volatility113.3%
Deepest drawdown−90.5% (2021-12-27 to 2022-10-14)
Up days53.4%
Average daily range7.77%
Average overnight gap3.17%
Correlation to SPY0.80
Correlation to QQQ0.87
Correlation to TLT0.05
Sessions above the 200-day average58.5%
Crossings of the 200-day average44
Falls of 10% or more from a 20-day high102

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 SOXL 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 SOXL?

Over 2021-01-04 to 2026-10-02, EMA 12/26 trend on SOXL returned 26.2% annualized vs 33.3% for buy-and-hold: it trailed buy-and-hold by 7.1% per year, with a maximum drawdown 24.2 points shallower than holding (65.4% vs 89.6%).

How many trades did it make?

22 completed round trips over 5.7 years (45 fills), with 36% 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 SOXL12 templates compared RSI(14) Mean Reversion on SOXLsame ETF, different rulesRSI(2) Dip Snapback on SOXLsame 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.