Join waitlist
Strategies / Trend / Open Based EMA Reversal Bracket

Open Based EMA Reversal Bracket

The strategy buys when the 9-period EMA of the open crosses above the 21-period EMA of the open with short-term confirmation. It sells short on the mirror crossover, and each trade uses ATR-based stops and targets.

TrendLong & shortSwingGold4 hours
n/aProfit factor
1,727Net profit EUR
32.62%Win rate
1,217Trades
-731Max drawdown
1.42Avg trade

Best run of 5. Gold, 4 hours, spread 0.6, from run sweeps:2026-10-12-GOLD-4h-opt.tsv:64.

Entry rules, long

  1. The 1-period EMA of the open is above the 4-period EMA of the open
  2. The 9-period EMA of the open is below the 5-period EMA of the open
  3. The position state is not already long, which resets after an exit or stop

Entry rules, short

  1. The 1-period EMA of the open is below the 4-period EMA of the open
  2. The 9-period EMA of the open is above the 5-period EMA of the open
  3. The position state is not already short, which resets after an exit or stop

Exit rules

  1. The target is the signal bar high plus 6 times the 5-period ATR, measured from the fill price
  2. A long is closed when the 9-period EMA of the open crosses above the 5-period EMA of the open
  3. A short is closed when the 5-period EMA of the open crosses above the 9-period EMA of the open
  4. An opposite signal reverses the position

Test conditions

PeriodUp to 2026-10-12
InstrumentGold, 4 hours
Spread0.6 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
GoldBest run4 hoursn/a 1,21732.621,727 EUR-731
Nikkei 225Dailyn/a 42636.1525,374 USD-11,455
US Crude OilDailyn/a 46036.308,372 EUR-6,225
Dow Jones4 hoursn/a 40932.527,433 EUR-7,346
Nasdaq 100Dailyn/a 44829.916,844 EUR-5,079

Charts

Results by run

Net profitMax drawdown

The code

ProBuilder code, as tested

// ==============================================================
// Open Based EMA Reversal Bracket
// ProRealAlgos Strategy Library  |  prorealalgos.com
// Type: Trend
// Direction: Long & short
// Timeframe tested: 4 hours
// ==============================================================

DEFPARAM CumulateOrders = false

ONCE pos = 0
ONCE sllong = 0
ONCE slshort = 0

fastema = ExponentialAverage[9](open)
slowema = ExponentialAverage[21](open)
exitema = ExponentialAverage[5](open)
confa = ExponentialAverage[1](open)
confb = ExponentialAverage[4](open)
myAtr = AverageTrueRange[5](close)

58 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
Read this firstKnown weaknesses2 points
  • No profit factor is available, because only sweep results exist for this strategy.
  • Results include the spread only. Commissions and overnight financing are not included.

Questions

About this strategy

Can I run Open Based EMA Reversal 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 5 market and timeframe combinations. The best run by trade count was Gold, 4 hours, with 1,217 trades.

How large was the drawdown?

The best run had a maximum drawdown of 731 EUR at the tested position size, against a net result of 1,727 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

CCI Breakout

Best run on the same market, Gold.

1.08 PF · 6,065 trades

ADX Filtered EMA Cross

Also a trend strategy.

1.15 PF · 607 trades

Put your name on the ProRealAlgos waitlist to trade a tested portfolio instead of single strategies.

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