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

ES daily: the equity line

Triple EMA stack 4 / 9 / 18, ES daily, 2024-08-28 to 2026-08-27. Cumulative points after each trade; low −937.75, high 260.50, last −937.75.

Long and short

SideTradesNet pts
Long23469.25
Short17−1,407.00

By month

MonthTradesNet pts
2024-092−18.50
2024-101−43.00
2024-113−180.25
2024-122−146.00
2025-011−25.00
2025-023125.75
2025-031186.25
2025-042182.25
2025-061179.00
2025-082−63.75
2025-09159.75
2025-102−12.75
2025-112−195.75
2025-123−188.50
2026-013−213.00
2026-023−384.50
2026-031222.00
2026-041510.00
2026-063−571.00
2026-072−257.75
2026-081−103.00
Every trade, ES daily40 trades

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

All trades (40), newest first

Times are New York time; points are gross.

Session dateSideEntry (ET)Entry priceExit (ET)Exit priceExit reasonPoints
2026-08-05long2026-08-04 18:007772.002026-08-20 18:007669.00stack broken−103.00
2026-07-24short2026-07-23 18:007450.502026-08-03 18:007631.00stack broken−180.50
2026-07-06long2026-07-05 18:007562.252026-07-19 18:007485.00stack broken−77.25
2026-06-24short2026-06-23 18:007449.252026-06-30 18:007543.25stack broken−94.00
2026-06-16long2026-06-15 18:007626.502026-06-23 18:007449.25stack broken and reversed−177.25
2026-06-11short2026-06-10 18:007259.252026-06-15 16:597559.00stack broken and reversed−299.75
2026-04-10long2026-04-09 18:006858.002026-06-07 18:007368.00stack broken510.00
2026-03-02short2026-03-01 18:006820.002026-04-06 18:006650.50stack broken222.00
2026-02-13short2026-02-12 18:006865.502026-02-25 18:006965.00stack broken−99.50
2026-02-12long2026-02-11 18:006964.502026-02-12 18:006865.50stack broken and reversed−99.00
2026-02-06short2026-02-05 18:006785.502026-02-10 18:006971.50stack broken−186.00
2026-01-27long2026-01-26 18:006977.002026-02-03 18:006934.00stack broken−43.00
2026-01-21short2026-01-20 18:006839.002026-01-26 18:006977.00stack broken and reversed−138.00
2026-01-06long2026-01-05 18:006945.502026-01-19 18:006913.50stack broken−32.00
2025-12-23long2025-12-22 18:006930.752026-01-04 18:006911.50stack broken−19.25
2025-12-18short2025-12-17 18:006792.002025-12-22 18:006930.75stack broken and reversed−138.75
2025-12-01long2025-11-30 18:006854.752025-12-15 16:596824.25stack broken−30.50
2025-11-18short2025-11-17 18:006696.502025-11-25 18:006781.00stack broken−84.50
2025-11-12long2025-11-11 18:006874.002025-11-13 18:006762.75stack broken−111.25
2025-10-21long2025-10-20 18:006779.502025-11-05 18:006828.50stack broken49.00
2025-10-17short2025-10-16 18:006659.252025-10-19 18:006721.00stack broken−61.75
2025-09-05long2025-09-04 18:006515.752025-10-12 18:006632.00stack broken59.75
2025-08-25long2025-08-24 18:006493.002025-09-03 18:006460.00stack broken−33.00
2025-08-11long2025-08-10 18:006422.752025-08-21 18:006392.00stack broken−30.75
2025-06-24long2025-06-23 18:006078.002025-08-03 18:006257.00stack broken179.00
2025-04-30long2025-04-29 18:005579.502025-06-18 18:006038.25stack broken403.25
2025-04-17short2025-04-16 18:005308.002025-04-24 18:005529.00stack broken−221.00
2025-03-31short2025-03-30 18:005590.002025-04-15 18:005403.75stack broken186.25
2025-02-25short2025-02-24 18:006006.502025-03-24 18:005813.00stack broken244.75
2025-02-11long2025-02-10 18:006085.502025-02-23 18:006040.75stack broken−44.75
2025-02-06long2025-02-05 18:006090.252025-02-09 18:006016.00stack broken−74.25
2025-01-22long2025-01-21 18:006094.002025-02-03 18:006069.00stack broken−25.00
2024-12-30short2024-12-29 18:006028.752025-01-19 18:006032.25stack broken−3.50
2024-12-19short2024-12-18 18:005949.502024-12-26 18:006092.00stack broken−142.50
2024-11-22long2024-11-21 18:005967.002024-12-17 18:006126.75stack broken86.00
2024-11-07long2024-11-06 18:005963.502024-11-18 18:005919.00stack broken−44.50
2024-11-04short2024-11-03 18:005741.752024-11-06 18:005963.50stack broken and reversed−221.75
2024-10-30long2024-10-29 18:005883.002024-10-30 18:005840.00stack broken−43.00
2024-09-16long2024-09-15 18:005622.752024-10-24 18:005853.25stack broken170.00
2024-09-09short2024-09-08 18:005410.002024-09-12 18:005598.50stack broken−188.50

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?