Trading robot · MT5

Gold Engine Quantitative Master

by rpvp007-dev

This MetaTrader 5 expert advisor is designed for gold trading and employs an adaptive, multi-regime architecture.

GitHub stars1
Forks0
Last update2 months ago27 Jul 2026
LicenceNone stated

Overview

Gold Engine Quantitative Master classifies market behavior into trending, ranging, or flat regimes using indicators like ADX and ATR, adjusting its take profit and stop loss targets dynamically. The system integrates advanced entry rules based on Donchian breakouts, liquidity pool sweeps, and Fair Value Gaps (FVG). Notably, the configuration supports external AI-driven decision-making via Gemini, Groq, or OpenRouter APIs. Risk management includes compounding lot sizes, dollar-based target risks, maximum concurrent trade limits, and session-based time filters.

Details

Author

rpvp007-dev on GitHub

Type

Trading robot

Platform

MetaTrader 5 (MQL5)

Strategy

Breakout, Mean reversion, AI / machine learning, Hedging

Markets

Gold

Timeframes

Any timeframe

Risk Profile

  • Holds opposite positions at once

Input Parameters

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

NameTypeDefaultDescription
InpTimeframeModeENUM_TF_MODETF_AUTOTarget Chart Timeframe Mode
InpGeminiAPIKeystringGemini API Key (aistudio.google.com)
InpGroqAPIKeystringGroq API Key (console.groq.com)
InpOpenRouterAPIKeystringOpenRouter API Key (openrouter.ai)
InpOpenRouterModelstringgoogle/gemma-4-31b-itOpenRouter Model Name
InpUseAIEnginesbooltrueEnable AI Brain Integration
InpUseAIVisionboolfalseEnable AI Multimodal Vision (Requires OpenRouter Vision Model)
InpAIEngineSelectionENUM_AI_ENGINEAI_BOTH_FAILOVERAI Engine Selection
InpMinConvictionint1Minimum AI Conviction to trade (0-100)
InpShowDashboardbooltrueShow Dashboard Panel
InpDashboardPositionENUM_DB_POSITIONDB_POS_TOP_LEFTDashboard Position Mode
InpDashboardXint20Custom X Offset (Or corner offset)
Show all 40 inputs
NameTypeDefaultDescription
InpDashboardYint60Custom Y Offset (Or corner offset)
InpLotSizedouble0.10Fixed Lot Size (If Compounding is disabled)
InpTargetRiskUSDdouble25.00Target dollar risk per trade ($)
InpMagicNumberulong123456Magic Number
InpMaxConcurrentTradesint2Max Concurrent Trades (Allows dip buying)
InpPendingOrderExpiryBarsint5Pending Order Expiry (in Bars)
InpEnableCompoundingbooltrueEnable Lot Compounding (scales target risk)
InpLotsPerStepdouble0.10(Legacy reference lot size)
InpBalanceStepdouble100.00Per how much account balance ($) to scale risk
InpEnableHybridModebooltrueEnable Breakout/Reversion Switch
InpUseLocalDonchianBreakoutbooltrueUse Donchian Breakout for local trending breakouts
InpMinADXdouble20.0Custom Mode ONLY: ADX Threshold (Sideways < 20)
InpLimitOffsetdouble0.05Front-running offset for limit orders (points)
InpPriceRoundStepdouble0.05Rounding step for limit orders (0.0 to disable)
InpUseSessionHoursbooltrueBreakouts allowed ONLY during Momentum Hours
InpLondonStartHourint7London Open Hour (Server time)
InpLondonEndHourint10London End Hour (Server time)
InpNYStartHourint13NY Open Hour (Server time)
InpNYStartMinint30NY Open Minute (Server time)
InpNYEndHourint16NY End Hour (Server time)
InpNYEndMinint30NY End Minute (Server time)
InpUseVolumeFilterboolfalseTick Volume Filter (confirm breakout volume)
InpUseMTFTrendFilterboolfalseDual-Timeframe Trend Alignment (Macro direction)
InpUseEMAFilterboolfalseFilter entries by 50 EMA Trend (Local direction)
InpUseRSIFilterboolfalseFilter out Trend Exhaustion (RSI 70/30)
InpUseATRFilterboolfalseBlock trading if ATR Volatility is low
InpUseATROffsetboolfalseDynamic Entry Offset based on ATR
InpATROffsetMultiplierdouble0.15Custom Mode ONLY: ATR Multiplier for Entry Offset

How to Install It

  1. 1Download the sourceUse "Download source (.zip)" above, or clone rpvp007-dev/GoldEngineV6-Quantitative-Master 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, and any .mqh files into the Include folder the code expects.
  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

Fibonacci Expert

by ismail505
1 stars

Fibonacci Expert is a MetaTrader 5 robot that calculates Fibonacci levels using price extremes from a user-defined timeframe. It automatically places various pending orders, including buy stops, sell stops, buy limits, and sell limits, at specified intervals relative to these levels. The EA manages risk through individ

MT5 Trading robot BreakoutMean reversionHedging
Updated 3 years ago None stated GitHub repository of Fibonacci Expert

GoldEngine Sentinel

by vivekpanchal2489
1 stars

GoldEngine Sentinel is a specialized expert advisor for MetaTrader 5, designed specifically for trading spot gold. It utilizes an advanced architecture combining dual-AI ONNX models: SuperGRU for macro bias and Master AI for micro order flow analysis. Trade execution is filtered through Gaussian Kernel Channels and Nad

MT5 Trading robot AI / machine learningMean reversionSMC / ICT / price action
Updated 10 days ago None stated GitHub repository of GoldEngine Sentinel

Phantom Edge

by tHeStRyNg
1 stars

Phantom Edge is a MetaTrader 5 expert advisor primarily designed for trading BTCUSD. It identifies entries using a combination of technical indicators, including RSI, MACD, and SMA, while validating setups through multi-timeframe analysis of M15 liquidity sweeps and M30 trend breaks. The EA features comprehensive trade

MT5 Trading robot Trend followingBreakoutHedging
Updated 1 year ago None stated GitHub repository of Phantom Edge

GoldenGauss V7

by combjuda
1 stars

GoldenGauss V7 is a neural network-based trading robot developed for MetaTrader 5. It utilizes an ensemble of three neural networks focusing on trend, mean reversion, and breakout strategies to generate entry predictions. The system features multi-timeframe trend alignment, a correlation protection filter, and a news f

MT5 Trading robot AI / machine learningTrend followingMean reversion High risk
Updated 4 months ago None stated GitHub repository of GoldenGauss V7

Nyao Scalper

by elrizwiraswara
173 stars

Nyao Scalper is an automated scalping robot for MetaTrader 5 that utilizes a multi-factor weighted scoring system to identify trade opportunities. It evaluates trend alignment through EMA crossovers, momentum via RSI, and price action through wick rejection and candle body analysis. The EA manages risk with adaptive AT

MT5 Trading robot ScalpingTrend followingMartingale High risk
Updated 3 months ago BSD-3-Clause GitHub repository of Nyao Scalper
18 stars

This expert advisor for MetaTrader 5 utilizes a genetic algorithm and neural network to make autonomous trading decisions without relying on traditional technical indicators. It implements a self-learning mechanism that evaluates a population of species to determine entry, exit, and lot sizing across multiple currency

MT5 Trading robot AI / machine learningHedging

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