QuantForge
en

GOLD #1: XAUUSD M5 New York Open Fair Value Gap

Trades the first fair value gap of at least 50 pips ($0.50) that forms on M5 in the first 90 minutes of the New York session, in the gap's direction: buy a bullish gap, sell a bearish one. One trade a day, 1% risk, $5 stop and $10 target, flat at 22:00. Times are broker server time for a GMT+2 / GMT+3 server (16:30 = 09:30 New York); on a GMT server use 14:30 in winter and 13:30 in summer.

Start freeRead the docsFree plan, no card needed.

Tested on XAUUSD M1, 2023-02 to 2026-11

Profit factor, first half / second half
1.17 / 1.16
Trades
929
Max drawdown
17.5%
Timeframe
M5
Open in QuantForge

Free account. The template opens as a new project you can edit, backtest and export.

Past results on one symbol, from one broker’s data. They do not predict future results: test on your own data and on a demo account first.

Inputs you can tune

InputDefault
MagicNumber930101Identifies this EA's trades
SessionStartHour16Window start hour (server time; 16:30 = New York open on a GMT+2/+3 server)
SessionStartMinute30Window start minute
SessionEndHour18Window end hour (server time)
SessionEndMinute0Window end minute
CloseHour22Close open trades from this hour (server time)
MinGapPips50Smallest gap, pips (gold: 100 pips = $1)
StopLossPips500Stop loss, pips ($5 on gold)
TakeProfitPips1000Take profit, pips ($10 on gold)
RiskPercent1Risk per trade, % of equity

More templates

Build your first EA today

The free plan includes three projects, backtests on H1 to D1 over a year, MQL4/MQL5 export and the converter.

Start free

Keep exploring