Learn › Strategies › EMA 12/26 Trend › QAI

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.

Result: EMA 12/26 trend on QAI turned $10,000 into $11,694 (16.9% total, 2.8% CAGR): 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%).
2.8%CAGR
3.9%buy & hold CAGR
−7.3%max drawdown
0.64Sharpe ratio
20round trips
45%win rate
■ EMA 12/26 trend   ■ buy & hold, $10,000 invested 2021-01-04

Year by year

YearEMA 12/26 trendbuy & hold
2021−5.2%−0.2%
20220.4%−8.6%
20238.2%10.0%
20241.7%6.6%
20255.9%8.0%
20265.5%8.0%

Month by month

YearJanFebMarAprMayJunJulAugSepOctNovDec
20210.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%
20233.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%
20250.1%−0.5%0.4%0.0%1.1%1.6%0.6%1.4%1.7%0.7%−2.0%0.6%
20262.3%1.7%−1.4%2.5%1.9%0.6%−1.6%0.3%−0.8%0.0%––

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.

EntryEntry priceExitExit priceReturnDays held
2021-02-10$29.602021-03-03$29.19−1.4%21
2021-04-19$28.972021-05-12$28.70−0.9%23
2021-05-27$29.122021-07-19$28.91−0.7%53
2021-09-02$29.292021-09-21$28.96−1.1%19
2021-10-21$29.122021-11-24$28.75−1.3%34
2022-01-05$28.812022-01-06$28.65−0.6%1
2022-03-31$28.082022-04-12$27.83−0.9%12
2022-07-29$26.462022-08-31$26.29−0.6%33
2022-11-09$25.672023-02-27$26.844.6%110
2023-03-31$26.942023-05-25$27.040.4%55
2023-06-06$27.202023-08-21$27.742.0%76
2023-08-30$27.992023-09-27$27.81−0.6%28
2023-11-09$27.782024-04-18$29.305.5%161
2024-05-07$29.672024-08-05$29.16−1.7%90
2024-08-20$30.312024-12-23$31.082.5%125
2025-01-22$31.432025-03-03$31.440.0%40
2025-05-02$31.032025-11-18$32.685.3%200
2025-12-04$33.312026-03-13$34.393.2%99
2026-04-09$34.792026-07-17$36.013.5%99
2026-08-06$36.342026-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.

Largest drawdowns

PeakLow pointDepthDays to lowRecoveredDays to recover
2021-02-092022-11-09−7.3%6382023-07-17250
2024-07-162024-09-06−5.0%522025-06-06273
2025-10-272025-12-17−2.7%512026-01-1226

Buy-and-hold's deepest drawdown ran from 2021-02-17 to 2022-10-14 and reached −14.7%.

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)2.8%−7.3%$11,6940.64
5 basis points2.4%−8.1%$11,4670.56
10 basis points2.1%−8.9%$11,2460.48

Changing the parameters

VersionCAGRMax drawdownRound tripsWin rateFinal value
Published rules2.8%−7.3%2045%$11,694
EMA 8/213.2%−8.0%2945%$11,990
EMA 20/503.0%−7.3%1155%$11,814
EMA 12/502.3%−7.1%1644%$11,415

How QAI behaved

MeasureQAI
Data in this test2021-01-04 to 2026-10-02 (1444 sessions)
Total return, buy and hold25.3%
Annualized volatility6.5%
Deepest drawdown−14.9% (2021-02-17 to 2022-10-14)
Up days51.4%
Average daily range0.53%
Average overnight gap0.27%
Correlation to SPY0.82
Correlation to QQQ0.80
Correlation to TLT0.18
Sessions above the 200-day average75.7%
Crossings of the 200-day average15
Falls of 10% or more from a 20-day high0

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

Related

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