EMA 12/26 Trend on QQQM
Invesco NASDAQ 100 ETF: a lower-cost share class of the Nasdaq-100 trade, built for holding. Backtest 2021-01-04 to 2026-10-02, $10,000 starting capital, computed by the same engine that runs live DeployQuant strategies.
The EMA 12/26 trend rule buys QQQM when the 12-day exponential average rises above the 26-day average, and sells when it drops below. It was tested from 2021-01-04 to 2026-10-02, starting with $10,000 and 98% of the sleeve invested whenever the rule is long. The run ended at $15,408, a total return of 54.08% and a CAGR of 7.82%. Buy-and-hold on the same fund ended at $24,315 with a CAGR of 16.74%, so the rule gave up a large part of the return.
The maximum drawdown was 24.05% for the rule and 34.4% for holding. The rule's Sharpe ratio was 0.6 against 0.83 for buy-and-hold. It made 22 round trips and won 9 of them, a win rate of 41%, and it was invested 66.9% of the time. The one-year view is stark: the rule beat buy-and-hold in 2022 only.
QQQM is the lower-cost share class of the Nasdaq-100 trade. Its price path was close to QQQ's in this window, with a total return of 151.54% and a correlation to QQQ of 1. The rule ranks 10th of the 12 templates on this fund, and QQQM ranks 19th of 59 funds for this rule. The numbers describe one window and fixed parameters, and they carry no fees in the headline run.
Year by year
| Year | EMA 12/26 trend | buy & hold |
|---|---|---|
| 2021 | 3.9% | 28.5% |
| 2022 | −17.7% | −31.8% |
| 2023 | 27.5% | 53.4% |
| 2024 | 14.2% | 25.3% |
| 2025 | 10.9% | 20.5% |
| 2026 | 11.6% | 22.2% |
How each year played out
The year table is the shortest way to see what this rule does. In 2021 it returned 3.9% while the fund returned 28.5% with buy-and-hold. The rule was flat in January, lost 5.61% in February, and then spent most of the spring and summer in whipsaws. Its first trade was a loss of 5.36% from 2021-02-10 to 2021-03-03. The second lost 2.18%. The rule only found a real trend with the entry on 2021-05-28 and the exit on 2021-09-28, a gain of 9.69% over 123 days. That one trade is most of the year.
2022 is the year the rule earned its place in the table. It returned -17.7% against -31.8% for the fund, a gap of 14.1 percentage points in its favor. The rule still lost money in all four of its 2022 round trips. Every one was a small loss, and the sum of those losses was smaller than the fund's decline because the rule spent the sharpest parts of the year in cash. February, May, June and October 2022 show 0% in the monthly table, which means no position was held.
2023 returned 27.5% against 53.4% for holding. The fund's rebound began in late 2022, and the rule bought on 2023-01-18, after the average cross had already confirmed it, at an adjusted price of 114.03. That trade made 1.24%. The bigger gain came from the entry on 2023-03-16 at 119.9, which ran until 2023-08-15.
2024 returned 14.2% against 25.3%, and 2025 returned 10.9% against 20.5%. In those two years the fund rose in a straight line for stretches, and a rule that waits for the shorter average to cross the longer one gives up the first part of every leg. 2026 is a partial year ending 2026-10-02: the rule returned 11.6% and the fund 22.2%. The rule has an open position, entered 2026-09-21 at an adjusted 300, up 2.87% at the end of the window.
In the five other years the fund returned between 9.6 and 25.9 percentage points more than the rule. Against the fund, the rule earned its keep only when the fund fell hard.
Month by month
| Year | Jan | Feb | Mar | Apr | May | Jun | Jul | Aug | Sep | Oct | Nov | Dec |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2021 | 0.0% | −5.6% | 0.4% | 3.0% | −5.2% | 6.2% | 2.8% | 4.1% | −3.5% | 3.0% | 1.9% | −2.6% |
| 2022 | −5.5% | 0.0% | 0.7% | −4.3% | 0.0% | 0.0% | 4.0% | −5.0% | −0.8% | 0.0% | 0.4% | −8.1% |
| 2023 | 3.8% | −0.4% | 5.3% | 0.5% | 7.6% | 6.3% | 3.8% | −3.7% | −5.3% | −1.8% | 4.1% | 5.5% |
| 2024 | 1.8% | 5.2% | 1.3% | −2.5% | 2.5% | 6.1% | −3.5% | −0.9% | −0.7% | −0.8% | 5.2% | 0.5% |
| 2025 | −3.2% | −4.3% | 0.0% | 0.0% | 6.5% | 6.2% | 2.4% | 0.9% | 5.2% | 4.7% | −5.0% | −2.0% |
| 2026 | 1.2% | −3.4% | 0.0% | 9.2% | 10.3% | −0.2% | −5.7% | −0.8% | 0.3% | 1.3% | – | – |
What the monthly returns show
The monthly table makes the whipsaw problem visible. The best month was May 2026 at 10.25%, and it followed April 2026 at 9.15%. Those two months together came from the entry on 2026-04-13 at 250.51, which exited on 2026-07-17 at 284.85 for a gain of 13.71%. The worst month was December 2022 at -8.13%, from the trade that began on 2022-11-15 at 117.24 and ended on 2022-12-20 at 107.84.
That last trade deserves a comment. It is the worst trade in the sample at -8.02% and it was a buy near the bottom of the fund's decline. The fund's low was on 2022-11-03, and the rule bought twelve days later. A rule based on moving averages enters after a rise that has already happened. In this case the rally stalled and the signal reversed before the fund resumed its climb.
Months with a flat result are as informative as the others. 2022 has four of them, and 2025 has two, March and April, which match the stretch when the rule was out between its 2025-02-28 exit and its 2025-05-02 re-entry. QQQM's worst day in the window, -6.08% on 2025-04-04, and its best day, 11.73% on 2025-04-09, both fell inside that gap. The rule missed the rebound and the sell-off together. Missing the biggest up day is the price of the protection from the biggest down days, and the rule paid that price in full.
A trend rule tends to lose several months in a row when the market trades sideways, and to make the losses back within a single good leg. The rule's average win was 11.29% and its average loss was -3.91%, which is how a 41% win rate still produced a profit factor of 1.92.
Every trade
EMA 12/26 trend on QQQM made 22 closed round trips and one position still open at the end of the test, an average hold of 63 days, an average winner of 11.29%, an average loser of −3.91%, a profit factor of 1.92, a longest losing streak of 4. It held a position at the close on 66.9% of trading days.
| Entry | Entry price | Exit | Exit price | Return | Days held |
|---|---|---|---|---|---|
| 2021-02-10 | $132.93 | 2021-03-03 | $125.81 | −5.4% | 21 |
| 2021-04-05 | $130.12 | 2021-05-12 | $127.28 | −2.2% | 37 |
| 2021-05-28 | $132.88 | 2021-09-28 | $145.76 | 9.7% | 123 |
| 2021-10-21 | $149.14 | 2021-12-21 | $153.25 | 2.8% | 61 |
| 2021-12-27 | $159.15 | 2022-01-10 | $149.72 | −5.9% | 14 |
| 2022-03-25 | $143.62 | 2022-04-14 | $138.24 | −3.8% | 20 |
| 2022-07-21 | $121.32 | 2022-09-01 | $118.86 | −2.0% | 42 |
| 2022-11-15 | $117.24 | 2022-12-20 | $107.84 | −8.0% | 35 |
| 2023-01-18 | $114.03 | 2023-03-13 | $115.44 | 1.2% | 54 |
| 2023-03-16 | $119.90 | 2023-08-15 | $148.93 | 24.2% | 152 |
| 2023-09-01 | $153.48 | 2023-09-22 | $145.15 | −5.4% | 21 |
| 2023-10-17 | $147.71 | 2023-10-20 | $144.95 | −1.9% | 3 |
| 2023-11-08 | $150.74 | 2024-04-17 | $175.51 | 16.4% | 161 |
| 2024-05-09 | $178.86 | 2024-07-26 | $187.78 | 5.0% | 78 |
| 2024-08-21 | $195.59 | 2024-09-06 | $187.47 | −4.2% | 16 |
| 2024-09-17 | $193.80 | 2025-01-13 | $204.53 | 5.5% | 118 |
| 2025-01-22 | $216.03 | 2025-02-28 | $203.62 | −5.7% | 37 |
| 2025-05-02 | $198.80 | 2025-11-19 | $244.55 | 23.0% | 201 |
| 2025-12-03 | $253.66 | 2025-12-19 | $251.05 | −1.0% | 16 |
| 2025-12-22 | $254.74 | 2026-02-06 | $246.11 | −3.4% | 46 |
| 2026-04-13 | $250.51 | 2026-07-17 | $284.85 | 13.7% | 95 |
| 2026-08-10 | $297.23 | 2026-09-16 | $291.44 | −1.9% | 37 |
| 2026-09-21 | $300.00 | open | – | 2.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 decided the result
There were 23 trades in the list, 22 closed and one open at the end. The median trade lost 1.87% and the median hold was 42 days. The average hold was 63.1 days, with the longest at 201 days and the shortest at 3 days. The gap between the median and the average shows the shape: many short losing trades, and a few long winning ones.
The five best trades are all in the table, and every one of them lasted at least 95 days. The top one was 24.21% from 2023-03-16 to 2023-08-15, held 152 days. Second was 23.01% from 2025-05-02 to 2025-11-19, held 201 days, the longest in the sample. Third was 16.43% from 2023-11-08 to 2024-04-17. Fourth was 13.71% from 2026-04-13 to 2026-07-17, and fifth was 9.69% from 2021-05-28 to 2021-09-28. The long winners carry the result, and the many short exits around them are what hold the win rate at 41%.
The five worst trades were -8.02% on 2022-11-15, -5.93% on 2021-12-27 to 2022-01-10, -5.74% from 2025-01-22 to 2025-02-28, -5.43% from 2023-09-01 to 2023-09-22 and -5.36% on the very first trade. Notice the trade of 2021-12-27, which was a purchase in the last week of the fund's peak year and lasted 14 days. The fund's maximum drawdown began on that day for QQQM, and the rule entered at 159.15 and left at 149.72, which limited the damage at -5.93%.
Per exit year, the rule won 2 of 4 in 2021, none of 4 in 2022, 2 of 4 in 2023, 2 of 3 in 2024, 2 of 4 in 2025 and 1 of 3 in 2026. The 2022 column is the one with no wins, and it is also the year the rule beat the fund, which shows that beating the fund and winning trades are different things. The benefit came from small losses and long stretches in cash.
Short trades around the 2023 and 2024 pullbacks
Two clusters of small losses show how the signal behaves when a rising fund pauses. In late summer 2023 the rule bought on 2023-09-01 at an adjusted 153.48 and sold on 2023-09-22 at 145.15, a loss of 5.43%. It bought again on 2023-10-17 at 147.71 and sold three days later at 144.95 for a loss of 1.87%. That three-day trade is the shortest in the sample. September 2023 finished at -5.3% for the rule and October at -1.83%. The next entry, on 2023-11-08 at 150.74, became the third best trade at 16.43%, so the cluster of losses came right before one of the longest winners.
August and September 2024 repeat the pattern on a smaller scale. The rule bought on 2024-08-21 at 195.59 and sold on 2024-09-06 at 187.47, a loss of 4.15%. It re-entered on 2024-09-17 at 193.8 at a price lower than its own exit, which is the only kind of good news a whipsaw can deliver. That trade held 118 days and gained 5.54%. The December 2025 pair is similar: a loss of 1.03% from 2025-12-03 to 2025-12-19, then a loss of 3.39% from 2025-12-22 to 2026-02-06. Each of these exits was triggered by a fall in the faster average below the slower one after a rally that had already taken place.
Largest drawdowns
| Peak | Low point | Depth | Days to low | Recovered | Days to recover |
|---|---|---|---|---|---|
| 2021-11-19 | 2023-01-19 | −24.1% | 426 | 2023-07-13 | 175 |
| 2024-07-10 | 2025-05-06 | −13.1% | 300 | 2025-07-03 | 58 |
| 2023-07-18 | 2023-11-09 | −11.6% | 114 | 2024-01-19 | 71 |
Buy-and-hold's deepest drawdown ran from 2021-12-27 to 2022-11-03 and reached −34.4%.
The drawdowns
The largest drawdown of the rule ran from 2021-11-19 to a trough on 2023-01-19, a depth of 24.05%. It took 426 days to reach the trough and 175 more to recover on 2023-07-13. The trough came after the fund's own low of 2022-11-03, which shows what a lagging signal does: the rule re-entered in November 2022, lost 8.02% by 2022-12-20, and then re-entered again on 2023-01-18. The equity curve kept falling after the fund began to recover.
The second drawdown was 13.05%, from 2024-07-10 to 2025-05-06, with 300 days to the trough and 58 to recover on 2025-07-03. The third was 11.63% from 2023-07-18 to 2023-11-09, 114 days to the trough, and recovered 2024-01-19 after 71 days.
Buy-and-hold on the same fund had three drawdowns of its own: 34.4% from 2021-12-27 to 2022-11-03, which took until 2023-12-12 to recover, 22.43% from 2025-02-19 to 2025-04-08, and 13.33% from 2024-07-10 to 2024-08-07. The rule's worst drawdown is about 10.35 points shallower than the fund's, and in the 2025 episode, the rule's 13.05% was a smaller hit than holding's 22.43%. The second and third drawdowns of the rule are of similar depth to the fund's third, which shows the rule did not smooth the ordinary pullbacks of 10% to 13%. It reduced the largest ones.
With trading costs
The headline run fills at the bar price. These runs charge slippage on every fill.
| Slippage per fill | CAGR | Max drawdown | Final value | Sharpe |
|---|---|---|---|---|
| None (headline) | 7.8% | −24.1% | $15,408 | 0.60 |
| 5 basis points | 7.6% | −24.4% | $15,210 | 0.58 |
| 10 basis points | 7.1% | −24.8% | $14,854 | 0.56 |
What trading costs do
The headline run has no fees or slippage. With 5 basis points the CAGR was 7.58% and the end equity $15,210. With 10 basis points the CAGR was 7.14% and the end equity $14,854. The maximum drawdown rose from 24.05% to 24.37% and then 24.76%, and the Sharpe ratio went from 0.6 to 0.584 and 0.555.
The rule makes 45 fills in 5.74 years, so costs have a small effect. The gap between the headline result and the 10 basis point run is smaller than the gap between this rule and buy-and-hold by a wide margin. Costs do not explain the shortfall against the fund. The shortfall is the time spent out of the market in a fund that rose.
QQQM trades about $366,984,628 a day and has a median minute volume of 2,083 shares, which is thin for the Nasdaq-100. The backtest fills on minute bars with no market impact, and a position of $10,000 is small against that volume. Fills at a much larger size are outside what this test measures.
Changing the parameters
| Version | CAGR | Max drawdown | Round trips | Win rate | Final value |
|---|---|---|---|---|---|
| Published rules | 7.8% | −24.1% | 22 | 41% | $15,408 |
| EMA 8/21 | 8.6% | −25.1% | 32 | 34% | $16,014 |
| EMA 20/50 | 7.1% | −24.4% | 13 | 54% | $14,819 |
| EMA 12/50 | 11.4% | −17.4% | 14 | 57% | $18,578 |
Changing the parameters
Three variants were tested alongside the default 12/26 pair. EMA 8/21 produced a CAGR of 8.55%, a maximum drawdown of 25.06% and a Sharpe of 0.659, with 32 trades and 11 wins. EMA 20/50 produced 7.09%, 24.36% and 0.548, with 13 trades and 7 wins. EMA 12/50, which keeps the fast average and slows only the slow one, produced 11.39%, 17.35% and 0.824, with 14 trades and 8 wins.
The default sits in the middle. The faster pair did slightly better on return and made more trades. The slower pair did slightly worse and made fewer. The 12/50 variant is the outlier: its CAGR is higher than the default's 7.82% and its drawdown is much shallower, 17.35% against 24.05%. A result that stands out among four tests on one fund over one window may owe a good deal to chance. That variant has not been tested out of sample, and the EMA 12/50 figure should be read as one draw among several.
What the table does show is that the family of rules is stable at between 7.09% and 8.55% for three of the four settings, and none of them closes the gap to the 16.74% that buy-and-hold returned. The parameters change how many trades the rule makes, and they do not change the conclusion that a trend switch lagged a rising fund.
How QQQM behaved
| Measure | QQQM |
|---|---|
| Data in this test | 2021-01-04 to 2026-10-02 (1444 sessions) |
| Total return, buy and hold | 151.5% |
| Annualized volatility | 22.3% |
| Deepest drawdown | −35.1% (2021-12-27 to 2022-11-03) |
| Up days | 54.9% |
| Average daily range | 1.55% |
| Average overnight gap | 0.60% |
| Correlation to SPY | 0.94 |
| Correlation to QQQ | 1.00 |
| Correlation to TLT | 0.09 |
| Sessions above the 200-day average | 75.2% |
| Crossings of the 200-day average | 20 |
| Falls of 10% or more from a 20-day high | 21 |
How QQQM behaved
QQQM returned 17.43% a year with an annualized volatility of 22.34%. It was above its 200-day average on 75.18% of sessions and crossed it 20 times, which is the profile of a fund that trends, with long stretches on one side. A trend rule should suit that profile, and the result shows why it did not help here. The long stretches were mostly upward, so being long was correct for most of the window, and the rule's 66.9% exposure meant it was out for the rest.
The fund's maximum drawdown was 35.06%, from 2021-12-27 to 2022-11-03, and it took until 2023-12-12 to recover. Its longest drawdown lasted 492 sessions. In 2022 it returned -32.47%, followed by 54.92% in 2023, 25.73% in 2024, 20.81% in 2025 and 22.47% in 2026 so far. After a year like 2023, any rule that is not fully invested from the start of the rebound falls behind.
Daily returns had a lag-1 autocorrelation of -0.03, which means yesterday's move told almost nothing about today's. Trend rules do not need that to be positive, but it explains why a signal built on two averages produces many small losing trades: short-term direction does not carry over day to day. The share of return that came overnight was 78.83%, against 21.17% intraday.
Of the 59 funds, QQQM ranked 19th for this rule. Among the broad index funds, IOO returned 10.9%, SPY 10.2%, and QQQ 7.85%, almost the same as QQQM's 7.82%. IWM returned 0.18%. The rule's median across all 59 funds was 2.76%, and its median among broad index funds was 7.85%, so QQQM sits at the category median.
Calendar months and RSI readings on QQQM
The fund's month-of-year averages explain some of the rule's timing. May averaged 5.2% across six Mays, November averaged 4.43% and October 2.76%, while September averaged -1.67% and February -0.7%. The rule's own September months were weak in 2021 at -3.46% and in 2023 at -5.3%, and its February months were weak in 2021, 2025 and 2026. Six observations per calendar month is a thin sample, so these averages describe this window and nothing more.
The weekday averages were small and close together: Monday 0.18%, Wednesday 0.1%, Tuesday 0.03%, Thursday 0.03% and Friday 0.04%. A rule that acts at the open on any day has no calendar edge to lean on here. The fund was up on 54.89% of days, with an average up day of 1.01% and an average down day of -1.06%, so the daily distribution is close to symmetric and the return came from the drift on top of it.
RSI readings show the fund rarely became oversold. RSI(14) fell below 30 on 16 sessions, and the median 5-day forward return after those sessions was 3.21% against a baseline of 0.56%. RSI(2) fell below 10 on 148 sessions, with a median 5-day forward return of 0.77%. A trend rule ignores both readings, which is part of why the RSI(2) snapback and the EMA cross rank so far apart on this fund. The fund also moved with a beta of 1.28 to SPY and a correlation of 0.94, so the large-cap peers VOO and SPY were a smoother ride for the same rule, with drawdowns of 11.76% and 11.84% against QQQM's 24.05%.
The rules
Hold while the 12-day exponential average is above the 26-day, the core of the MACD used as a position switch.
- WHEN the market opens · IF not invested AND EMA(12) > EMA(26) · THEN buy with 98% of the sleeve
- 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 fit this fund
The rule has two conditions. When it is not invested and EMA(12) is above EMA(26), it buys with 98% of the sleeve at the open. When it is invested and EMA(12) falls below EMA(26), it sells the whole position at the open. Exponential averages weight recent days more heavily than simple ones, so this pair reacts faster than a 50/200 cross, and the template's own caveat says faster reaction means more trades and more whipsaws.
On this fund the caveat shows up in numbers: 22 round trips and a 41% win rate while the golden cross returned 13.82% on the same fund. In the same-fund ranking the EMA rule is 10th of 12. The weekly 7% target is first at 16.64% and the RSI(2) snapback second at 15.56% with the shallowest drawdown at 14.25%. The 200-day regime filter returned 13.02% with a 19.82% drawdown, which makes it a slower trend rule with a better result on the same fund. Only the dip buyer at 5.35% and RSI mean reversion at 6.46% did worse.
The test stops at one window, one fund and one set of parameters.
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 QQQM?
Over 2021-01-04 to 2026-10-02, EMA 12/26 trend on QQQM returned 7.8% annualized vs 16.7% for buy-and-hold: it trailed buy-and-hold by 8.9% per year, with a maximum drawdown 10.3 points shallower than holding (24.1% vs 34.4%).
How many trades did it make?
22 completed round trips over 5.7 years (45 fills), with 41% 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 EMA 12/26 trend perform on QQQM?
From 2021-01-04 to 2026-10-02 it turned $10,000 into $15,408, a CAGR of 7.82% with a 24.05% maximum drawdown. Buy-and-hold on QQQM returned 16.74% a year with a 34.4% drawdown. The rule made 22 round trips and won 9.
Did the EMA 12/26 rule beat buy-and-hold on QQQM?
No on return, and yes on depth. It beat buy-and-hold in 2022 only, when it returned -17.7% against -31.8%. In the other five years the fund returned more, and the final balance was $15,408 against $24,315.
Why does the rule lose so many trades on QQQM?
Moving-average crossovers enter after a move has begun, and short-term returns on QQQM carry almost no memory, with a lag-1 autocorrelation of -0.03. The median trade lost 1.87%. The rule's average win of 11.29% against an average loss of 3.91% gave it a profit factor of 1.92.
What happens to the EMA 12/26 rule with trading costs?
At 5 basis points the CAGR was 7.58% and at 10 basis points it was 7.14%, against 7.82% with no costs. The rule makes 45 fills in the window, so costs affect it modestly.
Would a different EMA pair work better on QQQM?
EMA 8/21 returned 8.55% with 32 trades, EMA 20/50 returned 7.09%, and EMA 12/50 returned 11.39% with a 17.35% drawdown. One variant stood out among four tests on one window, so the 12/50 result may reflect chance as much as design.
How does EMA 12/26 compare with other strategies on QQQM?
It ranks 10th of 12 templates on this fund. The weekly 7% target returned 16.64%, RSI(2) snapback 15.56%, the monthly cycle 14.95% and the golden cross 13.82%. Only RSI mean reversion at 6.46% and the dip buyer at 5.35% returned less.
Related
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.