Trading robot · MT5

Fvg Gold EA

by foeed

Fvg Gold EA is an automated trading robot for MetaTrader 5 designed specifically for the gold market.

GitHub stars34
Forks8
Last update5 days ago17 Sep 2026
LicenceMIT

Overview

Fvg Gold EA utilizes institutional trading concepts by identifying high-probability Fair Value Gaps with Order Block confluence. The system employs a scoring algorithm to evaluate trade quality based on displacement, gap size, and higher timeframe trend alignment via exponential moving averages. It executes entries using limit orders within specific London and New York session killzones. Risk is controlled through fixed or percentage-based lot sizing, automated stop losses, a fixed reward-to-risk ratio, and a daily dollar-based loss limit.

Details

Author

foeed on GitHub

Type

Trading robot

Platform

MetaTrader 5 (MQL5)

Strategy

SMC / ICT / price action, Indicator crossover

Markets

Gold

Timeframes

M15-H1

Risk profile

No grid, martingale or hedging logic was found in its code or README. That says nothing about how it performs: backtest it first.

EA files

Topics

algorithmic-tradingfair-value-gapforex-eagold-tradingmetatrader5mql5order-blocktrading-botxauusdbacktesting

Input parameters

Read from FvgGold.mq5. Defaults are the author's; change them in the EA's Inputs tab.

NameTypeDefaultDescription
FVGTimeframeENUM_TIMEFRAMESPERIOD_M15Execution / FVG detection TF
MinGapSizeint25Minimum FVG size (points)
MaxAgeBarsint20Max FVG age in bars
MinAgeBarsint2Min FVG age (bars since formation)
FVGBufferdouble3.0Buffer beyond FVG edge for SL (price units, e.g. $3.00)
MinScoreFVGdouble50.0Minimum FVG quality score (0-100)
ScoreGapWeightdouble30.0Score weight: gap size (0-30)
ScoreDispWeightdouble30.0Score weight: displacement (0-30)
ScoreHTFWeightdouble20.0Score weight: HTF alignment (0-20)
ScoreFreshWeightdouble10.0Score weight: freshness (0-10)
ScorePDWeightdouble10.0Score weight: premium/discount (0-10)
UseOBFilterbooltrueRequire Order Block confluence
Show all 37 inputs
NameTypeDefaultDescription
OB_ImpulseATRdouble1.5Min impulse body = ATR * this
OB_LookbackBarsint50How far back to scan for OBs
OB_MinSizedouble10.0Min OB size (points)
OB_ConfluenceBonusdouble20.0Score bonus for FVG+OB overlap
OB_MaxDistancedouble200.0Max distance FVG-OB to count (points)
HTF_PeriodENUM_TIMEFRAMESPERIOD_H1Higher TF for bias
EMA_Fastint50Fast EMA for trend
EMA_Slowint200Slow EMA for trend
FixedLotdouble0.01Fixed lot size (0=risk-based)
RiskPercentdouble0.5Risk per trade (if FixedLot=0)
MaxTradesint1Max concurrent trades
DailyLossLimitdouble5.0Daily loss limit ($) (0=off)
ATR_TP_Multdouble2.0TP = ATR * this multiplier
RiskRewardRatiodouble1.5TP = entry + SL_distance * this (fixed R:R)
UseFixedRRbooltrueUse fixed R:R instead of ATR for TP
UseKillzonebooltrueEnable killzone filter
KZ_LondonStartint7London open start (GMT)
KZ_LondonEndint10London open end (GMT)
KZ_OverlapStartint12London/NY overlap start (GMT)
KZ_OverlapEndint16London/NY overlap end (GMT)
KZ_NYEndint21NY session end (GMT)
KZ_PreferOverlapboolfalseOnly trade overlap (highest quality)
CloseAtEODboolfalseClose all at session end
MagicNumberulong7777
SlippagePointsint20

How to install it

  1. 1Download the sourceUse "Download source (.zip)" above, or clone foeed/FvgGold-EA from GitHub, and unzip it.
  2. 2Open the data folderIn MetaTrader choose File, then Open Data Folder, and go to MQL5/Experts.
  3. 3Copy the filesCopy the .mq5 file into Experts.
  4. 4Compile in MetaEditorOpen the file in MetaEditor and press Compile. Fix any missing includes the compiler reports.
  5. 5Test before you tradeRun it in the Strategy Tester, then attach it to a demo chart and allow algorithmic trading.
Third-party code. ForexR did not write, test or endorse this EA, and the summary above was generated automatically from its README and code. ForexR lists only repositories with readable source code and never hosts files. Read the code, backtest it and use a demo account first; automated trading can lose money quickly.

Similar expert advisors

EA Scalper XAUUSD

by francomascareloai
237 stars

EA Scalper XAUUSD is an automated trading research project for MetaTrader 5 focused on gold. It employs a multifaceted entry strategy using Smart Money Concepts like order blocks and liquidity sweeps, alongside moving average crossovers and Fibonacci zones. The EA includes a self-learning module designed to adapt to di

MT5 Trading robot SMC / ICT / price actionIndicator crossoverScalping High risk
Updated 3 months ago Custom licence GitHub repository of EA Scalper XAUUSD

Gold Trader EA

by mehdi-jahani
141 stars

Gold Trader EA is a multi-strategy expert advisor designed for trading XAUUSD on the MetaTrader 5 platform. It employs a fusion engine that combines up to 14 different technical analysis methods, including candlestick patterns, chart patterns, price action, and institutional levels. The system requires a user-defined n

MT5 Trading robot Multi-strategyTrend followingIndicator crossover
Updated 1 year ago None stated GitHub repository of Gold Trader EA

ICT Gold EA

by darula-hpp
36 stars

This automated trading system for MetaTrader 5 focuses on spot Gold using Inner Circle Trader methodology. It identifies entries through order block detection, market structure analysis, and weekly opening price levels. The strategy is further filtered by dual moving averages and specific trading sessions, primarily Lo

MT5 Trading robot SMC / ICT / price actionIndicator crossoverTrend following
Updated 11 months ago None stated GitHub repository of ICT Gold EA

Elephant Walk

by erlonfs
16 stars

Elephant Walk is a MetaTrader 5 expert advisor based on the trading methodology of Oliver Velez. It automates entries using moving average crossovers and price action patterns often associated with large bars or elephant candles. The EA provides extensive trade management options, including trailing stops, break-even a

MT5 Trading robot Indicator crossoverSMC / ICT / price action
Updated 7 years ago MIT GitHub repository of Elephant Walk
3 stars

This MetaTrader 5 expert advisor implements a multi-timeframe strategy combining M15 trend direction with M5 trade execution. It identifies entries using Smart Money Concepts like break of structure and order blocks, confirmed by MACD, Stochastic, and Parabolic SAR indicators. Risk management is a primary focus, offeri

MT5 Trading robot SMC / ICT / price actionTrend followingIndicator crossover

Fibonacci ICT EA

by Shifrozy
2 stars

Fibonacci ICT EA for MetaTrader 5 combines institutional price action concepts with Fibonacci retracement levels. It identifies higher timeframe trends and enters on pullbacks to specific golden zones using confirmations like Break of Structure and Fair Value Gaps. The system includes robust risk management such as per

MT5 Trading robot SMC / ICT / price actionIndicator crossoverMean reversion High risk
Updated 3 weeks ago None stated GitHub repository of Fibonacci ICT EA

More trading robots

Need a broker for MT5?

Compare regulated brokers that support MetaTrader, with spreads, minimum deposits and leverage side by side.

Compare brokers