EMA 12/26 Trend on QAI
NYLI Hedge Multi-Strategy Tracker ETF: replicates a basket of hedge-fund strategies. Backtest 2021-01-04 to 2026-10-02, $10,000 starting capital, computed by the same engine that runs live DeployQuant strategies.
Run on QAI, the EMA 12/26 trend switch turned $10,000 into $11,694 over 5.74 years, a CAGR of 2.76%. Holding QAI over the same window finished at $12,450.50 with a CAGR of 3.89%. The rule trailed by 1.13 points a year. It also held a max drawdown of 7.35% where buy-and-hold fell 14.65%, and its Sharpe ratio of 0.64 matched buy-and-hold's 0.64.
QAI is the NYLI Hedge Multi-Strategy Tracker ETF. It copies a mix of hedge-fund styles and moves slowly, with 6.52% annualized volatility and a 0.53% typical daily range. Over the window it returned 25.27% in total. The rule is a long-or-flat switch. When the 12-day exponential average rises above the 26-day it puts 98% of the sleeve in at the open, and when the 12-day drops under the 26-day it sells everything at the next open. Data starts 2021-01-04 and ends 2026-10-02, with no fees or slippage in the headline figures.
The shape of the result is a trade-off. The strategy gave up return in five of six calendar years and kept most of the loss out of 2022. It made 20 round trips, won 9 of them, and lost the first 8 in a row. That opening streak sets the character of the whole run.
Year by year
| Year | EMA 12/26 trend | buy & hold |
|---|---|---|
| 2021 | −5.2% | −0.2% |
| 2022 | 0.4% | −8.6% |
| 2023 | 8.2% | 10.0% |
| 2024 | 1.7% | 6.6% |
| 2025 | 5.9% | 8.0% |
| 2026 | 5.5% | 8.0% |
How each year played out
Only one calendar year in the yearly table favors the rule. In the other five it trailed.
In 2021 the rule did worst. It returned -5.2% while buy-and-hold returned -0.2%. QAI went almost nowhere that year, and a crossover rule paid for every false start. The strategy entered on 2021-02-10 and exited on 2021-03-03 for -1.4%. It re-entered on 2021-04-19 and exited 2021-05-12 for -0.9%. Then it went in on 2021-05-27 and out on 2021-07-19 for -0.7%, in on 2021-09-02 and out on 2021-09-21 for -1.1%, and in on 2021-10-21 and out on 2021-11-24 for -1.3%. Five losers in one year, none worse than 1.4% and none better than 0.7%. The monthly table shows the same year: February -1.89%, May -0.95%, July -1.0%, September -1.1%, November -1.05%.
The 2022 column is where the rule paid off. It returned 0.4% while buy-and-hold lost 8.6%, with the account in cash through most of the months. Its trades in 2022 were short: a one-day trade on 2022-01-05 that lost 0.6%, a 12-day trade from 2022-03-31 for -0.9%, and a 33-day trade from 2022-07-29 for -0.6%. Each of those lost a little. The remainder of the year was flat, and the monthly table shows 0.0% for February, May, June, September and October. Then on 2022-11-09 it entered at $25.67, and that trade ran 110 days to 2023-02-27 at $26.84 for 4.6%, the first winner of the run. The 2022-11-09 entry produced the rule's best month, November 2022 at 3.39%.
2023 returned 8.2% against 10.0% for holding. It made two more winners that year: 2.0% over 76 days from 2023-06-06, and the start of a long trade from 2023-11-09. 2024 returned 1.7% against 6.6% for buy-and-hold, the second-widest shortfall in the table. The trade from 2023-11-09 carried into 2024-04-18 for 5.5% over 161 days, the best of the whole run, but the 90-day trade from 2024-05-07 lost 1.7%, the worst. August 2024 was the worst month at -2.97%.
2025 returned 5.9% against 8.0%, and 2026, a partial year to 2026-10-02, returned 5.5% against 8.0%. The 2025 gain came mostly from one trade, 2025-05-02 to 2025-11-18, which held 200 days for 5.3%. With the account flat in April 2025 (0.0% for the month) the rule missed both the sharp April drop and part of the rebound: QAI's worst day in the window was 2025-04-04 at -2.72% and its best was 2025-04-09 at 3.17%.
Buy-and-hold beat the rule in every year except 2022. The yearly gap was widest in 2021 and 2024, at 5 and 4.9 points, and 2022 was the single year with a gain over holding, at 9 points.
Month by month
| Year | Jan | Feb | Mar | Apr | May | Jun | Jul | Aug | Sep | Oct | Nov | Dec |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2021 | 0.0% | −1.9% | 0.5% | 0.1% | −0.9% | 0.3% | −1.0% | 0.0% | −1.1% | −0.2% | −1.1% | 0.0% |
| 2022 | −0.5% | 0.0% | −0.3% | −0.6% | 0.0% | 0.0% | 0.3% | −0.9% | 0.0% | 0.0% | 3.4% | −0.8% |
| 2023 | 3.3% | −1.3% | 0.4% | 0.5% | −0.5% | 1.5% | 1.9% | −1.3% | −0.8% | 0.0% | 2.1% | 2.3% |
| 2024 | −0.5% | 1.6% | 1.3% | −1.4% | 0.5% | 0.3% | 1.1% | −3.0% | 1.4% | −0.6% | 2.2% | −1.1% |
| 2025 | 0.1% | −0.5% | 0.4% | 0.0% | 1.1% | 1.6% | 0.6% | 1.4% | 1.7% | 0.7% | −2.0% | 0.6% |
| 2026 | 2.3% | 1.7% | −1.4% | 2.5% | 1.9% | 0.6% | −1.6% | 0.3% | −0.8% | 0.0% | – | – |
The shape of the monthly returns
The monthly table is mostly small numbers. Most months sit between -1.5% and 2.5%. A low-volatility fund returns small numbers like these, and they explain how a 45% win rate still produced a profit factor of 2.67. Winners averaged 3.00% and losers averaged -0.95%. Winners were larger than losers, so the strategy could lose more often than it won and still end positive.
A long run of zero months shows when the rule was flat. In 2022 there were five of them. In 2021 January, August and December were flat. In 2023 only October was flat, and in 2025 only April. The account held a position at the close on 62.3% of sessions and sat in cash the remainder.
The best month, November 2022 at 3.39%, was the month the rule entered the long winning trade. The worst, August 2024 at -2.97%, came in a trade that had begun on 2024-05-07 and ended on 2024-08-05 for -1.7%.
Every trade
EMA 12/26 trend on QAI made 20 closed round trips, an average hold of 66 days, an average winner of 3.00%, an average loser of −0.95%, a profit factor of 2.67, a longest losing streak of 8. It held a position at the close on 62.3% of trading days.
| Entry | Entry price | Exit | Exit price | Return | Days held |
|---|---|---|---|---|---|
| 2021-02-10 | $29.60 | 2021-03-03 | $29.19 | −1.4% | 21 |
| 2021-04-19 | $28.97 | 2021-05-12 | $28.70 | −0.9% | 23 |
| 2021-05-27 | $29.12 | 2021-07-19 | $28.91 | −0.7% | 53 |
| 2021-09-02 | $29.29 | 2021-09-21 | $28.96 | −1.1% | 19 |
| 2021-10-21 | $29.12 | 2021-11-24 | $28.75 | −1.3% | 34 |
| 2022-01-05 | $28.81 | 2022-01-06 | $28.65 | −0.6% | 1 |
| 2022-03-31 | $28.08 | 2022-04-12 | $27.83 | −0.9% | 12 |
| 2022-07-29 | $26.46 | 2022-08-31 | $26.29 | −0.6% | 33 |
| 2022-11-09 | $25.67 | 2023-02-27 | $26.84 | 4.6% | 110 |
| 2023-03-31 | $26.94 | 2023-05-25 | $27.04 | 0.4% | 55 |
| 2023-06-06 | $27.20 | 2023-08-21 | $27.74 | 2.0% | 76 |
| 2023-08-30 | $27.99 | 2023-09-27 | $27.81 | −0.6% | 28 |
| 2023-11-09 | $27.78 | 2024-04-18 | $29.30 | 5.5% | 161 |
| 2024-05-07 | $29.67 | 2024-08-05 | $29.16 | −1.7% | 90 |
| 2024-08-20 | $30.31 | 2024-12-23 | $31.08 | 2.5% | 125 |
| 2025-01-22 | $31.43 | 2025-03-03 | $31.44 | 0.0% | 40 |
| 2025-05-02 | $31.03 | 2025-11-18 | $32.68 | 5.3% | 200 |
| 2025-12-04 | $33.31 | 2026-03-13 | $34.39 | 3.2% | 99 |
| 2026-04-09 | $34.79 | 2026-07-17 | $36.01 | 3.5% | 99 |
| 2026-08-06 | $36.34 | 2026-09-14 | $36.14 | −0.6% | 39 |
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.
Reading the trade list
Twenty round trips over 5.74 years is a modest count for a rule built on exponential averages of 12 and 26 days. Average hold was 65.9 days. The longest trade was 200 days and the shortest was one day.
The opening run of eight losses is the feature of this list. They fall between 2021-02-10 and 2022-08-31, and the losses ranged from -0.6% to -1.4%. The fund spent that time drifting sideways to lower. QAI's deepest buy-and-hold drawdown ran from 2021-02-17 to 2022-10-14. The rule's 7.35% drawdown ran from 2021-02-09 to 2022-11-09, 638 days. It was built entirely from those small losses stacking up, because no single large decline ever hit the position. It recovered by 2023-07-17, 250 days after the low.
After that the list changes. Of the next twelve trades, nine won. The longest winners are the three big ones: 5.5% over 161 days, 5.3% over 200 days, and 4.6% over 110 days. These are the trades that make the profit factor. A crossover rule is a bet that a few long trends pay for many short failures, and the QAI list fits that description. The record also contains a flat trade, 2025-01-22 to 2025-03-03, which returned 0.0% after 40 days.
The two later trades, 2025-12-04 to 2026-03-13 for 3.2% and 2026-04-09 to 2026-07-17 for 3.5%, each lasted 99 days. The last trade, from 2026-08-06 to 2026-09-14, lost 0.6% over 39 days. Prices in the trade list are adjusted for splits and dividends, so they sit below the quotes printed at the time.
Largest drawdowns
| Peak | Low point | Depth | Days to low | Recovered | Days to recover |
|---|---|---|---|---|---|
| 2021-02-09 | 2022-11-09 | −7.3% | 638 | 2023-07-17 | 250 |
| 2024-07-16 | 2024-09-06 | −5.0% | 52 | 2025-06-06 | 273 |
| 2025-10-27 | 2025-12-17 | −2.7% | 51 | 2026-01-12 | 26 |
Buy-and-hold's deepest drawdown ran from 2021-02-17 to 2022-10-14 and reached −14.7%.
What the drawdowns show on QAI
The three largest drawdowns were 7.35%, 5.05% and 2.68%. Buy-and-hold had 14.65%, 7.63% and 3.65%. The rule's drawdown at each rank was shallower than the buy-and-hold drawdown at that rank.
The first one is the long one. It took 638 days to reach the low and 250 days to recover. That is a long time for a 7% decline, and the cause is that the rule lost slowly. A fund that falls 14.65% in one move produces a deep drawdown that a switch can step around. A fund that drifts produces a series of small entry-and-exit losses that the switch cannot step around, and those add up over time. The drawdown on this page is a record of whipsaws, not of a market fall.
The second drawdown ran from 2024-07-16 to 2024-09-06, 52 days to the low, and took 273 days to recover to 2025-06-06. That is a slow recovery for a 5.05% decline, because the rule exited near the bottom on 2024-08-05 and re-entered 2024-08-20 at $30.31, higher than its exit at $29.16. The third was 2.68% from 2025-10-27 to 2025-12-17, and it recovered by 2026-01-12.
Buy-and-hold's own drawdown from 2021-02-17 to 2022-10-14 took 515 days to recover, to 2024-03-12. The ETF profile gives 14.94% for that decline, a little deeper than the 14.65% in the buy-and-hold run, and the two figures are close but not identical.
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) | 2.8% | −7.3% | $11,694 | 0.64 |
| 5 basis points | 2.4% | −8.1% | $11,467 | 0.56 |
| 10 basis points | 2.1% | −8.9% | $11,246 | 0.48 |
How trading costs changed the result
Charging 5 basis points per fill cut the CAGR from 2.76% to 2.41%, the max drawdown rose from 7.35% to 8.12%, and the final value dropped to $11,467. At 10 basis points the CAGR was 2.07%, the drawdown 8.88% and the final value $11,246. The Sharpe ratio went from 0.64 to 0.56 and then 0.48.
Forty fills, 20 buys and 20 sells, means every basis point of slippage is charged 40 times. With an average winner of 3.00% and an average loser of -0.95%, a flat charge per fill eats a visible slice of each trade. QAI also trades thinly, with $3,152,202 of average daily dollar volume and a median of 317 shares per minute. Fills in a fund this quiet can land away from the bar price, so the cost runs are a cautious guide.
Changing the parameters
| Version | CAGR | Max drawdown | Round trips | Win rate | Final value |
|---|---|---|---|---|---|
| Published rules | 2.8% | −7.3% | 20 | 45% | $11,694 |
| EMA 8/21 | 3.2% | −8.0% | 29 | 45% | $11,990 |
| EMA 20/50 | 3.0% | −7.3% | 11 | 55% | $11,814 |
| EMA 12/50 | 2.3% | −7.1% | 16 | 44% | $11,415 |
What the parameter variants show
Three alternative pairs of averages were run on the same data.
The faster EMA 8/21 pair made 29 round trips and won 13 of them, with a CAGR of 3.21%, a max drawdown of 8.0%, a Sharpe ratio of 0.702 and a final value of $11,990. It had the best return and best Sharpe of the group.
The slower EMA 20/50 pair made 11 round trips and won 6, with a CAGR of 2.95%, a max drawdown of 7.28% and a Sharpe of 0.674, ending at $11,814. It had the shallowest drawdown among the versions that moved both averages.
EMA 12/50 holds the fast average and slows only the other. It made 16 round trips and won 7, with a CAGR of 2.33%, a max drawdown of 7.06% and a Sharpe of 0.545, ending at $11,415. It had the lowest return and the shallowest drawdown of the group.
None of the three beat buy-and-hold's 3.89% CAGR, so the shortfall to holding on QAI does not depend on one pair of settings. Both the faster and the slower version stayed below it. The published 12/26 returned more than only the 12/50 version and had a higher Sharpe than it. The versions sit close together, and with 11 to 29 trades each, a different window could reorder them.
How QAI behaved
| Measure | QAI |
|---|---|
| Data in this test | 2021-01-04 to 2026-10-02 (1444 sessions) |
| Total return, buy and hold | 25.3% |
| Annualized volatility | 6.5% |
| Deepest drawdown | −14.9% (2021-02-17 to 2022-10-14) |
| Up days | 51.4% |
| Average daily range | 0.53% |
| Average overnight gap | 0.27% |
| Correlation to SPY | 0.82 |
| Correlation to QQQ | 0.80 |
| Correlation to TLT | 0.18 |
| Sessions above the 200-day average | 75.7% |
| Crossings of the 200-day average | 15 |
| Falls of 10% or more from a 20-day high | 0 |
How QAI behaved and why that mattered
QAI's volatility of 6.52% a year is low. Its average up day was 0.31% and its average down day was -0.32%, with 51.35% of days up. With moves that small, a crossover rule sees mostly noise next to the trend. The 12-day average crosses the 26-day often when the trend is weak, and 2021 on the trade list looks like that.
Correlation to SPY was 0.82 and to QQQ 0.8, with a beta of 0.33 to SPY and 0.23 to QQQ, so QAI followed equities at roughly a third of their size. Its correlation to TLT was 0.18. QAI closed above its 200-day average on 75.74% of sessions and crossed that line 15 times. No 10% fall from a 20-day high ever occurred. A fund without sharp drops gives a trend switch little to dodge, so the drawdown protection came from the slow drift of 2021 and 2022 and did not come from sidestepping a crash.
The overnight and intraday split looks odd and is worth checking in the data. Overnight log return was -48.34% and intraday was 70.66%, giving an overnight share of -216.57%. Nearly all of QAI's gain arrived between open and close. Because the rule trades at the open, it acts after the gap has printed, and the average gap of 0.27% is a large part of the 0.53% daily range.
Each month-of-year average for QAI rests on 5 or 6 observations, which is weak evidence. November averaged 1.58% and January 0.93%, and September averaged -0.63% and March -0.46%.
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.
Where this rule ranks
Sorting the 12 templates on QAI by CAGR puts EMA 12/26 trend sixth. Three rules cleared 4%: golden cross at 4.28% (drawdown 7.63%), the 200-day regime filter at 4.26% (6.02%) and the weekly 7% target at 4.21% (15.8%). Below them came the RSI(2) snapback at 3.43% with a 6.84% drawdown and the monthly cycle at 3.28% with 16.07%. Just under this rule's 2.76% sat the trend plus trailing stop at 2.61%. The tail held the RSI mean reversion rule at 2.15%, the SMA 10/50 pair at 2.12% and 3-month momentum at 2.11%, the last with a 5% drawdown. The dip buyer and momentum breakout templates show 0% CAGR and 0% drawdown because they never traded: no 10% fall from a 20-day high occurred.
Over all 59 funds the same rule had a median CAGR of 2.76%, equal to its QAI result, and QAI placed 30th of 59 for this template. Among the six alternative-strategy funds, the median CAGR was 4.27%. CLSE led at 14.01%, then KMLM at 5.11%, ALTY at 4.27% and CTA at 3.13%. QAI was fifth at 2.76% and RINF was last at -0.22% with 30 round trips. Of the six, QAI drew down least at 7.35%, against 22.03% for KMLM and 19.05% for CTA. The full list is on the QAI fund page.
What the test covers
One fund and one window of 5.74 years make up the whole test. The window opens in January 2021, a few weeks before QAI's buy-and-hold peak on 2021-02-17, and includes the 2022 decline, so the result depends on how that decline played out for a hedge-strategy fund. Headline figures carry no fees or slippage, and the cost runs add 5 and 10 basis points. Decisions are daily, made at the open, with fills modeled on minute bars. Twenty round trips is a small sample, and the 45% win rate and 2.67 profit factor each rest on only that many trades. These are hypothetical results and say nothing certain about later periods. This page gives no investment advice.
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 QAI?
Over 2021-01-04 to 2026-10-02, EMA 12/26 trend on QAI returned 2.8% annualized vs 3.9% for buy-and-hold: it trailed buy-and-hold by 1.1% per year, with a maximum drawdown 7.3 points shallower than holding (7.3% vs 14.7%).
How many trades did it make?
20 completed round trips over 5.7 years (40 fills), with 45% 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 the EMA 12/26 switch outperform simply holding QAI?
No. The rule returned 2.76% a year against 3.89% for buy-and-hold, and ended at $11,694 against $12,450.50. Only 2022 went its way, with a 0.4% gain against an 8.6% loss for holding.
How deep was the rule's drawdown next to holding QAI?
The rule's max drawdown was 7.35% and buy-and-hold's was 14.65%. The rule's drawdown lasted 638 days to the low, from 2021-02-09 to 2022-11-09, and recovered by 2023-07-17.
How many round trips did the EMA crossover make on QAI?
The count was 20 round trips and 40 fills, 9 of them winners for a 45% win rate. The first 8 trades all lost, from 2021-02-10 to 2022-08-31. The average hold was 65.9 days.
Why did it lose its first eight trades?
QAI drifted sideways to lower through 2021 and early 2022, so the 12-day average kept crossing the 26-day and reversing. Each trade lost between 0.6% and 1.4%. The [trades section](/learn/strategies/ema-12-26-trend/qai/) lists every entry and exit.
Does slippage change the result on QAI?
It does. With 5 basis points per fill the CAGR was 2.41% and at 10 basis points it was 2.07%, with final values of $11,467 and $11,246. QAI is thinly traded, with a median minute volume of 317 shares.
Do other EMA settings work better on QAI?
EMA 8/21 returned 3.21%, EMA 20/50 returned 2.95% and EMA 12/50 returned 2.33%. None of them reached the 3.89% from holding. See the [all-strategies page for QAI](/learn/etf/qai/) for the other rules.
Which strategy template ranked best on QAI?
Golden cross ranked first at 4.28% CAGR with a 7.63% drawdown, followed by the 200-day regime filter at 4.26% and the weekly 7% target at 4.21%. EMA 12/26 trend ranked sixth of 12.
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.