Join waitlist
Strategies / Trend / EMA Pullback Continuation ATR Bracket

EMA Pullback Continuation ATR Bracket

The strategy buys when the close pulls back to the 50-period EMA and crosses above it in an uptrend. It sells short on the mirrored setup, with ATR-based stops and targets.

TrendLong & shortSwingSilver4 hours
5.72Profit factor
390,444Net profit USD
15.51%Win rate
877Trades
-24,640Max drawdown
445Avg trade

Best run of 13. Silver, 4 hours, spread 2, from run pf:2026-10-10-SILVER-4h.tsv:1.

Entry rules, long

  1. The 50-period EMA is above the 200-period EMA, and the close is above the 200-period EMA

Entry rules, short

  1. The 50-period EMA is below the 200-period EMA, and the close is below the 200-period EMA

Exit rules

  1. The target is 5.0 times the 14-period ATR from the fill price
  2. A same-direction signal while in a trade resets the stop and target to the new signal levels

Test conditions

PeriodUp to 2026-10-10
InstrumentSilver, 4 hours
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-10

Every run

Markets and timeframes tested

MarketTimeframePFTradesWin %NetMax DD
SilverBest run4 hours5.72 87715.51390,444 USD-24,640
S&P 500Daily1.49 42522.822,638 EUR-574
Silver1 hourn/a 3,45415.63139,882 USD-42,066
USD/JPYDailyn/a 50320.0830,930 USD-15,960
Nikkei 225Dailyn/a 26426.5224,238 USD-10,383
Dow JonesDailyn/a 35324.6512,265 EUR-8,820
US Crude OilDailyn/a 29526.108,583 EUR-5,824
Nasdaq 100Dailyn/a 32220.197,741 EUR-5,049
Dow Jones4 hoursn/a 27521.827,220 EUR-4,290
Nasdaq 1004 hoursn/a 85419.566,878 EUR-4,941
S&P 5004 hoursn/a 88721.201,111 EUR-841
Gold4 hoursn/a 83519.521,001 EUR-515
GoldDailyn/a 35725.49662 EUR-576

Charts

Results by run

Top 10 of 13 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 Pullback Continuation ATR Bracket
// ProRealAlgos Strategy Library  |  prorealalgos.com
// Type: Trend
// Direction: Long & short
// Timeframe tested: 4 hours
// ==============================================================

DEFPARAM CumulateOrders = false

emaf = ExponentialAverage[50](close)
emas = ExponentialAverage[200](close)
myAtr = AverageTrueRange[14](close)

27 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

EMAATR
Longer historyRe-run on up to 1,000,000 barsS&P 500 · Daily · older data 63.40 EUR

S&P 500 had no history beyond the standard run, so both runs used 14,000 bars.

S&P 500 · Daily

Bars available14,000
Net, standard 200,000-bar run2,637.68 EUR
Net, long run2,701.08 EUR
Net on the older data alone63.40 EUR
Read this firstKnown weaknesses2 points
  • Results include the spread only. Commissions and overnight financing are not included.
  • The code is published as it was backtested and has not been compiled again since.

Questions

About this strategy

Can I run EMA Pullback Continuation ATR Bracket 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 13 market and timeframe combinations. The best run was Silver, 4 hours, with a profit factor of 5.72 over 877 trades.

How large was the drawdown?

The best run had a maximum drawdown of 24,640 USD at the tested position size, against a net result of 390,444 USD.

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

SMA Crossover With RSI Exit

Best run on the same market, Silver.

2.13 PF · 8,999 trades

Reversal Pattern With Directional Trend Index

Also a trend strategy.

5.88 PF · 1,144 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