Join waitlist
Strategies / Trend / EMA Range Filter With ADXR

EMA Range Filter With ADXR

The strategy buys at market when a two-bar level sits below the prior close and ADXR is below 13. It sells short on the mirror condition with ADXR above 45, and closes when the two states disagree.

TrendLong & shortSwingDow JonesDaily
n/aProfit factor
16,210Net profit EUR
47.06%Win rate
1,532Trades
-8,408Max drawdown
10.58Avg trade

Best run of 1. Dow Jones, Daily, spread 3, from run sweeps:2026-10-12-DOW30-D-opt.tsv:74.

Entry rules, long

  1. The level is the 2-bar low if that low is above the 14-period EMA or the 2-bar high is below it, else the 2-bar high.
  2. The ADXR state (average of ADX(14) now and 14 bars ago) turns bullish below 13 and bearish above 45.
  3. A long opens at market when both states are bullish and no long position is open.

Entry rules, short

  1. The level is the 2-bar low if that low is above the 14-period EMA or the 2-bar high is below it, else the 2-bar high.
  2. The ADXR state turns bearish when ADXR is above 45.
  3. A short opens at market when both states are bearish and no short position is open.

Exit rules

  1. An open short closes at market when the two states are no longer both bearish.

Test conditions

PeriodUp to 2026-10-12
InstrumentDow Jones, Daily
Spread3 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-12

Every run

Markets and timeframes tested

MarketTimeframePFTradesWin %NetMax DD
Dow JonesBest runDailyn/a 1,53247.0616,210 EUR-8,408

Charts

Results by run

Net profitMax drawdown

The code

ProBuilder code, as tested

// ==============================================================
// EMA Range Filter With ADXR
// ProRealAlgos Strategy Library  |  prorealalgos.com
// Type: Trend
// Direction: Long & short
// Timeframe tested: Daily
// ==============================================================

DEFPARAM CumulateOrders = false

ONCE posema = 0
ONCE posadxr = 0

xa = ExponentialAverage[14](close)
nhh = max(high, high[1])
nll = min(low, low[1])

41 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

ADXEMA
Read this firstKnown weaknesses4 points
  • No profit factor is available, because only sweep results exist for this strategy.
  • The maximum drawdown of 8,408 EUR is large next to the net profit of 16,210 EUR.
  • It was only tested on Dow Jones, so there is no evidence from other markets.
  • The code sets no stop loss, so a losing trade stays open until an exit signal arrives.

Questions

About this strategy

Can I run EMA Range Filter With ADXR 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 one combination, Dow Jones, Daily, with 1,532 trades.

How large was the drawdown?

The best run had a maximum drawdown of 8,408 EUR at the tested position size, against a net result of 16,210 EUR.

Does it trade long, short or both?

It trades both long and short.

Related

Strategies like this one

Reversal Pattern With Chaikin Volatility

Uses the same indicator.

2.26 PF · 6,872 trades

Turtle Trade

Best run on the same market, Dow Jones.

2.42 PF · 6,324 trades

ADX Filtered EMA Cross

Also a trend strategy.

1.15 PF · 607 trades

Want strategies that are already part of a live portfolio? Join the ProRealAlgos waitlist.

Copy trading on US indices is available to ProRealAlgos members as spots open.

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