Join waitlist
Strategies / Trend / Pullback to EMA With ADX

Pullback to EMA With ADX

Buys a pullback to EMA(21) above EMA(200) when RSI(14) is between 38 and 55, above its last 3 values, and ADX(14) is above 20. Exits at a 1% target or a 2% stop from the entry.

TrendLong onlyIntradaySilver15 min
n/aProfit factor
4,978Net profit USD
68.88%Win rate
286Trades
-4,491Max drawdown
17.41Avg trade

Best run of 18. Silver, 15 min, spread 2, from run sweeps:2026-10-12-SILVER-15m-opt.tsv:4.

Entry rules, long

  1. RSI(14) is above 38 and below 55, and above each of its previous 3 values.
  2. ADX(14) is above 20.
  3. ATR(14) is at least 0.25% of price, and the close is at least 0.3% away from the midpoint of the 20-bar high and low range.
  4. Only one position is open at a time.

Exit rules

  1. The position closes at a 1% profit target from the fill.

Test conditions

PeriodUp to 2026-10-12
InstrumentSilver, 15 minutes
Spread2 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
SilverBest run15 minn/a 28668.884,978 USD-4,491
USD/JPY30 minn/a 1090.0079,890 USD-27,700
USD/JPY15 minn/a 3100.0034,170 USD-21,350
EUR/USD1 hourn/a 4374.4210,180 USD-9,898
SilverDailyn/a 14464.581,290 USD-1,253
DAX 40Dailyn/a 12060.831,228 EUR-1,086
EUR/USD15 minn/a 1100.001,131 USD-470
FTSE 10030 minn/a 5078.001,040 EUR-411
S&P 5004 hoursn/a 15671.15752 EUR-430
Nikkei 2251 minn/a 1100.00615 USD-237
Dow Jones2 minn/a 1100.00463 EUR-411
S&P 50030 minn/a 5771.93400 EUR-356
GBP/USD15 minn/a 3100.00358 USD-96.00
GBP/USD30 minn/a 3100.00347 USD-54.30
Nasdaq 1002 minn/a 1100.00242 EUR-159
FTSE 1002 minn/a 1100.0099.00 EUR-57.30
Gold2 minn/a 2100.0094.80 EUR-29.30
Gold1 minn/a 2100.0088.10 EUR-47.20

Charts

Results by run

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

Net profitMax drawdown

The code

ProBuilder code, as tested

// ==============================================================
// Pullback to EMA With ADX
// ProRealAlgos Strategy Library  |  prorealalgos.com
// Type: Trend
// Direction: Long only
// Timeframe tested: 15 minutes
// ==============================================================

DEFPARAM CumulateOrders = false

ONCE dx = 0

emalong = ExponentialAverage[200](close)
emashort = ExponentialAverage[21](close)
myRsi = RSI[14](close)
myAtr = AverageTrueRange[14](close)
hh = highest[20](high)
ll = lowest[20](low)
mid = (hh + ll) / 2

pdm = max(high - high[1], 0)
mdm = max(low[1] - low, 0)
myTr = max(high - low, max(abs(high - close[1]), abs(low - close[1])))
rp = WilderAverage[14](pdm)
rm = WilderAverage[14](mdm)

20 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

EMARSIADXATR
Read this firstKnown weaknesses2 points
  • No profit factor is available, because only sweep results exist for this strategy.
  • The maximum drawdown of 4,490 USD is large next to the net profit of 4,978 USD.

Questions

About this strategy

Can I run Pullback to EMA With ADX 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 18 market and timeframe combinations. The best run by trade count was Silver, 15 minutes, with 286 trades.

How large was the drawdown?

The best run had a maximum drawdown of 4,490 USD at the tested position size, against a net result of 4,978 USD.

Does it trade long, short or both?

It only takes long trades.

Related

Strategies like this one

Trend Surfer

Uses the same indicator.

1.04 PF · 10,813 trades

SMA Crossover With RSI Exit

Best run on the same market, Silver.

2.13 PF · 8,999 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.

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