Strategy library · Moving averages

Triple EMA stack (4/9/18) backtest on NQ and ES futures

Triple EMA stack 4 / 9 / 18

Also called: 4 9 18 EMA strategy, buy when the 4 EMA moves above the 9 EMA, which is above the 18 EMA, for the first time, short when the 4 EMA moves below the 9 EMA, which is below the 18 EMA, for the first time

What happens if you buy NQ every time the 4 EMA moves above the 9 EMA, which is above the 18 EMA, for the first time?

What it is

Three exponential moving averages (EMAs) of 4, 9 and 18 periods are stacked in order when they run in one direction. This strategy goes long on the first bar with EMA 4 above EMA 9 above EMA 18, short on the first bar with the reverse order, and exits when the stack breaks.

What it did

On NQ futures from 2024-10-08 to 2026-10-07, the triple EMA stack (4/9/18) strategy took 909 trades on the 15-minute chart, won 38.9% of them and finished -457.00 points (-$9,140 on one NQ contract), before commission and slippage. From 2024-10-08 to 2026-10-07 on NQ, the 456 long trades on the 15-minute chart won 41.7% and made 1,482.25 points ($29,645 on one NQ contract), before commission and slippage. On ES futures from 2024-08-28 to 2026-08-27, the triple EMA stack (4/9/18) strategy took 958 trades on the 15-minute chart, won 38.6% of them and finished -357.75 points (-$17,887 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 triple EMA stack (4/9/18) 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 on the first bar with EMA 4 > 9 > 18; short on the first bar with 4 < 9 < 18. Exit: When the stack breaks.

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 minute291534.4%0.231.010678.00$13,5603,709.00283235.0%0.281.058790.50$39,525620.25
5 minute · longs only151237.2%——1,931.50$38,6302,220.25145036.3%——608.50$30,425321.75
5 minute · shorts only140331.3%——−1,253.50−$25,0703,275.75138233.6%——182.00$9,100459.25
15 minute90938.9%−0.500.987−457.00−$9,1404,603.2595838.6%−0.370.955−357.75−$17,887790.50
15 minute · longs only45641.7%——1,482.25$29,6451,553.2547738.8%——−226.50−$11,325562.25
15 minute · shorts only45336.2%——−1,939.25−$38,7853,786.0048138.5%——−131.25−$6,562718.00
1 hour32045.0%3.721.0771,190.75$23,8153,370.5034248.3%−0.100.991−33.25−$1,662536.25
1 hour · longs only16345.4%——567.00$11,3402,417.0016147.8%——−112.00−$5,600314.50
1 hour · shorts only15744.6%——623.75$12,4751,699.7518148.6%——78.75$3,938353.25
Daily4124.4%−121.550.665−4,983.50−$99,6707,340.754025.0%−23.440.692−937.75−$46,8871,198.25
Daily · longs only2231.8%——1,750.25$35,0053,047.252330.4%——469.25$23,463357.50
Daily · shorts only1915.8%——−6,733.75−$134,6757,112.751717.7%——−1,407.00−$70,3501,407.00

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

NQ daily: the equity line

Triple EMA stack 4 / 9 / 18, NQ daily, 2024-10-08 to 2026-10-07. Cumulative points after each trade; low −5,607.25, high 1,733.50, last −4,983.50.

Long and short

SideTradesNet pts
Long221,750.25
Short19−6,733.75

By month

MonthTradesNet pts
2024-113−1,022.25
2024-121−659.25
2025-012−581.25
2025-0221,021.75
2025-031417.25
2025-0421,016.25
2025-061771.00
2025-082−476.75
2025-092364.50
2025-101249.00
2025-111−170.75
2025-123−1,061.25
2026-014−1,700.50
2026-021−326.50
2026-032284.75
2026-0413,607.50
2026-063−3,743.25
2026-073−1,657.00
2026-081−187.25
2026-095−1,129.50
Every trade, NQ daily41 trades

Daily results show the table and the equity line; there is no chart viewer for them yet.

All trades (41), newest first

Times are New York time; points are gross.

Session dateSideEntry (ET)Entry priceExit (ET)Exit priceExit reasonPoints
2026-09-22long2026-09-21 18:0030780.002026-10-07 16:5931403.75window end623.75
2026-09-11short2026-09-10 18:0029141.002026-09-20 18:0029938.00stack broken−502.25
2026-09-08long2026-09-07 18:0029611.502026-09-10 18:0029141.00stack broken and reversed−470.50
2026-09-02short2026-09-01 18:0029136.502026-09-06 18:0029535.25stack broken−398.75
2026-09-01long2026-08-31 18:0029518.252026-09-01 18:0029136.50stack broken and reversed−381.75
2026-08-07long2026-08-06 18:0029514.252026-08-20 18:0029327.00stack broken−187.25
2026-07-14short2026-07-13 18:0029446.002026-08-04 18:0029777.25stack broken−331.25
2026-07-03short2026-07-02 18:0029566.002026-07-12 18:0029952.00stack broken−386.00
2026-07-01long2026-06-30 18:0030505.752026-07-02 18:0029566.00stack broken and reversed−939.75
2026-06-29short2026-06-28 18:0029282.502026-06-30 18:0030505.75stack broken and reversed−1,223.25
2026-06-16long2026-06-15 18:0030838.002026-06-23 18:0029770.00stack broken−1,068.00
2026-06-11short2026-06-10 18:0028455.002026-06-14 18:0029907.00stack broken−1,452.00
2026-04-10long2026-04-09 18:0025237.002026-06-07 18:0028844.50stack broken3,607.50
2026-03-09short2026-03-08 18:0024435.252026-04-06 18:0024348.75stack broken301.75
2026-03-03short2026-03-02 18:0025002.752026-03-05 18:0025019.75stack broken−17.00
2026-02-05short2026-02-04 18:0025061.752026-02-25 18:0025388.25stack broken−326.50
2026-01-28long2026-01-27 18:0026111.252026-02-03 18:0025387.50stack broken−723.75
2026-01-20short2026-01-19 18:0025394.752026-01-26 18:0025861.25stack broken−466.50
2026-01-07long2026-01-06 18:0025831.252026-01-15 18:0025720.50stack broken−110.75
2026-01-05short2026-01-04 18:0025431.752026-01-06 18:0025831.25stack broken and reversed−399.50
2025-12-26long2025-12-25 18:0025868.002026-01-01 18:0025478.50stack broken−389.50
2025-12-17short2025-12-16 18:0025332.002025-12-23 18:0025815.75stack broken−483.75
2025-12-02long2025-12-01 18:0025411.502025-12-14 18:0025223.50stack broken−188.00
2025-11-17short2025-11-16 18:0025142.252025-11-26 18:0025313.00stack broken−170.75
2025-10-20long2025-10-19 18:0025065.752025-11-06 18:0025314.75stack broken249.00
2025-09-05long2025-09-04 18:0023700.002025-10-12 18:0024542.00stack broken607.75
2025-09-04short2025-09-03 18:0023456.752025-09-04 18:0023700.00stack broken and reversed−243.25
2025-08-29long2025-08-28 18:0023760.502025-08-31 18:0023479.00stack broken−281.50
2025-08-08long2025-08-07 18:0023518.252025-08-20 18:0023323.00stack broken−195.25
2025-06-24long2025-06-23 18:0022079.002025-08-03 18:0022850.00stack broken771.00
2025-04-29long2025-04-28 18:0019478.252025-06-19 18:0021748.25stack broken2,030.00
2025-04-17short2025-04-16 18:0018391.252025-04-24 18:0019405.00stack broken−1,013.75
2025-03-31short2025-03-30 18:0019319.752025-04-14 18:0018902.50stack broken417.25
2025-02-26short2025-02-25 18:0021230.502025-03-24 18:0020353.00stack broken1,085.50
2025-02-06long2025-02-05 18:0021764.502025-02-23 18:0021700.75stack broken−63.75
2025-01-22long2025-01-21 18:0021809.252025-01-28 18:0021559.00stack broken−250.25
2025-01-02short2025-01-01 18:0021269.002025-01-19 18:0021600.00stack broken−331.00
2024-12-26long2024-12-25 18:0022049.502024-12-30 18:0021390.25stack broken−659.25
2024-11-25long2024-11-24 18:0020935.002024-12-19 18:0021429.25stack broken190.00
2024-11-07long2024-11-06 18:0020923.502024-11-17 18:0020504.00stack broken−419.50
2024-11-05short2024-11-04 18:0020130.752024-11-06 18:0020923.50stack broken and reversed−792.75

Page 1 of 1

Questions and answers

What happens if you buy NQ every time the 4 EMA moves above the 9 EMA, which is above the 18 EMA, for the first time?

From 2024-10-08 to 2026-10-07 on the NQ 15-minute chart, the triple EMA stack (4/9/18) strategy took 456 long trades, won 41.7% of them and made 1,482.25 points ($29,645 on one NQ contract), before commission and slippage. From 2024-10-08 to 2026-10-07 on NQ, its long trades also made 1,931.50 points on 1,512 trades on the 5-minute chart, 567.00 points on 163 trades on the 1-hour chart and 1,750.25 points on 22 trades on the daily chart, before commission and slippage.

What happens if you short ES every time the 4 EMA moves below the 9 EMA, which is below the 18 EMA, for the first time?

From 2024-08-28 to 2026-08-27 on the ES 15-minute chart, the triple EMA stack (4/9/18) strategy took 481 short trades, won 38.5% of them and made -131.25 points (-$6,562 on one ES contract), before commission and slippage. From 2024-08-28 to 2026-08-27 on ES, its short trades also made 182.00 points on 1,382 trades on the 5-minute chart, 78.75 points on 181 trades on the 1-hour chart and -1,407.00 points on 17 trades on the daily chart, before commission and slippage.

Does the triple EMA stack (4/9/18) strategy work on Nasdaq futures?

On NQ futures from 2024-10-08 to 2026-10-07, the triple EMA stack (4/9/18) strategy on the 15-minute chart took 909 trades, won 38.9% of them and finished -457.00 points (-$9,140 on one NQ contract), before commission and slippage.

What is the win rate of Triple EMA stack 4 / 9 / 18 on ES futures?

The triple EMA stack (4/9/18) strategy won 38.6% of its 958 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 35.0% of 2,832 trades on the 5-minute chart, 48.3% of 342 trades on the 1-hour chart and 25.0% of 40 trades on the daily chart, before commission and slippage.

Is the triple EMA stack (4/9/18) 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 triple EMA stack (4/9/18) strategy made 678.00 points on 2,915 trades on the 5-minute chart, -457.00 points on 909 trades on the 15-minute chart, 1,190.75 points on 320 trades on the 1-hour chart and -4,983.50 points on 41 trades on the daily chart, before commission and slippage.

Is it better to only buy or only sell triple EMA stack (4/9/18) signals on NQ?

On the NQ 15-minute chart from 2024-10-08 to 2026-10-07, the long trades made 1,482.25 points on 456 trades (41.7% won) and the short trades made -1,939.25 points on 453 trades (36.2% won), before commission and slippage.

How many trades does the triple EMA stack (4/9/18) strategy take on NQ in two years?

The triple EMA stack (4/9/18) strategy took 909 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 2,915 on the 5-minute chart, 320 on the 1-hour chart and 41 on the daily chart, before commission and slippage.

What is the max drawdown of the triple EMA stack (4/9/18) strategy on NQ?

The triple EMA stack (4/9/18) strategy had a max drawdown of 4,603.25 points ($92,065 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,709.00 points on the 5-minute chart, 3,370.50 points on the 1-hour chart and 7,340.75 points on the daily chart, before commission and slippage.

How does the triple EMA stack (4/9/18) strategy do on ES compared with NQ?

On the ES 15-minute chart from 2024-08-28 to 2026-08-27, the triple EMA stack (4/9/18) strategy took 958 trades, won 38.6% of them and made -357.75 points (-$17,887 on one ES contract), before commission and slippage. On the NQ 15-minute chart from 2024-10-08 to 2026-10-07, the triple EMA stack (4/9/18) strategy took 909 trades, won 38.9% of them and made -457.00 points (-$9,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?