MetaTrader 5 · XAUUSD · Breakout EAs

New York Opening Range Breakout EA

GoldLab NY Opening Range is a New York opening range breakout EA for MetaTrader 5. It measures the first minutes of the New York session on gold, then trades a closed-bar breakout or a retest of that range with volume and volatility filters.

GoldLab NY Opening Range - new york opening range breakout ea
GoldLab NY Opening Range logo
$99One-time purchase · no subscription · free demo on MQL5
Buy on MQL5 Market →

GoldLab NY Opening Range is a fully automated Expert Advisor for MetaTrader 5. It is designed for XAUUSD (gold) and also runs on other symbols such as EURUSD.

How it trades

  1. Opening range - the high and low of the first N minutes (default 30) of the New York session, starting at the NY session start time you set in server time (default 13:30 - set 16:30 on a GMT+3 broker).
  2. Range filter - the range width must be between a minimum and maximum multiple of the H1 ATR.
  3. Breakout on a closed bar - on the signal timeframe (default M5) a bar must close beyond the range (plus a buffer); wicks alone do not trigger.
  4. Tick-volume filter - the breakout bar's tick volume must be at least the recent average (multiplier adjustable), to avoid low-participation breaks.
  5. Optional retest mode - instead of entering at the breakout, the EA waits for price to come back to the broken level and close back in the breakout direction within a set number of bars. A close back through the other side of the range cancels the setup.
  6. Exits - stop-loss at the opposite side of the range (or the range middle), take-profit at an R-multiple (default 1.5R), optional break-even, and a time exit that closes everything at the set hour (default 20:00 server time).
  7. Entries are allowed only inside the entry window after the range (default 180 minutes), with a maximum number of trades per day.

Risk management (built in)

  • Every trade is opened with a stop-loss. There is no martingale, no grid and no averaging down.
  • Position size from risk % of balance (default 1%) or a fixed lot; lots are normalised to the broker's min / max / step and reduced if free margin is not enough.
  • Daily loss limit: no new trades for the rest of the day once equity is down the set % from the day-start balance.
  • Max spread filter, optional trading-hours filter, and no orders while the market is closed or trading on the symbol is disabled.
  • Stop-loss / take-profit are always placed outside the broker's stops and freeze levels.
  • Works on hedging and netting accounts (on netting accounts it opens only when the symbol has no position).

Inputs and default settings

InputDefaultDescription
NY session start hour / minute13 / 30Server time of the New York open
Opening range length (minutes)30Length of the opening range
Signal timeframeM5Breakouts are judged on closed bars of this timeframe
Entry window (minutes)180Entries allowed for this long after the range
Max trades per day2Daily trade cap
Breakout buffer (points)3Close must be this far beyond the range
Wait for retestfalseEnter on a retest of the broken level instead of the breakout
Retest bars / tolerance (x ATR)12 / 0.3Retest must happen within these bars and this distance
Tick-volume filter / period / multipliertrue / 20 / 1.0Breakout bar volume >= average x multiplier
ATR period14ATR for filters
Min / Max range (x H1 ATR)0.2 / 3.0Range width filter (0 = off)
Stop-loss placementOpposite sideOr range middle
Take-profit (R)1.5Target as a multiple of the stop distance
Break-even at (R)1.0Move stop to entry at this profit (0 = off)
Time exit hour / minute20 / 0Close trades at this time (-1 = off)
Risk per trade (%)1.0Risk as % of balance, used when Fixed lot = 0
Fixed lot0.0Fixed lot size (0 = use Risk %)
Maximum lot10.0Upper cap per trade
Use minimum lot if risk lot is too smalltrueOn small accounts trade the broker minimum instead of skipping
Magic number20271002Change it to run several copies on one account
Daily loss limit (%)3.0Stop opening trades for the day at this loss (0 = off)
Max spread (points)602-digit gold / 4-digit FX scale (100 = 1.00 USD on gold); 0 = off
Restrict to trading hoursfalseOptional start / end hour (server time) for new entries
Max slippage (points)30Same scale as spread
Show info panelfalseOptional status panel on the chart

Recommended setup

  • Symbol / timeframe: XAUUSD (designed for gold), also index-correlated FX pairs such as EURUSD. Any chart timeframe; the signal timeframe input (M5 default) drives the logic.
  • Account: any (hedging or netting), any deposit that allows the broker's minimum lot with a sensible risk %.
  • VPS: recommended for uninterrupted operation.

Honest notes

  • No trading system can guarantee profit. Past performance, in the tester or live, does not guarantee future results.
  • Always test the EA in the MetaTrader 5 Strategy Tester and then on a demo account before using real money, with your broker's own data and spread.
  • Session hours are in your broker's server time - check your broker's time zone and adjust the hour inputs if needed.
  • Start with a low risk % and use money you can afford to lose.
How GoldLab NY Opening Range trades - illustration
How it trades (illustration, not real trading results).
GoldLab NY Opening Range risk management features
Built-in risk management.

Plan your risk before you run it

FAQ

What is the difference between the London Breakout and NY Opening Range EAs?

London Breakout trades the range built during the Asian session as London opens. NY Opening Range measures a short range at the New York open and trades its breakout or retest, so the two cover different sessions.

Is there a free demo?

Yes. Every MQL5 Market product has a free demo that runs in the MetaTrader 5 Strategy Tester, so you can test it on your broker's own data before buying.

Does it use martingale, grid or averaging down?

No. Every position is opened with a stop-loss, the lot size comes from your risk % (or a fixed lot), and there is a daily loss limit.

Which broker and account do I need?

Any MetaTrader 5 broker that offers XAUUSD, on a hedging or netting account. A low-spread account and a VPS for 24/5 operation are recommended.

Can this EA guarantee profits?

No. No trading system wins every trade, and backtest or past results do not guarantee future results. Start on a demo account with the default risk.

Trading gold, forex and CFDs is high risk and you can lose your capital. This page is for information only and is not investment advice. Illustrations are not trading results.