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.
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
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
| Input | Default | |
|---|---|---|
MagicNumber | 930101 | Identifies this EA's trades |
SessionStartHour | 16 | Window start hour (server time; 16:30 = New York open on a GMT+2/+3 server) |
SessionStartMinute | 30 | Window start minute |
SessionEndHour | 18 | Window end hour (server time) |
SessionEndMinute | 0 | Window end minute |
CloseHour | 22 | Close open trades from this hour (server time) |
MinGapPips | 50 | Smallest gap, pips (gold: 100 pips = $1) |
StopLossPips | 500 | Stop loss, pips ($5 on gold) |
TakeProfitPips | 1000 | Take profit, pips ($10 on gold) |
RiskPercent | 1 | Risk per trade, % of equity |
More templates
- EDGE #1: H1 Bollinger Extreme + Engulfing Reversal · H1
- EDGE #2: H1 Four-Candle Streak + RSI(2) Snapback · H1
- EDGE #3: H1 RSI Basket Grid + Money Take-Profit · H1
- EDGE #4: H4 MACD Divergence + Confirmation Candle Swing · H4
- EDGE #5: London Open Stop-Order Breakout (Tue–Thu) · M15
- EDGE #6: H4 Connors RSI(2) Extreme + SMA(5) Exit · H4
- EDGE #7: M30 RSI(14) Extreme Basket Grid · M30
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.