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

This rule stays in SOXL for as long as the 12-day exponential average is higher than the 26-day, and it exits the whole position once the 12-day falls under. SOXL is a 3x daily leveraged semiconductor fund. Over 2021-01-04 to 2026-10-02 the rule turned $10,000 into $38,042.82, a 26.2% CAGR, with a 65.38% max drawdown and a Sharpe ratio of 0.69. Holding SOXL over the same window turned the same $10,000 into $52,126.13, a 33.32% CAGR, with an 89.62% drawdown. The rule trailed buy-and-hold on return and had the shallower drawdown.

Of 22 round trips, 8 were winners, a 36% win rate. That low win rate is the main feature of the result. The average winner gained 52.61% and the average loser lost 11.93%, so the 14 losing trades were small against a handful of very large winners. The profit factor was 2.73. This is the normal shape of a trend rule: many small losses while the market chops, and a few long holds that carry the result.

On SOXL the EMA 12/26 trend takes fifth place of 12 templates by CAGR. Four finished higher: the golden cross with 45.93%, the RSI(2) snapback with 39.24%, the monthly cycle with 32.86% and the weekly 7% target with 29.47%. Across the 59 ETFs, SOXL is the best result for this template, and the median CAGR for the template over all 59 was 2.76%. The median for the leveraged ETF group was 17.3%.

The headline run charges neither fees nor slippage, and it spans a single window of about 5.74 years. A leveraged fund produces large numbers in both directions, so the figures here describe that window and say little about any other.

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%

How each year played out

SOXL is volatile enough that the calendar years look like different markets. The rule's year by year results against holding were: 2021, -19.5% against 119%; 2022, -41.6% against -84.8%; 2023, 114% against 211.2%; 2024, 28.8% against -12.1%; 2025, 4.5% against 53.6%; and 2026 so far, 181% against 285.2%.

The rule beat holding in 2022 and 2024 only. In 2022 it lost 41.6% while the fund lost 84.8%, which is where most of the drawdown advantage came from. The fund's peak was on 2021-12-27 and its trough on 2022-10-14, and the rule's only long hold of that stretch ended on 2022-01-14. The rule had still lost money for the year, because the entries on 2022-03-30 at $43.75 and 2022-07-26 at $16.54 both ended as losses of 18.47% and 8.59%.

2021 is the worst year for the rule relative to the fund. The fund rose 119% and the rule fell 19.5%. Five round trips closed that year, and none made money. The entries on 2021-02-10 and 2021-04-05 lost 22.33% and 23.09% within a month, and the three after them lost 3.09%, 2.13% and 7.34%. The fund went up in a series of sharp swings that kept crossing the moving averages in the wrong order. The only winner of the period was the entry on 2021-10-25, which was sold on 2022-01-14 for a 33% gain, and it closed in the 2022 count.

In 2023 the rule returned 114% against 211.2% for holding. It entered on 2023-01-13 at $12.15 and sold on 2023-03-14 for 20.41%, took a loss of 8% in the spring, caught 24.45% from 2023-05-19 to 2023-08-11, and then entered on 2023-11-13 at $19.65. That last trade ran 155 days to 2024-04-16 and returned 98.73%. It is the third best trade of the whole test.

2024 was the fund's one down year, at -12.1%, and the rule made 28.8%. The 2024-05-15 entry at $43.84 returned 14.17% by 2024-07-23. After that the rule made a 4.54% loss and a 6.18% loss that lasted one day, and then it sat out the rest of the year.

In 2025 the rule gained 4.5% against 53.6%. January and February took three losing entries in a row, 12.86%, 22.19% and 16.78%, each held between 4 and 8 days. The one long trade, from 2025-05-13 at $17.25 to 2025-11-19 at $34.62, returned 100.7% and made the year. The rule was out of the fund for the sharp April 2025 drop and came back after the low. 2026 is partial. The rule returned 181% to the fund's 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%––

The monthly pattern

The month table shows how uneven the returns were. The best month for the rule was May 2026 at 75.3%, and the next two were April 2026 at 68.06% and June 2025 at 54.15%. The worst month was July 2026 at -38.25%, followed by January 2025 at -31.58% and November 2025 at -27.17%. Holding the fund, April 2026 was the best month at 162.61% and July 2026 the worst at -56.9%.

Many cells in the table read 0. A zero in the table marks a month spent entirely in cash. Examples are February 2022, May and June 2022, September and October 2022 and several months in 2024 and 2025. In 2022, five months show a zero, which is part of why the 2022 loss was 41.6% and not worse.

The months with large losses came while the rule was invested at the turn of a swing. July 2026 shows this. The fund's second drawdown of the year began on 2026-06-22, and the rule's own drawdown from the same peak ran to a trough on 2026-09-28 at 48.08%. The rule had held a large winner into the top. The 119.26% trade closed on 2026-07-08, after the peak, and the rule bought again on 2026-09-23 at $150.34.

SOXL's calendar-month averages over the window are uneven too. May averaged 33.67% and November 24.84%, while August averaged -8.44% and March -4.43%. With 5 or 6 years behind each month, those averages describe a short history and are not a pattern the rule uses.

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.

The trades that mattered

Of 23 trades listed, 22 are closed and 1 is open. The open one was entered on 2026-09-23 at an adjusted price of $150.34 and was up 8.92% at the end of the data. The median closed trade lost 4.54%, and the median hold was 35 days. The longest hold was 190 days and the shortest was 1.

The five best trades account for most of the outcome. They are 119.26% from 2026-04-10 to 2026-07-08, 100.7% from 2025-05-13 to 2025-11-19, 98.73% from 2023-11-13 to 2024-04-16, 33% from 2021-10-25 to 2022-01-14 and 24.45% from 2023-05-19 to 2023-08-11. Three of these gained about 100% and each was held between 89 and 190 days. The rule has no profit target, so a trade ends only when the 12-day average falls under the 26-day, which is how it stayed in during each of those climbs.

The five worst trades were all between 4 and 29 days. They were 23.09% lost from 2021-04-05, 22.33% from 2021-02-10, 22.19% from 2025-01-21, 18.47% from 2022-03-30 and 16.78% from 2025-02-21. On a 3x fund, a move of about 20% in a few days is an ordinary swing, so the rule had no way to leave sooner than the crossover allowed. Five losses in a row was the worst run, and three wins in a row was the best.

The per-year count shows when the rule worked. Grouped by exit year: 2021 had 5 round trips and no wins. 2022 had 4 and 1 win. 2023 had 3 and 2 wins, 2024 had 4 and 2, 2025 had 4 and 1, and 2026 had 2 and 2. The 8 wins are spread over five calendar years, so the result does not come from one year, though each year's gain came from one or two trades.

The trade list shows split-adjusted prices. That explains $39.64 on the early entries and $11.82 to $16.54 on the 2022 ones, for a fund now trading in the $150 range.

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

What the drawdowns looked like

The rule's largest drawdown was 65.38%, from a peak on 2024-07-10 to a trough on 2025-05-23, 317 days later, with recovery on 2025-10-27 after another 157 days. The second was 60.77%, from 2021-02-16 to 2023-01-19, which took 702 days to reach the trough and 369 more to recover on 2024-01-23. The third was 48.08%, from 2026-06-22 to 2026-09-28, and it had not recovered when the data ended.

Holding SOXL had three drawdowns of its own. The deepest was 89.62%, 2021-12-27 to 2022-10-14, and recovery did not come until 2026-02-25, 1,230 days after the trough. A 69.27% drawdown ran from 2026-06-22 to 2026-07-29 and was still open when the data ended. A third, of 43.04% in early 2026, took 10 days to recover. The rule's drawdown was 24.24 points shallower than holding at the maximum.

The rule's two deepest drawdowns happened in different ways. The 2021 to 2023 drawdown was slow. The rule had a series of small losses while the fund was making and losing money, and after the trough it took a year to get back to the old high. The 2024 to 2025 drawdown was fast, with 317 days down and 157 days back. The 100.7% trade that began in May 2025 carried the account out of that drawdown.

The Sharpe ratio of 0.69 against 0.82 for holding shows the rule did not improve return per unit of volatility. It reduced the worst loss and gave up return, and it ended up a little lower on the ratio. A reader who could not hold through an 89.62% decline would still have had to live through 65.38% under the rule.

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

What costs do to the result

The headline run has no fees or slippage. Two further runs add 5 and 10 basis points per trade. At 5 basis points the CAGR was 25.74%, the max drawdown 65.57% and the end equity $37,244.21, with a Sharpe ratio of 0.684. At 10 basis points the CAGR was 25.26%, the drawdown 65.79% and the end equity $36,442.44, with a Sharpe of 0.679.

Each step cost about half a point of CAGR and a few hundred dollars of end equity. That is a small effect, because the rule made 22 round trips and 45 fills in 5.74 years. The drawdown barely moved. A rule that trades more often would show a larger drop between the three runs, and a fund with a wide bid-ask spread would show more than 10 basis points. SOXL trades about $2,243,524,454 a day on average, so its spread is narrow in practice.

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

What the parameter variants show

Three variants were run on the same data. EMA 8/21 returned 27.22% a year with a 73.42% drawdown and 37 trades, 11 of them winners. EMA 20/50 returned 19.66% with a 70.47% drawdown, 12 trades and 4 winners. EMA 12/50 returned 25.88% with a 64.5% drawdown, 14 trades and 8 winners. The standard 12/26 had 26.2%, a 65.38% drawdown and 22 round trips.

The variants end in a band between 19.66% and 27.22%, and none comes near the 33.32% of holding. The faster 8/21 pair had the highest CAGR and the deepest drawdown, and it made the most trades. The slower 20/50 pair had the lowest CAGR and made the fewest trades. The 12/50 version kept the fast line at 12 and slowed the slow line, and it had the shallowest drawdown at 64.5% and a CAGR within half a point of the standard version. The Sharpe ratios ran from 0.615 to 0.698.

The result is not very sensitive to the lengths, which is a good sign for the rule and a limit on how much any one pair can be trusted. The 8/21 variant ending first is a feature of this window, and a different window could reorder them.

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

How SOXL behaved and why that mattered

SOXL is a 3x daily fund on semiconductors. Its annualized volatility over the window was 113.25%, its average intraday range 7.77%, and its average up day and down day were 5.31% and -5.29%. It rose on 53.36% of days. The fund's total return was 450.98%, a 34.61% CAGR, with a 90.49% max drawdown from 2021-12-27 to 2022-10-14 that did not recover until 2026-02-25. The longest drawdown lasted 1,043 sessions.

A fund that moves 5% on a typical day will cross a moving-average pair often, and the 20-day window on SOXL had a 10% drawdown event 102 times, covering 769 days. That is the reason the rule had 14 losing trades among its 22. Many of the crossovers fell in the middle of a swing, and the rule bought and sold near the extremes of a choppy stretch. The largest wins came in the few periods when the fund trended for months, such as the 2023 recovery and the long climb in 2025 and 2026.

SOXL closed over its 200-day average on 58.55% of sessions and crossed it 44 times, which is less trending behaviour than a broad index shows. Its beta to SPY was 5.49 and to QQQ 4.42, and its correlation to SPY was 0.8. Against its own underlying, SOXX, the realized beta was 2.97, close to the nominal 3. The fund's biggest days were +55.98% on 2025-04-09 and +31.49% on 2022-11-10, and its worst were -30.71% on 2026-06-05 and -29.79% on 2025-04-03. A day like that moves a 98% position by a large amount before any rule can react.

Overnight gaps carried the return. The average overnight gap was 3.17%, and the overnight share of the fund's log return was 156.28%, while the intraday share was -56.28%. A rule that decides at the open and holds through the close collects the gap. This rule enters at the open after a crossover and holds for weeks, so it captures overnight moves in the periods it holds.

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 rules interact with this fund

Each open brings one of two actions. With the account flat and the 12-day exponential average over the 26-day, the rule buys using 98% of the sleeve. With the account long and the 12-day under the 26-day, it sells the lot. The exponential average weights recent days more, so the crossover reacts sooner than a simple-average pair of the same length. On a fund as volatile as SOXL, that speed turns into more signals.

The cost of speed shows in the loss sizes. The rule bought after the crossover, which came after the move had started, and sold after the reverse crossover, after part of the gain had gone. On the long trades the gain left over was still 98% to 119%. On the short trades, a 3x fund could move 16% to 23% against the position inside a week.

The same rule on slower ETFs behaves differently. In the leveraged group, TECL returned 19.83% with a 53.47% drawdown, SPUU 19.12% with 22.88%, ROM 17.91% with 42.45%, SSO 17.3% with 22.87% and TQQQ 15.25% with 49.92%. SOXL at 26.2% leads them, and so does its drawdown, which is the deepest of the top five. The long bond funds are at the other end, with UST at -2.49% and TMF at -13.9%.

On this fund, the other templates with a trend component did not do better. Right behind it, the 200-day regime filter earned 23.44% against a 76.74% drawdown. The SMA 10/50 earned 18.19% against 72.23%, and the trend with trailing stop 17.82% against 81.96%. The EMA rule had the shallowest drawdown of the four trend rules, at 65.38%, and the golden cross, the slowest of them, had the highest return at 45.93% and a 69.3% drawdown. For this fund, the slow cross did better than the fast one over this window. Slowness helped because the fund's long trends were worth more than the whipsaws cost.

Everything here is one backtest on one window. Three of the five best trades were in 2023, 2025 and 2026, and the test cannot say whether the next such period will arrive or how the rule will handle it. The full SOXL ETF page lists all 12 templates side by side.

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.

How did the EMA 12/26 trend strategy do on SOXL?

From 2021-01-04 to 2026-10-02 it turned $10,000 into $38,042.82, a 26.2% CAGR, with a 65.38% max drawdown and a Sharpe of 0.69. Buy-and-hold on SOXL returned 33.32% a year with an 89.62% drawdown over the same window.

Did EMA 12/26 beat buy-and-hold on SOXL?

Not on return. It trailed by 7.12 points of CAGR and ended with $38,042.82 against $52,126.13. It beat holding in 2022 and 2024, and its drawdown was shallower.

Why is the win rate only 36%?

The rule made 22 round trips and 8 won. Many entries came before a swing reversed, and those lost between 2% and 23%. The winners averaged 52.61%, so the profit factor was still 2.73.

What was the worst drawdown?

The rule's worst was 65.38%, from 2024-07-10 to 2025-05-23, and it recovered on 2025-10-27. Holding SOXL had an 89.62% drawdown from 2021-12-27 to 2022-10-14 that did not recover until 2026-02-25.

How much do trading costs change the result?

At 5 basis points per trade the CAGR was 25.74% and at 10 it was 25.26%, against 26.2% with no costs. The strategy made 45 fills in about 5.74 years, so costs have a small effect.

Do other EMA settings work better on SOXL?

EMA 8/21 returned 27.22% with a 73.42% drawdown, EMA 20/50 returned 19.66% and EMA 12/50 returned 25.88%. All trailed holding, and no setting is clearly best. See the [EMA 12/26 strategy page](/learn/strategies/ema-12-26-trend/) for the other funds.

Is this a recommendation to trade SOXL?

No. It is a backtest on one 5.74-year window with no fees in the headline run. SOXL targets 3x the daily move of its index. Its annualized volatility was 113.25% and its worst drawdown 90.49%.

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.