FvgGold Fair Value Gap EA for XAUUSD
- Uzmanlar
- Sürüm: 2.0
FvgGold is an Expert Advisor for MetaTrader 5 designed for automated trading on Gold (XAUUSD). It combines Fair Value Gap (FVG) detection, optional Order Block confluence, higher-timeframe trend filtering, and configurable trading-session controls.
The EA evaluates detected price imbalances using configurable criteria and assigns a score to each setup. Trades are considered only when the configured filters and minimum score requirements are satisfied.
Strategy Overview
Fair Value Gap detection
The EA identifies three-candle Fair Value Gap patterns on the configured timeframe. Minimum gap size, zone age, and entry settings can be adjusted to suit different testing conditions.
Setup scoring
Each detected FVG is evaluated using configurable weights for gap size, candle displacement, higher-timeframe trend alignment, zone freshness, and premium/discount positioning. The EA compares the resulting score with the minimum threshold before considering a trade.
Order Block confluence
An optional Order Block filter evaluates whether a detected FVG aligns with a qualifying Order Block zone. The confluence bonus and zone-detection parameters can be customized.
Higher-timeframe trend filter
The default configuration uses the H1 timeframe with 50-period and 200-period Exponential Moving Averages (EMAs) to evaluate trend alignment.
Trading-session filter
The EA includes configurable London and New York session parameters expressed in GMT. The overlap-preference setting controls how the session filter prioritizes the configured trading window.
Trade and risk management
The EA supports fixed-lot trading or risk-based position sizing, a configurable maximum number of concurrent trades, a daily loss limit, stop-loss buffers, and configurable take-profit logic. Break-even functionality is also available according to the EA's ATR-based settings.
Historical Strategy Tester Results
The following figures are historical backtest results for the stated test configuration. They are not live-account results or a forecast of future performance.
Three-month test
Period: April–July 2026
Symbol: XAUUSD.m
Timeframe: M15
Initial balance: USD 10,000
Fixed lot: 0.01
Reported result: +5.2%
Win rate: 40%
Number of trades: 35
Six-month test
Period: January–July 2026
Symbol: XAUUSD.m
Timeframe: M15
Initial balance: USD 10,000
Fixed lot: 0.01
Reported result: +48.7%
Win rate: 45.3%
Number of trades: 64
Actual results depend on the broker's pricing, spread, commissions, swap charges, execution conditions, historical data, and test configuration. Historical performance does not guarantee future results. Verify the exact test dates and figures against the corresponding Strategy Tester reports before relying on or publishing these statistics.
Default Configuration
FVG detection: M15 timeframe, minimum gap size of 25 points, minimum zone age of 2 bars, maximum age of 20 bars, and a stop-loss buffer of 3.0 price units.
Setup scoring: Minimum score of 50, with configurable weights for gap size (30), displacement (30), higher-timeframe alignment (20), freshness (10), and premium/discount positioning (10).
Order Block filter: Enabled by default, with configurable impulse strength, lookback period, minimum zone size, confluence bonus, and maximum distance.
Trend filter: H1 timeframe with EMA periods of 50 and 200.
Risk settings: Fixed lot of 0.01 by default. Setting the fixed lot to 0 enables risk-based sizing using the configured risk percentage. The default maximum is one concurrent trade, with a daily loss limit of USD 5.
Take-profit settings: Fixed risk-to-reward ratio of 1.5 by default, with configurable ATR-based take-profit settings.
Session settings: Session filtering enabled by default, with configurable London and New York hours and overlap preference.
All settings should be checked against the EA's actual implementation before use.
Requirements
-
MetaTrader 5 terminal, compatible with the EA's compiled build.
-
A broker offering Gold trading under a supported XAUUSD symbol.
-
Sufficient free margin for the selected lot size and account leverage.
-
Testing in the built-in MetaTrader 5 Strategy Tester before live deployment.
Broker symbol suffixes, contract specifications, point sizes, and trading conditions may differ. Review the settings and test the EA on the intended broker before enabling automated trading.
License and Distribution
The project is released under the MIT License. This MQL5 Market listing distributes the compiled Expert Advisor.
Trading involves risk, including the possible loss of capital. The EA does not guarantee profitable trades or a positive trading outcome.

