Strategy library · Momentum oscillators

MACD zero-line cross backtest on NQ and ES futures

MACD zero-line cross

Also called: MACD zero cross, MACD crossing zero, MACD centerline cross, MACD crosses zero line, buy when the MACD line crosses above zero, short when the MACD line crosses below zero

What happens if you buy NQ every time the MACD line crosses above zero?

What it is

The MACD line is the 12-period EMA minus the 26-period EMA, and the zero line is where the two averages are equal. This strategy goes long when the MACD line crosses above zero, short when it crosses below, and exits on the opposite cross.

What it did

On NQ futures from 2024-10-08 to 2026-10-07, the MACD zero-line cross strategy took 454 trades on the 15-minute chart, won 43.8% of them and finished 696.00 points ($13,920 on one NQ contract), before commission and slippage. From 2024-10-08 to 2026-10-07 on NQ, the 233 long trades on the 15-minute chart won 46.8% and made -78.50 points (-$1,570 on one NQ contract), before commission and slippage. On ES futures from 2024-08-28 to 2026-08-27, the MACD zero-line cross strategy took 494 trades on the 15-minute chart, won 44.7% of them and finished 199.00 points ($9,950 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 MACD zero-line cross 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: Long when the MACD line crosses above zero; short below. 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 minute129036.1%0.521.015671.00$13,4203,798.50128736.3%0.141.020185.75$9,288582.75
5 minute · longs only65237.6%——−908.50−$18,1702,750.0064438.5%——−213.75−$10,687554.50
5 minute · shorts only63834.5%——1,579.50$31,5902,134.2564334.1%——399.50$19,975436.50
15 minute45443.8%1.531.031696.00$13,9204,214.7549444.7%0.401.040199.00$9,950673.50
15 minute · longs only23346.8%——−78.50−$1,5702,718.2524045.4%——−243.75−$12,187602.00
15 minute · shorts only22140.7%——774.50$15,4902,393.0025444.1%——442.75$22,138308.25
1 hour15353.6%19.011.4752,908.75$58,1751,656.7516051.3%2.871.324459.75$22,988181.75
1 hour · longs only7358.9%——1,952.00$39,040551.007558.7%——451.00$22,55096.50
1 hour · shorts only8048.8%——956.75$19,1351,820.758544.7%——8.75$438301.00
Daily2020.0%−28.950.946−579.00−$11,5805,759.751822.2%8.491.092152.75$7,638765.25
Daily · longs only1030.0%——3,888.75$77,7752,337.50933.3%——960.75$48,038233.75
Daily · shorts only1010.0%——−4,467.75−$89,3555,463.25911.1%——−808.00−$40,400844.50

ES Daily: small sample (18 trades).

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

NQ 5 minute: the equity line

MACD zero-line cross, NQ 5 minute, 2024-10-08 to 2026-10-07. Cumulative points after each trade; low −321.75, high 3,476.75, last 671.00.

Long and short

SideTradesNet pts
Long652−908.50
Short6381,579.50

By month

MonthTradesNet pts
2024-1035763.25
2024-1157167.50
2024-1256425.75
2025-0145226.50
2025-02471,033.00
2025-0355−454.75
2025-0449578.75
2025-0563−1,104.50
2025-0658−723.25
2025-07508.00
2025-0849−30.75
2025-0949199.25
2025-1053969.00
2025-1143870.25
2025-1271−1,257.50
2026-0150141.75
2026-0247114.00
2026-0364−292.00
2026-0448−182.75
2026-0551−143.75
2026-0654183.25
2026-0758179.00
2026-0873−1,188.50
2026-0960−21.50
2026-105211.00
Every trade, NQ 5 minute1290 trades

Pick any of the 1290 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 (1290), 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
2026-06-26short14:1029546.5015:5929316.00end of day 15:59230.50
2026-06-26long10:0529534.2514:1029546.50opposite zero cross12.25
2026-06-25short15:1529670.2515:5929749.50end of day 15:59−79.25
2026-06-25long13:3029764.7515:1529670.25opposite zero cross−94.50
2026-06-25short12:4529650.0013:3029764.75opposite zero cross−114.75
2026-06-25long12:2029819.2512:4529650.00opposite zero cross−169.25
2026-06-25short09:3530057.7512:2029819.25opposite zero cross238.50
2026-06-24short12:3529713.2515:5929514.00end of day 15:59199.25
2026-06-24long10:5529812.5012:3529713.25opposite zero cross−99.25
2026-06-23short13:5529756.7515:5929650.50end of day 15:59106.25
2026-06-23long12:2029865.2513:5529756.75opposite zero cross−108.50
2026-06-23short11:2029746.5012:2029865.25opposite zero cross−118.75
2026-06-23long10:0029926.5011:2029746.50opposite zero cross−180.00
2026-06-22short14:5530574.5015:5930654.25end of day 15:59−79.75
2026-06-22long14:1030630.7514:5530574.50opposite zero cross−56.25
2026-06-22short10:3530692.0014:1030630.75opposite zero cross61.25
2026-06-18long15:4030720.7515:5930692.75end of day 15:59−28.00
2026-06-18short15:1530652.2515:4030720.75opposite zero cross−68.50
2026-06-17short12:5530399.7515:5929994.75end of day 15:59405.00
2026-06-17long12:1030452.5012:5530399.75opposite zero cross−52.75
2026-06-17short10:4030425.0012:1030452.50opposite zero cross−27.50
2026-06-17long10:3030510.0010:4030425.00opposite zero cross−85.00
2026-06-17short10:0030346.0010:3030510.00opposite zero cross−164.00
2026-06-17long09:4530520.7510:0030346.00opposite zero cross−174.75
2026-06-17short09:4030409.0009:4530520.75opposite zero cross−111.75
2026-06-15short15:2530538.2515:5930567.50end of day 15:59−29.25
2026-06-12short15:3529604.0015:5929648.25end of day 15:59−44.25
2026-06-12long12:1529595.2515:3529604.00opposite zero cross8.75
2026-06-12short12:1029522.7512:1529595.25opposite zero cross−72.50
2026-06-12long10:5529598.2512:1029522.75opposite zero cross−75.50
2026-06-12short10:5029374.5010:5529598.25opposite zero cross−223.75
2026-06-12long10:3029512.2510:5029374.50opposite zero cross−137.75
2026-06-11long13:3029086.7515:5929456.75end of day 15:59370.00
2026-06-11short13:0528730.5013:3029086.75opposite zero cross−356.25
2026-06-11long12:0028858.5013:0528730.50opposite zero cross−128.00
2026-06-11short10:5528758.5012:0028858.50opposite zero cross−100.00
2026-06-11long10:0028899.5010:5528758.50opposite zero cross−141.00
2026-06-10short11:1528749.7515:5928526.00end of day 15:59223.75
2026-06-09long14:1028877.7515:5929115.25end of day 15:59237.50
2026-06-09short10:1029631.2514:1028877.75opposite zero cross753.50
2026-06-08short14:4029551.0015:5929453.00end of day 15:5998.00
2026-06-08long14:3529593.2514:4029551.00opposite zero cross−42.25
2026-06-08short13:0529517.7514:3529593.25opposite zero cross−75.50
2026-06-04long10:3030341.0015:5930485.50end of day 15:59144.50
2026-06-04short09:5530247.0010:3030341.00opposite zero cross−94.00
2026-06-03long14:0030643.2515:5930635.75end of day 15:59−7.50
2026-06-02long15:1530673.2515:5930707.25end of day 15:5934.00
2026-06-02short13:4030612.5015:1530673.25opposite zero cross−60.75
2026-06-02long10:0030603.0013:4030612.50opposite zero cross9.50
2026-06-01long11:0030437.0015:5930571.25end of day 15:59134.25

← NewerPage 5 of 26Older →

Questions and answers

What happens if you buy NQ every time the MACD line crosses above zero?

From 2024-10-08 to 2026-10-07 on the NQ 15-minute chart, the MACD zero-line cross strategy took 233 long trades, won 46.8% of them and made -78.50 points (-$1,570 on one NQ contract), before commission and slippage. From 2024-10-08 to 2026-10-07 on NQ, its long trades also made -908.50 points on 652 trades on the 5-minute chart, 1,952.00 points on 73 trades on the 1-hour chart and 3,888.75 points on 10 trades on the daily chart, before commission and slippage.

What happens if you short ES every time the MACD line crosses below zero?

From 2024-08-28 to 2026-08-27 on the ES 15-minute chart, the MACD zero-line cross strategy took 254 short trades, won 44.1% of them and made 442.75 points ($22,138 on one ES contract), before commission and slippage. From 2024-08-28 to 2026-08-27 on ES, its short trades also made 399.50 points on 643 trades on the 5-minute chart, 8.75 points on 85 trades on the 1-hour chart and -808.00 points on 9 trades on the daily chart, before commission and slippage.

Does the MACD zero-line cross strategy work on Nasdaq futures?

On NQ futures from 2024-10-08 to 2026-10-07, the MACD zero-line cross strategy on the 15-minute chart took 454 trades, won 43.8% of them and finished 696.00 points ($13,920 on one NQ contract), before commission and slippage.

What is the win rate of MACD zero-line cross on ES futures?

The MACD zero-line cross strategy won 44.7% of its 494 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 36.3% of 1,287 trades on the 5-minute chart, 51.3% of 160 trades on the 1-hour chart and 22.2% of 18 trades on the daily chart, before commission and slippage.

Is the MACD zero-line cross 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 MACD zero-line cross strategy made 671.00 points on 1,290 trades on the 5-minute chart, 696.00 points on 454 trades on the 15-minute chart, 2,908.75 points on 153 trades on the 1-hour chart and -579.00 points on 20 trades on the daily chart, before commission and slippage.

Is it better to only buy or only sell MACD zero-line cross signals on NQ?

On the NQ 15-minute chart from 2024-10-08 to 2026-10-07, the long trades made -78.50 points on 233 trades (46.8% won) and the short trades made 774.50 points on 221 trades (40.7% won), before commission and slippage.

How many trades does the MACD zero-line cross strategy take on NQ in two years?

The MACD zero-line cross strategy took 454 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 1,290 on the 5-minute chart, 153 on the 1-hour chart and 20 on the daily chart, before commission and slippage.

What is the max drawdown of the MACD zero-line cross strategy on NQ?

The MACD zero-line cross strategy had a max drawdown of 4,214.75 points ($84,295 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 3,798.50 points on the 5-minute chart, 1,656.75 points on the 1-hour chart and 5,759.75 points on the daily chart, before commission and slippage.

How does the MACD zero-line cross strategy do on ES compared with NQ?

On the ES 15-minute chart from 2024-08-28 to 2026-08-27, the MACD zero-line cross strategy took 494 trades, won 44.7% of them and made 199.00 points ($9,950 on one ES contract), before commission and slippage. On the NQ 15-minute chart from 2024-10-08 to 2026-10-07, the MACD zero-line cross strategy took 454 trades, won 43.8% of them and made 696.00 points ($13,920 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?