Join waitlist
Strategies / Trend / EMA Crossover ADX Gated Exit

EMA Crossover ADX Gated Exit

Buys when the 15-period EMA crosses above the 30-period EMA. Closes the long when the 15-period EMA crosses below the 60-period EMA while the 14-period ADX is above 20.

TrendLong onlySwingNikkei 2254 hours
2.48Profit factor
54,728Net profit USD
55.00%Win rate
140Trades
-10,653Max drawdown
391Avg trade

Best run of 53. Nikkei 225, 4 hours, spread 10, from run pf:2026-10-04-NIKKEI-4h.tsv:2.

Entry rules, long

Exit rules

  1. The 15-period EMA crosses under the 60-period EMA while the 14-period ADX is above 20

Test conditions

PeriodUp to 2026-10-04
InstrumentNikkei 225, 4 hours
Spread10 points
Starting capital1,000,000
CostsSpread only. Commissions and overnight financing are not included.
BarsUp to 200,000 bars, fewer where the instrument has less history
Last tested2026-10-04

Every run

Markets and timeframes tested

MarketTimeframePFTradesWin %NetMax DD
Nikkei 225Best run4 hours2.48 14055.0054,728 USD-10,653
S&P 5004 hours1.86 22046.364,654 EUR-947
Nasdaq 10030 min1.40 1,03845.7624,326 EUR-3,190
DAX 4030 min1.31 1,02043.7321,727 EUR-4,497
S&P 50030 min1.28 1,02244.724,207 EUR-1,031
USD/JPY30 minn/a 97344.81766,680 USD-231,060
USD/JPY10 minn/a 88546.21490,480 USD-196,740
USD/JPY4 hoursn/a 21840.83484,370 USD-393,480
USD/JPY15 minn/a 92641.36373,290 USD-233,640
EUR/USD2 minn/a 84634.75147,387 USD-76,464
Nikkei 225Dailyn/a 5347.1762,312 USD-14,847
Dow JonesDailyn/a 7252.7834,871 EUR-8,975
Nikkei 2251 hourn/a 53443.0732,227 USD-12,882
Nikkei 2253 minn/a 96143.7031,437 USD-10,344
Nikkei 22530 minn/a 1,00243.4127,595 USD-11,347
Dow Jones4 hoursn/a 6756.7225,735 EUR-5,521
Nasdaq 100Dailyn/a 4971.4325,485 EUR-5,552
Dow Jones30 minn/a 44445.5024,786 EUR-8,028
Nikkei 2252 minn/a 87044.8324,465 USD-11,708
Nikkei 2255 minn/a 97943.1122,057 USD-15,821
DAX 40Dailyn/a 4860.4221,335 EUR-5,834
Nikkei 22510 minn/a 98942.5720,374 USD-15,202
Nikkei 22515 minn/a 1,01441.7220,281 USD-13,941
Nasdaq 10015 minn/a 1,13543.1718,929 EUR-5,727
DAX 404 hoursn/a 20244.5517,349 EUR-4,516
Nasdaq 1004 hoursn/a 22547.5617,061 EUR-5,932
Dow Jones15 minn/a 86542.7716,194 EUR-11,284
DAX 401 hourn/a 63645.9115,640 EUR-4,669
Nikkei 2251 minn/a 85941.2114,609 USD-12,924
Dow Jones10 minn/a 1,02541.0713,707 EUR-9,574
Nasdaq 1005 minn/a 98643.3113,587 EUR-5,304
Nasdaq 10010 minn/a 1,07442.6413,117 EUR-5,724
US Crude OilDailyn/a 5554.5511,703 EUR-6,819
Nasdaq 1001 hourn/a 71145.1511,533 EUR-6,996
Brent CrudeDailyn/a 2568.0011,361 EUR-6,133
Dow Jones5 minn/a 95739.929,405 EUR-6,494
DAX 4015 minn/a 1,02441.709,387 EUR-6,345
Nasdaq 1003 minn/a 94041.709,091 EUR-4,921
DAX 4010 minn/a 96442.126,915 EUR-4,442
DAX 405 minn/a 93142.006,356 EUR-4,425
S&P 500Dailyn/a 7754.555,496 EUR-1,191
Nasdaq 1001 minn/a 87643.045,272 EUR-2,047
Nasdaq 1002 minn/a 91244.525,034 EUR-3,776
FTSE 1004 hoursn/a 16148.454,364 EUR-2,863
GoldDailyn/a 6450.003,328 EUR-1,131
S&P 50015 minn/a 1,08744.073,110 EUR-1,279
Gold1 hourn/a 62443.272,910 EUR-1,177
Gold10 minn/a 95140.802,147 EUR-727
S&P 5001 hourn/a 69147.471,956 EUR-1,542
Gold30 minn/a 90242.351,932 EUR-1,464
S&P 50010 minn/a 1,06139.871,828 EUR-1,464
S&P 5005 minn/a 96342.471,635 EUR-1,483
Gold5 minn/a 93341.591,395 EUR-1,301

Charts

Results by run

Top 10 of 53 runs. The full list is in the table above.

Above 1.0 made money, below 1.0 lost money.

The code

ProBuilder code, as tested

// ==============================================================
// EMA Crossover ADX Gated Exit
// ProRealAlgos Strategy Library  |  prorealalgos.com
// Type: Trend
// Direction: Long only
// Timeframe tested: 4 hours
// ==============================================================

DEFPARAM CumulateOrders = false

mafast = ExponentialAverage[15](close)
mamid = ExponentialAverage[30](close)
maslow = ExponentialAverage[60](close)
myAdx = ADX[14]

13 more lines: the entry and exit rules.

Setup

How to load it

  1. Copy the code with the copy button on the code block.
  2. In ProRealTime, open a chart of the instrument and timeframe you want to test, then open ProOrder > New trading system and choose "Create with programming".
  3. Paste the code, give the system a name and save it.
  4. Click "Backtest", set your own spread and position size, and run it before you consider trading it live.

Indicators used

EMAADX
Longer historyRe-run on up to 1,000,000 barsNikkei 225 · 4 hours · older data 383.70 USD

Nikkei 225 had no history beyond the standard run, so both runs used 22,000 bars.

Nikkei 225 · 4 hours

Bars available22,000
Net, standard 200,000-bar run54,728.00 USD
Net, long run55,111.70 USD
Net on the older data alone383.70 USD
Read this firstKnown weaknesses2 points
  • The code sets no stop loss, so a losing trade stays open until an exit signal arrives.
  • Results include the spread only. Commissions and overnight financing are not included.

Questions

About this strategy

Can I run EMA Crossover ADX Gated Exit in ProOrder?

Yes. The code is ProBuilder and runs as an automated ProOrder system. Backtest it on your own account with your own spread and position size before trading it live.

Which markets was it tested on?

It was tested on 53 market and timeframe combinations. The best run was Nikkei 225, 4 hours, with a profit factor of 2.48 over 140 trades.

How large was the drawdown?

The best run had a maximum drawdown of 10,653 USD at the tested position size, against a net result of 54,728 USD.

Does it trade long, short or both?

It only takes long trades.

Related

Strategies like this one

Reversal Pattern With Chaikin Volatility

Uses the same indicator.

2.26 PF · 6,872 trades

Rock Climber

Best run on the same market, Nikkei 225.

1.44 PF · 1,644 trades

SuperTrend Uptrend StochRSI Pullback

Also a trend strategy.

2.47 PF · 234 trades

Get the full rules, the complete code and the ProRealAlgos portfolio as a member.

The ProRealAlgos community gets the full rules, the complete code and the automated portfolio.

Past backtest results do not guarantee future results. This is not financial advice. Curated and maintained by ProRealAlgos. ProRealTime™ is a trademark of ProRealTime SAS. prorealalgos.comStatsDocs