Learn › Strategies › EMA 12/26 Trend › QLD

EMA 12/26 Trend on QLD

ProShares Ultra QQQ: 2x daily leveraged Nasdaq-100, between QQQ and TQQQ in leverage. 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 QLD turned $10,000 into $18,066 (80.7% total, 10.8% CAGR): it trailed buy-and-hold by 12.7% per year, with a maximum drawdown 24.7 points shallower than holding (38.1% vs 62.8%).

The EMA 12/26 trend rule turned $10,000 into $18,066 on QLD between 2021-01-04 and 2026-10-02, a CAGR of 10.85% and a total return of 80.66%. QLD is the 2x daily leveraged Nasdaq-100 fund. A holder of QLD over those dates earned 23.55% a year and finished with $33,676. The crossover surrendered much of that return and trimmed the worst drawdown from 62.82% to 38.11%.

It beat holding in one calendar year out of six, 2022, when the fund lost 59.7% and the rule lost 27.6%. In 2021, 2023, 2024, 2025 and 2026 it finished behind. The widest shortfall came in 2023, when QLD gained 113.2% and the rule returned 50.8%.

There were 24 completed round trips and 49 fills, plus a 25th position still open on the last day. Nine of those 24 closed green, so 38% won. The average winner made 19.63% and the average loser lost 6.1%, which gives a profit factor of 1.77. The strategy was invested on 63.4% of trading days, and the Sharpe ratio was 0.51 against 0.72 for holding.

Among the 12 templates run on QLD, the EMA 12/26 trend ranks tenth by CAGR. QLD ranks 11th of the 59 funds for this rule. Across all 59 funds the median CAGR for this rule was 2.76%, and for the leveraged funds alone it was 17.3%, so QLD lands under the leveraged median. Scope of the test: 5.74 years, daily decisions, no fees charged in the headline run.

10.8%CAGR
23.6%buy & hold CAGR
−38.1%max drawdown
0.51Sharpe ratio
24round trips
38%win rate
■ EMA 12/26 trend   ■ buy & hold, $10,000 invested 2021-01-04

Year by year

YearEMA 12/26 trendbuy & hold
2021−0.1%57.8%
2022−27.6%−59.7%
202350.8%113.2%
202413.3%42.1%
202524.9%29.9%
202617.1%39.2%

Six years against buy-and-hold

2021 ended at -0.1% for the rule while QLD returned 57.8%. Four round trips closed in 2021 and two were winners. The first entry was on 2021-02-10 and lost 9.48% by 2021-03-01, which is why February reads -12.14% in the monthly grid. The second, from 2021-04-06 to 2021-05-12, lost 6.11%. The third, from 2021-06-01 to 2021-09-28, gained 18.67% over 119 days, and the fourth made 2.26%. Gains of 11.45% in June and 8.26% in August were offset by the early losses and by -9.77% in May and -7.05% in September. A year in which the fund rose by more than half left the rule flat.

The 2022 bear market is where the rule earned its place. QLD lost 59.7% and the rule lost 27.6%. All four round trips that closed in 2022 lost money. The first, from 2021-12-28 to 2022-01-07, lost 9.93%. The second, from 2022-03-25 to 2022-04-13, lost 11.18% and is the worst single trade in the test. The third lost 3.36% and the fourth, from 2022-11-16 to 2022-12-19, lost 10.06%. Losses of that size per trade are small next to the fund's decline, and the account sat in cash through February, May, June, September and October. That 32.1-point lead is the only positive row in the yearly gap table.

2023 returned 50.8% for the rule and 113.2% for the fund. The rule entered on 2023-01-23 and exited on 2023-03-13 with a 1.13% gain, re-entered on 2023-03-17 at $22.52 and held until 2023-08-14 at $30.89 for a gain of 37.17%. That 150-day hold carried the year. A short trade from 2023-09-05 to 2023-09-21 lost 8.2%. The final trade of the year started on 2023-11-09 at $31.66 and ran into 2024. The rule's first entry of the year came on 2023-01-23, after the fund's low on 2022-12-28.

2024 returned 13.3% against 42.1%. The 2023-11-09 trade closed on 2024-04-16 at $40.79 for 28.84%. Then came three short stretches: a gain of 7.31% from 2024-05-10 to 2024-07-26, a loss of 10.96% from 2024-08-22 to 2024-09-05, and a gain of 5.49% from 2024-09-20 to 2025-01-13. The August trade is the second-worst in the list. The fund's own 25.87% drawdown ran from 2024-07-10 to 2024-08-07, and the rule bought on 2024-08-22 and sold on a bearish cross 14 days later.

2025 returned 24.9% against 29.9%, the closest year of the six. The rule lost 4.64% from 2025-01-23 to 2025-02-27 and then sat in cash through March and April. That kept it out of the drop around 2025-04-03 and 2025-04-04, when the fund fell 10.71% and 12.19%. The same cash position missed 2025-04-09, QLD's single best session at 23.52%. The re-entry on 2025-05-05 at $45.91 started the best trade of the test, which ran 198 days to $66.83 for 45.57%. A trade in December lost 3.15%, and the next one, from 2025-12-24 to 2026-01-22, lost 0.9%.

2026 shows 17.1% against 39.2%. It made six round trips and one win. The win ran from 2026-04-14 to 2026-07-09 for 30.28%. The others lost between 0.73% and 7.71%. The rule bought again on 2026-09-22 at $96.44, and that position was up 1.75% at the close of the window.

Month by month

YearJanFebMarAprMayJunJulAugSepOctNovDec
20210.0%−12.1%3.3%4.2%−9.8%11.4%5.4%8.3%−7.0%6.2%3.6%−9.9%
2022−6.8%0.0%1.3%−12.1%0.0%0.0%5.5%−8.3%0.0%0.0%3.7%−13.1%
20237.7%−1.7%4.2%0.3%15.0%12.2%7.0%−9.7%−8.0%0.0%7.6%10.5%
20242.8%9.8%1.8%−6.2%3.8%11.8%−7.7%−3.9%−4.9%−2.4%9.9%0.1%
2025−6.5%−2.0%0.0%0.0%13.4%12.3%4.2%1.2%10.3%8.8%−10.3%−5.6%
20261.5%−7.2%0.0%14.8%21.1%−1.6%−5.9%−1.7%−4.1%2.5%––

The monthly pattern

The monthly grid shows the rule in cash in a number of months, most visibly in March and April 2025, March 2026, and May and June 2022. Its best month was May 2026 at 21.09%. Its worst was December 2022 at -13.07%. Holding peaked in April 2026 with 32.53% and bottomed in April 2022 with -25.58%. The rule was invested in the strongest month of May 2026 but sat out most of April, entering on 2026-04-14.

April 2022 shows the rule's value in a single month: -12.08% for the strategy against -25.58% for the fund. December 2022 is the opposite case. The rule bought on 2022-11-16 after the fund bounced, made 3.69% in November, then lost 13.07% in December before it sold on 2022-12-19. The fund's low came on 2022-12-28, so the rule sold before the fund's low, after a month that was worse than any other in its own record.

The strategy's strong stretch ran from January 2023 to the middle of 2023, with 7.71% in January, 4.19% in March, 14.99% in May, 12.17% in June and 7.03% in July. After that it gave back 9.7% in August and 8.01% in September. A repeat appears in 2024: June at 11.84% followed by -7.69% in July, -3.91% in August, -4.93% in September and -2.41% in October. Both stretches show a strong month followed by several negative ones.

Averaged by calendar month, QLD did best in May at 9.97% and November at 8.28%, and worst in September at -3.65% and February at -2.2%. With only five or six readings per month, these averages describe a few years and cannot be called a calendar effect.

Every trade

EMA 12/26 trend on QLD made 24 closed round trips and one position still open at the end of the test, an average hold of 55 days, an average winner of 19.63%, an average loser of −6.10%, a profit factor of 1.77, a longest losing streak of 4. It held a position at the close on 63.4% of trading days.

EntryEntry priceExitExit priceReturnDays held
2021-02-10$32.382021-03-01$29.31−9.5%19
2021-04-06$31.112021-05-12$29.21−6.1%36
2021-06-01$31.822021-09-28$37.7618.7%119
2021-10-21$39.382021-12-20$40.272.3%60
2021-12-28$45.532022-01-07$41.01−9.9%10
2022-03-25$35.142022-04-13$31.21−11.2%19
2022-07-22$24.392022-08-31$23.57−3.4%40
2022-11-16$20.472022-12-19$18.41−10.1%33
2023-01-23$19.552023-03-13$19.771.1%49
2023-03-17$22.522023-08-14$30.8937.2%150
2023-09-05$32.702023-09-21$30.02−8.2%16
2023-11-09$31.662024-04-16$40.7928.8%159
2024-05-10$42.692024-07-26$45.817.3%77
2024-08-22$50.072024-09-05$44.58−11.0%14
2024-09-20$49.022025-01-13$51.715.5%115
2025-01-23$57.342025-02-27$54.68−4.6%35
2025-05-05$45.912025-11-19$66.8345.6%198
2025-12-03$71.692025-12-18$69.43−3.1%15
2025-12-24$72.242026-01-22$71.59−0.9%29
2026-01-26$71.882026-02-05$66.34−7.7%10
2026-04-14$70.312026-07-09$91.6030.3%86
2026-07-10$92.642026-07-14$91.96−0.7%4
2026-08-11$91.802026-09-03$88.82−3.3%23
2026-09-08$91.212026-09-11$89.49−1.9%3
2026-09-22$96.44open–1.8%–

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.

What the 24 round trips look like

The distribution of trade returns explains the profit factor. The nine winners averaged 19.63% and the losing trades averaged -6.1%. The median trade lost 1.89%, with a median hold of 35 days, a longest hold of 198 days and a shortest of 3 days. Most trades were short and small, and a handful of long holds made the money.

The five best trades were 45.57% (2025-05-05 to 2025-11-19, $45.91 to $66.83, 198 days), 37.17% (2023-03-17 to 2023-08-14, $22.52 to $30.89, 150 days), 30.28% (2026-04-14 to 2026-07-09, $70.31 to $91.60, 86 days), 28.84% (2023-11-09 to 2024-04-16, $31.66 to $40.79, 159 days) and 18.67% (2021-06-01 to 2021-09-28, $31.82 to $37.76, 119 days). Every one of the five lasted at least 86 days. The prices quoted are split and dividend adjusted.

The five worst were -11.18% (2022-03-25 to 2022-04-13, 19 days), -10.96% (2024-08-22 to 2024-09-05, 14 days), -10.06% (2022-11-16 to 2022-12-19, 33 days), -9.93% (2021-12-28 to 2022-01-07, 10 days) and -9.48% (2021-02-10 to 2021-03-01, 19 days). Every one of the five lasted 33 days or fewer. No losing trade went past 11.18%. The rule has no stop, so these losses are the size of the move between a fast cross up and the cross back down for a fund whose typical day spans 3.14% from low to high.

The trade counts by exit year are four in 2021, four in 2022, three in 2023, three in 2024, four in 2025 and six in 2026. Wins by year were 2, 0, 2, 2, 2 and 1. 2026 is the busiest year and the weakest on win rate, with several short round trips that lost small amounts: 0.73% from 2026-07-10 to 2026-07-14, 3.25% from 2026-08-11 to 2026-09-03 and 1.89% from 2026-09-08 to 2026-09-11. Short round trips like these are what a fast crossover produces when price moves sideways.

The 49 fills matter for cost because a pair of EMAs this short flips often. Each whipsaw costs the spread plus any slippage, and the next section shows what that does.

Largest drawdowns

PeakLow pointDepthDays to lowRecoveredDays to recover
2021-11-192022-12-19−38.1%3952024-01-24401
2024-07-102025-02-25−25.9%2302025-07-21146
2025-10-292026-02-05−22.1%992026-05-0892

Buy-and-hold's deepest drawdown ran from 2021-11-19 to 2022-12-28 and reached −62.8%.

Drawdowns for the rule and for the fund

The deepest drawdown for the rule was 38.11%. Its peak was 2021-11-19, and it bottomed on 2022-12-19 after 395 days and recovered on 2024-01-24, 401 days later. The fund's own drawdown started on the same peak date, reached 62.82% on 2022-12-28 and recovered on 2024-05-28, 517 days after the low. Measured against the fund, the rule's trough was 24.71 points shallower and recovery came sooner.

The second drawdown for the rule was 25.91%, from 2024-07-10 to 2025-02-25, 230 days down and 146 days to recover on 2025-07-21. The fund's second-deepest was 41.85% from 2024-12-16 to 2025-04-08. The two drawdowns have different peak dates. The rule's began on 2024-07-10 and ran through the losing trades of 2024-08-22 and 2025-01-23.

The third was 22.05%, from 2025-10-29 to 2026-02-05 over 99 days, recovering on 2026-05-08 after 92 days. That one runs through the December and January trades that lost 3.15%, 0.9% and 7.71%.

The rule's three drawdowns were 38.11%, 25.91% and 22.05%. The fund's annualized volatility was 44.77%. The Sharpe ratio was 0.51 for the rule and 0.72 for holding, so the rule gave up more return than it saved in 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)10.8%−38.1%$18,0660.51
5 basis points10.4%−38.5%$17,6320.50
10 basis points9.9%−38.8%$17,2070.48

Slippage runs

No cost is charged in the headline run. Adding 5 basis points of slippage per fill gives a CAGR of 10.38%, the maximum drawdown 38.45% and the final value $17,632. With 10 basis points the CAGR was 9.91%, the drawdown 38.83% and the final value $17,207. The headline CAGR was 10.85%.

The 49 fills are why the cost is visible. The cost of the run at 10 basis points is a lower CAGR, a slightly deeper drawdown and a lower Sharpe, which went from 0.51 to 0.497 at 5 basis points and 0.481 at 10. Average daily dollar volume for QLD is $285,882,203 and the median minute carries 8,796 shares, which is far more than a $10,000 account would trade. The cost runs use a flat slippage, which is a simplification.

Changing the parameters

VersionCAGRMax drawdownRound tripsWin rateFinal value
Published rules10.8%−38.1%2438%$18,066
EMA 8/2118.8%−38.0%3244%$26,899
EMA 20/509.8%−31.6%1250%$17,144
EMA 12/5010.3%−41.5%1747%$17,520

Neighbouring EMA pairs

Three alternatives were run. The EMA 8/21 pair was the strongest at 18.81% a year, with a 38.01% drawdown, a Sharpe of 0.778, 32 trades and 14 wins, ending at $26,899. In this window the faster pair traded more and made more.

The EMA 20/50 pair made 9.84% with a 31.58% drawdown, 12 trades and 6 wins, ending at $17,144. Its drawdown was the shallowest of the four pairs and its trade count the lowest. The EMA 12/50 pair, which keeps the fast line and slows the second, made 10.26% with a 41.54% drawdown, 17 trades and 8 wins, ending at $17,520, the deepest drawdown of the four.

The published 12/26 pair sits in the middle of the group at 10.85% and 38.11%. The spread in CAGR between 8/21 and the others is large, while 20/50, 12/50 and 12/26 land close to each other. Nothing here shows whether 8/21 keeps its lead on another fund or another period. The pair was not selected in advance, and picking the best of four runs after the fact would overstate how good it is.

How QLD behaved

MeasureQLD
Data in this test2021-01-04 to 2026-10-02 (1444 sessions)
Total return, buy and hold254.3%
Annualized volatility44.8%
Deepest drawdown−63.7% (2021-11-19 to 2022-12-28)
Up days54.3%
Average daily range3.14%
Average overnight gap1.19%
Correlation to SPY0.94
Correlation to QQQ1.00
Correlation to TLT0.09
Sessions above the 200-day average72.3%
Crossings of the 200-day average24
Falls of 10% or more from a 20-day high50

How QLD behaved

Buy-and-hold in QLD gained 254.26% across the window, a CAGR of 24.65%, at annualized volatility of 44.77%. The worst peak-to-trough fall was 63.68%, from 2021-11-19 to 2022-12-28, and the longest underwater spell lasted 630 sessions. Up days made 54.26% of sessions, averaging 2.02%, while down days averaged -2.15%. Intraday range averaged 3.14% and the overnight gap 1.19%. Overnight moves supplied 64.09% of the return and the trading session 35.91%.

QLD tracks QQQ at twice the daily move. Its realized beta to QQQ is 2 with an R-squared of 1, and its beta to SPY is 2.57, with correlations of 1 to QQQ, 0.94 to SPY and 0.09 to TLT. The leverage table shows what the daily reset did. QQQ returned 151.07% over the window. Twice that is 302.14%, a daily-rebalanced ideal comes to 373.18%, and the fund returned 254.26%. Against twice the underlying the fund fell short by 47.88 points. In 2022 QLD fell 60.54% while QQQ fell 32.39%.

QLD closed above its 200-day average on 72.29% of sessions and crossed that line 24 times. That is a trending fund with a few large reversals, and an EMA cross picks up the trend portions at a lag. It also logged 50 drops of 10% or more from a 20-day high, covering 309 days.

RSI numbers point the other way. RSI(14) closed under 30 on 18 sessions, and the median 5-day return afterward was 6.11% where the all-days baseline was 0.94%. The median forward 20-day return was 3.83% against 2.81%. RSI(2) under 10 appeared on 151 sessions, followed by a median 5-day return of 1.18% and a 20-day median of 3.48%. Oversold readings here were followed by rebounds, and a rule that sells weakness misses part of them. The best day, 23.52% on 2025-04-09, arrived right after a large fall.

Peers in the leveraged category show a wide spread for the same rule. SOXL made 26.2% with a 65.38% drawdown, TECL 19.83%, SPUU 19.12% with a 22.88% drawdown, ROM 17.91%, SSO 17.3%, and TQQQ 15.25% with a 49.92% drawdown, FAS 8.7%, UST -2.49% and TMF -13.9%. QLD's 10.85% is below the middle of this group. On the 3x TQQQ the same rule produced 15.25%, and on SSO 17.3%.

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 crossover meets a 2x fund

The rules are two conditions at the open. Flat with the 12-day EMA over the 26-day, the rule buys using 98% of the sleeve. Holding with the 12-day under the 26-day, it sells the whole position. Nothing else applies: no stop, no target, no trend filter.

The 12/26 pair is the core of the MACD indicator. An exponential average gives recent days extra weight, so this cross turns sooner than a simple-average pair of equal lengths. When the market rises in sustained legs, as in 2023 and the spring of 2025, the rule holds through. When the market chops, as in 2021 and 2026, it takes many small losses.

On the other templates for QLD, the RSI(2) snapback returned 26.17% with a 29.52% drawdown, the weekly 7% target 25.62%, the momentum breakout 22.49% with a 20.1% drawdown. The 200-day regime filter reached 21.57% at a 28.75% drawdown. A slower trend filter beat the EMA cross on both return and depth on this fund. The golden cross managed 11.99% and the SMA 10/50 18.76%. Only the 3-month momentum rule at 10.82% and RSI mean reversion at 8.78% did worse than the EMA 12/26.

Limits: a single 5.74-year window holding one large bear market, a headline run without fees, one decision per day, and a fund that resets its leverage daily.

Run EMA 12/26 trend on QLD 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 QLD?

Over 2021-01-04 to 2026-10-02, EMA 12/26 trend on QLD returned 10.8% annualized vs 23.6% for buy-and-hold: it trailed buy-and-hold by 12.7% per year, with a maximum drawdown 24.7 points shallower than holding (38.1% vs 62.8%).

How many trades did it make?

24 completed round trips over 5.7 years (49 fills), with 38% 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 EMA 12/26 beat holding QLD?

No. It returned 10.85% a year to end at $18,066, and holding returned 23.55% a year to end at $33,676. Only 2022 went the rule's way, and its maximum drawdown of 38.11% compares with 62.82% for the fund.

How often did the rule trade QLD?

Between 2021-01-04 and 2026-10-02 it closed 24 round trips, and a further position bought on 2026-09-22 at an adjusted $96.44 was still open. Nine won, which is 38%. The average hold was 55 days.

Which trade did best?

The best was 45.57%, from 2025-05-05 at $45.91 to 2025-11-19 at $66.83, a 198-day hold. The second-best was 37.17% from 2023-03-17 to 2023-08-14. The worst was -11.18%, from 2022-03-25 to 2022-04-13.

Does slippage matter here?

Modestly. The CAGR was 10.38% at 5 basis points per fill and 9.91% at 10, against 10.85% with none. The 49 fills are why it moves.

Did another EMA pair do better?

In this test the 8/21 pair made 18.81% a year with a 38.01% drawdown and ended at $26,899. The 20/50 pair made 9.84% and the 12/50 pair made 10.26%. These are four runs on one fund and one window, so the best one is partly luck.

How does QLD differ from QQQ for this rule?

QLD follows QQQ at 2x daily. Over the window QQQ returned 151.07% and QLD returned 254.26%, below twice the underlying's 302.14%. The extra swing gives a trend rule bigger whipsaw losses and also bigger wins.

Related

EMA 12/26 Trend on all 59 ETFsfull results table All strategies on QLD12 templates compared RSI(14) Mean Reversion on QLDsame ETF, different rulesRSI(2) Dip Snapback on QLDsame 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.