Strategy library · Popular combos

EMA 20/50 cross with a MACD filter backtest on NQ and ES futures

EMA 20 / 50 cross with MACD above zero

Also called: EMA 20 50 and MACD strategy, moving average cross with MACD filter, EMA crossover MACD above zero, buy when the 20 EMA crosses above the 50 EMA while MACD is above zero, short when the 20 EMA crosses below the 50 EMA while MACD is below zero

What happens if you buy NQ every time the 20 EMA crosses above the 50 EMA while MACD is above zero?

What it is

This is the EMA 20/50 cross with a MACD filter: longs only while the MACD is above 0 and shorts only while it is below 0. It exits on the opposite cross.

What it did

On NQ futures from 2024-10-08 to 2026-10-07, the EMA 20/50 cross with a MACD filter strategy took 292 trades on the 15-minute chart, won 46.2% of them and finished 2,657.00 points ($53,140 on one NQ contract), before commission and slippage. From 2024-10-08 to 2026-10-07 on NQ, the 135 long trades on the 15-minute chart won 49.6% and made 1,350.75 points ($27,015 on one NQ contract), before commission and slippage. On ES futures from 2024-08-28 to 2026-08-27, the EMA 20/50 cross with a MACD filter strategy took 288 trades on the 15-minute chart, won 46.5% of them and finished 332.00 points ($16,600 on one ES contract), before commission and slippage. The 5-minute, 1-hour and daily results for both markets are in the table on this page.

How it was tested

CE Market Solutions tested the EMA 20/50 cross with a MACD filter strategy on NQ (2024-10-08 to 2026-10-07) and ES (2024-08-28 to 2026-08-27) futures, before commission and slippage, with each signal filled at the next bar's open, intraday positions flat at 15:59 ET and textbook default indicator settings; the NQ trades are listed on this page and the ES trades under the ES tab.

See it tested with one change · $19

Tested by CE Market Solutions on 2026-10-26. The trades are listed below, one market at a time. Gross, no commission or slippage. Last 2 years.

Results

Rule as tested: MA06 longs only while MACD is above 0; shorts only below 0. Exit: Opposite cross.

TimeframeNQ · 2024-10-08 to 2026-10-07ES · 2024-08-28 to 2026-08-27
TradesWin %Avg ptsProfit factorNet ptsNet $ (1 NQ)Max DD ptsTradesWin %Avg ptsProfit factorNet ptsNet $ (1 ES)Max DD pts
5 minute62940.4%−4.270.903−2,688.50−$53,7704,544.2568140.2%−0.160.983−111.00−$5,550719.75
5 minute · longs only32641.7%——−2,734.75−$54,6953,663.0034140.2%——−140.00−$7,000445.00
5 minute · shorts only30338.9%——46.25$9251,751.0034040.3%——29.00$1,450453.50
15 minute29246.2%9.101.1932,657.00$53,1401,999.0028846.5%1.151.108332.00$16,600414.25
15 minute · longs only13549.6%——1,350.75$27,0151,949.0011950.4%——249.25$12,463237.75
15 minute · shorts only15743.3%——1,306.25$26,1251,377.5016943.8%——82.75$4,138315.50
1 hour7944.3%−11.190.814−884.25−$17,6851,676.508442.9%−0.390.967−33.00−$1,650366.25
1 hour · longs only4454.6%——−664.50−$13,2901,079.504242.9%——−24.25−$1,212140.50
1 hour · shorts only3531.4%——−219.75−$4,395936.504242.9%——−8.75−$437287.00
Daily728.6%−110.180.835−771.25−$15,4253,182.00742.9%109.392.179765.75$38,288408.00
Daily · longs only366.7%——3,208.50$64,170681.50366.7%——1,179.25$58,963152.50
Daily · shorts only40.0%——−3,979.75−$79,5953,979.75425.0%——−413.50−$20,675413.50

NQ Daily: small sample (7 trades). ES Daily: small sample (7 trades).

Free to use with credit to CE Market Solutions (CC BY 4.0).

NQ 5 minute: the equity line

EMA 20 / 50 cross with MACD above zero, NQ 5 minute, 2024-10-08 to 2026-10-07. Cumulative points after each trade; low −3,160.50, high 1,383.75, last −2,688.50.

Long and short

SideTradesNet pts
Long326−2,734.75
Short30346.25

By month

MonthTradesNet pts
2024-1020465.75
2024-1123−100.75
2024-1220−38.75
2025-0130−481.00
2025-0221854.75
2025-0322443.50
2025-0425−361.00
2025-0531−947.00
2025-0624−271.50
2025-0733−363.25
2025-0824−161.00
2025-0928−188.50
2025-1021831.75
2025-1121724.75
2025-1236−294.75
2026-0125−42.25
2026-0227−365.25
2026-0325−577.75
2026-0429−707.75
2026-0524108.50
2026-0631229.00
2026-0724−1,164.00
2026-0832−349.00
2026-0927−103.00
2026-106170.00
Every trade, NQ 5 minute629 trades

Pick any of the 629 charted trades with Previous, Next or a date, or click a row in the trades table below, to see it drawn on the real 1-minute bars. Drag the chart sideways to move through the sessions around it.

Chart unavailable. The trades are in the table below.

All trades (629), newest first

Times are New York time; points are gross. Click a row to draw that trade in the chart above.

Session dateSideEntry (ET)Entry priceExit (ET)Exit priceExit reasonPoints
2025-11-10short11:2525491.0012:5025611.25opposite cross−120.25
2025-11-07long14:2524959.2515:5925164.25end of day 15:59205.00
2025-11-04short12:0525732.5015:5925578.00end of day 15:59154.50
2025-11-04long10:0025874.7512:0525732.50opposite cross−142.25
2025-11-03short14:2526097.2515:5926110.25end of day 15:59−13.00
2025-11-03long13:0026150.0014:2526097.25opposite cross−52.75
2025-11-03short10:2026110.0013:0026150.00opposite cross−40.00
2025-10-31long15:4026084.2515:5925992.75end of day 15:59−91.50
2025-10-31short09:4026144.5015:4026084.25opposite cross60.25
2025-10-29short11:2026266.0015:5926281.25end of day 15:59−15.25
2025-10-23long09:5025137.7515:5925253.00end of day 15:59115.25
2025-10-21long11:5525320.7515:5925291.25end of day 15:59−29.50
2025-10-21short09:4525256.0011:5525320.75opposite cross−64.75
2025-10-16short11:5024970.5015:5924830.75end of day 15:59139.75
2025-10-15short12:0024934.5015:5924924.50end of day 15:5910.00
2025-10-14long10:4024728.7515:5924757.25end of day 15:5928.50
2025-10-13long11:3024878.5015:5924920.50end of day 15:5942.00
2025-10-13short11:0024758.2511:3024878.50opposite cross−120.25
2025-10-13long10:0524904.0011:0024758.25opposite cross−145.75
2025-10-10short11:0525028.7515:5924402.25end of day 15:59626.50
2025-10-09long15:3525267.0015:5925294.50end of day 15:5927.50
2025-10-09short09:3525307.2515:3525267.00opposite cross40.25
2025-10-08long09:3525123.7515:5925330.00end of day 15:59206.25
2025-10-07short11:0525144.2515:5925045.25end of day 15:5999.00
2025-10-06short10:4025143.5011:4025172.25opposite cross−28.75
2025-10-03long12:2025150.2512:5525120.00opposite cross−30.25
2025-10-02long13:4525098.5015:5925109.50end of day 15:5911.00
2025-10-02short09:5525050.0013:4525098.50opposite cross−48.50
2025-09-30long14:3524819.2515:5924898.25end of day 15:5979.00
2025-09-30short13:0024783.0014:3524819.25opposite cross−36.25
2025-09-30long12:2524816.7513:0024783.00opposite cross−33.75
2025-09-30short11:4024769.7512:2524816.75opposite cross−47.00
2025-09-30long11:0524856.2511:4024769.75opposite cross−86.50
2025-09-30short09:4524797.7511:0524856.25opposite cross−58.50
2025-09-29short11:4524866.7515:5924837.25end of day 15:5929.50
2025-09-26long12:4524673.2515:5924725.50end of day 15:5952.25
2025-09-26short10:3024569.0012:4524673.25opposite cross−104.25
2025-09-25short13:3024595.2515:5924632.25end of day 15:59−37.00
2025-09-25long11:3524649.5013:3024595.25opposite cross−54.25
2025-09-19short11:4524747.2511:5524764.50opposite cross−17.25
2025-09-18short14:2524743.0015:5924698.25end of day 15:5944.75
2025-09-18long10:2024770.2514:2524743.00opposite cross−27.25
2025-09-17long15:3024530.7515:5924475.25end of day 15:59−55.50
2025-09-17short09:4024481.5015:3024530.75opposite cross−49.25
2025-09-16long15:1024314.0015:5924286.00end of day 15:59−28.00
2025-09-10short12:0523932.2515:5923874.25end of day 15:5958.00
2025-09-09long13:0523835.2515:5923867.75end of day 15:5932.50
2025-09-08short13:1023793.2515:5923803.75end of day 15:59−10.50
2025-09-05long15:4023665.5015:5923691.00end of day 15:5925.50
2025-09-05short10:2523663.5015:4023665.50opposite cross−2.00

← NewerPage 7 of 13Older →

Questions and answers

What happens if you buy NQ every time the 20 EMA crosses above the 50 EMA while MACD is above zero?

From 2024-10-08 to 2026-10-07 on the NQ 15-minute chart, the EMA 20/50 cross with a MACD filter strategy took 135 long trades, won 49.6% of them and made 1,350.75 points ($27,015 on one NQ contract), before commission and slippage. From 2024-10-08 to 2026-10-07 on NQ, its long trades also made -2,734.75 points on 326 trades on the 5-minute chart, -664.50 points on 44 trades on the 1-hour chart and 3,208.50 points on 3 trades on the daily chart, before commission and slippage.

What happens if you short ES every time the 20 EMA crosses below the 50 EMA while MACD is below zero?

From 2024-08-28 to 2026-08-27 on the ES 15-minute chart, the EMA 20/50 cross with a MACD filter strategy took 169 short trades, won 43.8% of them and made 82.75 points ($4,138 on one ES contract), before commission and slippage. From 2024-08-28 to 2026-08-27 on ES, its short trades also made 29.00 points on 340 trades on the 5-minute chart, -8.75 points on 42 trades on the 1-hour chart and -413.50 points on 4 trades on the daily chart, before commission and slippage.

Does the EMA 20/50 cross with a MACD filter strategy work on Nasdaq futures?

On NQ futures from 2024-10-08 to 2026-10-07, the EMA 20/50 cross with a MACD filter strategy on the 15-minute chart took 292 trades, won 46.2% of them and finished 2,657.00 points ($53,140 on one NQ contract), before commission and slippage.

What is the win rate of EMA 20 / 50 cross with MACD above zero on ES futures?

The EMA 20/50 cross with a MACD filter strategy won 46.5% of its 288 trades on the ES 15-minute chart from 2024-08-28 to 2026-08-27, before commission and slippage. On ES from 2024-08-28 to 2026-08-27 it also won 40.2% of 681 trades on the 5-minute chart, 42.9% of 84 trades on the 1-hour chart and 42.9% of 7 trades on the daily chart, before commission and slippage.

Is the EMA 20/50 cross with a MACD filter strategy better on the 5-minute, 15-minute, 1-hour or daily chart for NQ?

On NQ from 2024-10-08 to 2026-10-07, the EMA 20/50 cross with a MACD filter strategy made -2,688.50 points on 629 trades on the 5-minute chart, 2,657.00 points on 292 trades on the 15-minute chart, -884.25 points on 79 trades on the 1-hour chart and -771.25 points on 7 trades on the daily chart, before commission and slippage.

Is it better to only buy or only sell EMA 20/50 cross with a MACD filter signals on NQ?

On the NQ 15-minute chart from 2024-10-08 to 2026-10-07, the long trades made 1,350.75 points on 135 trades (49.6% won) and the short trades made 1,306.25 points on 157 trades (43.3% won), before commission and slippage.

How many trades does the EMA 20/50 cross with a MACD filter strategy take on NQ in two years?

The EMA 20/50 cross with a MACD filter strategy took 292 trades on the NQ 15-minute chart from 2024-10-08 to 2026-10-07, before commission and slippage. On NQ from 2024-10-08 to 2026-10-07 it also took 629 on the 5-minute chart, 79 on the 1-hour chart and 7 on the daily chart, before commission and slippage.

What is the max drawdown of the EMA 20/50 cross with a MACD filter strategy on NQ?

The EMA 20/50 cross with a MACD filter strategy had a max drawdown of 1,999.00 points ($39,980 on one NQ contract) on the NQ 15-minute chart from 2024-10-08 to 2026-10-07, before commission and slippage. On NQ from 2024-10-08 to 2026-10-07 its max drawdown was also 4,544.25 points on the 5-minute chart, 1,676.50 points on the 1-hour chart and 3,182.00 points on the daily chart, before commission and slippage.

How does the EMA 20/50 cross with a MACD filter strategy do on ES compared with NQ?

On the ES 15-minute chart from 2024-08-28 to 2026-08-27, the EMA 20/50 cross with a MACD filter strategy took 288 trades, won 46.5% of them and made 332.00 points ($16,600 on one ES contract), before commission and slippage. On the NQ 15-minute chart from 2024-10-08 to 2026-10-07, the EMA 20/50 cross with a MACD filter strategy took 292 trades, won 46.2% of them and made 2,657.00 points ($53,140 on one NQ contract), before commission and slippage.

How these were run

  • Gross: no commission and no slippage.
  • The last 2 years of each market, from the first to the last session of its window.
  • A signal on a closed bar fills at the next bar’s open.
  • A stop and a target touched in the same minute count as the stop.
  • Intraday positions are flat at 15:59 ET.
  • Textbook TradingView default settings for every indicator; nothing is tuned.

Want your own rules tested the same way?