Stratsemble
Strategy library
OfficialTrend-following

Dual-EMA Crossover 20/50 Nasdaq-100 ETF (QQQ) strategy backtest

Long while the 20-EMA leads the 50-EMA; exits on the cross back down, with a trailing stop underneath.

A curated strategy — a well-known mechanism with sensible risk management built in. Still not a recommendation — it's a mechanism you test yourself.

How this strategy works
  • Buys when Moving average (EMA)(20) crosses above Moving average (EMA)(50).
  • Sells when Moving average (EMA)(20) crosses below Moving average (EMA)(50).
  • Trails the stop 12% below the peak.
Run this exact strategy yourself — pick a window:
Nasdaq-100 ETF (QQQ) · 2016-09-142026-09-11 (2512 bars) · costs & slippage on · vs buy & hold
Drawdown — how far underwater you'd have been
Total return
+97.2%
Buy & hold +561.3%
vs Buy & Hold
-464 pts
lagged the benchmark
Max drawdown
-27.6%
worst peak-to-trough
CAGR
+7.1%
Win rate
57%
Profit factor
2.85
Sharpe
0.57
Trades
23
Time in market
57%
Best trade
+26.2%
Worst trade
-8.7%
Worst drawdowns · peak → troughDepthTo troughUnderwaterRecovered
2020-09-022023-03-10-27.6%919d1234dyes
2024-07-102024-09-18-18.8%70d439dyes
2019-05-032019-10-02-13.9%152d251dyes

How this is computed → (closed-bar, costs on, vs buy & hold — the full method.)

Past performance is not a reliable indicator of future results. This is an educational, analytical tool — not investment advice, and not a recommendation to buy or sell anything. You make all decisions and execute on your own broker.

Hypothetical performance disclaimer (CFTC Rule 4.41)

HYPOTHETICAL OR SIMULATED PERFORMANCE RESULTS HAVE CERTAIN LIMITATIONS. UNLIKE AN ACTUAL PERFORMANCE RECORD, SIMULATED RESULTS DO NOT REPRESENT ACTUAL TRADING. ALSO, SINCE THE TRADES HAVE NOT BEEN EXECUTED, THE RESULTS MAY HAVE UNDER- OR OVER-COMPENSATED FOR THE IMPACT, IF ANY, OF CERTAIN MARKET FACTORS, SUCH AS LACK OF LIQUIDITY. SIMULATED TRADING PROGRAMS IN GENERAL ARE ALSO SUBJECT TO THE FACT THAT THEY ARE DESIGNED WITH THE BENEFIT OF HINDSIGHT. NO REPRESENTATION IS BEING MADE THAT ANY ACCOUNT WILL OR IS LIKELY TO ACHIEVE PROFITS OR LOSSES SIMILAR TO THOSE SHOWN.

How this backtest works
Data
Yahoo Finance / Binance daily OHLC, split-adjusted. Recomputed on each run.
Costs
Commission + tiered slippage on every fill. No leverage.
Execution
Signals act on the next open after a bar closes — never on a price you couldn't have known.
Look-ahead & survivorship
Indicators use closed bars only; the forming bar is dropped. Survivorship is labelled, not hidden.
Benchmark
Measured against buy & hold of the same asset over the same window.
What it isn't
Not advice, not a prediction, no profit claim. I hold no funds and place no orders.