Trading robot · MT5

Gold Trader EA

by mehdi-jahani

Gold Trader EA is a multi-strategy expert advisor designed for trading XAUUSD on the MetaTrader 5 platform.

GitHub stars141
Forks51
Last update1 year ago3 Jun 2025
LicenceNone stated

Overview

Gold Trader EA 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 number of concurrent signals to enter a trade, ensuring high-confluence setups. Risk management features include ATR-based dynamic stop loss and take profit levels, a main trend filter using a 100-period moving average, and flexible lot sizing based on account equity.

Details

Author

mehdi-jahani on GitHub

Type

Trading robot

Platform

MetaTrader 5 (MQL5)

Strategy

Multi-strategy, Trend following, Indicator crossover, SMC / ICT / price action

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.

Input parameters

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

NameTypeDefaultDescription
Symbol_NamestringXAUUSDTrading symbol
TimeframeENUM_TIMEFRAMESPERIOD_H1Timeframe
Risk_Percentdouble1.0Risk percentage per trade from capital (1%)
Fixed_Lot_Sizedouble0.1Fixed lot size (if 0, use risk percentage)
Max_Lot_Sizedouble0.3Maximum lot size
Max_Position_Volumedouble1.0Maximum volume of open positions
Max_Positionsint1Maximum number of open positions
Max_Simultaneous_Tradesint1Maximum number of simultaneous trades
Min_Confirmationsint7Minimum number of confirmations
General_Settingsstring---- General Settings ----Main parameters
Magic_Numberint123456Robot identification number
Require_MainTrend_AlignmentbooltrueAlign trades with the main trend (100 moving average)
Show all 40 inputs
NameTypeDefaultDescription
Use_CandlePatternsbooltrueUse candle patterns
Use_ChartPatternsbooltrueUse chart patterns
Use_PriceActionbooltrueUse price action
Use_ElliottWavesboolfalseUse Elliott waves
Use_IndicatorsbooltrueUse indicators
Use_DivergencebooltrueUse divergences
Use_SupportResistancebooltrueUse support and resistance levels
Use_HarmonicPatternsboolfalseUse harmonic patterns
Use_MACrossoverbooltrueUse moving average crossovers
Use_PivotPointsbooltrueUse pivot points
Use_TimeAnalysisbooltrueUse time analysis
Use_VolumeAnalysisbooltrueUse volume analysis
Use_WolfeWavesboolfalseUse Wolfe waves
Use_MultiTimeframebooltrueUse multi-timeframe analysis
G_DebugboolfalseEnable debug messages
StopLoss_Pipsint100Default stop loss (pips)
TakeProfit_Pipsint150Take profit in pips (increased from 100 to 150)
Use_Dynamic_StopLossbooltrueUse dynamic stop loss
ATR_Periodint14ATR period
ATR_StopLoss_Multiplierdouble2.0ATR multiplier for stop loss (increased from 1.5 to 2.0)
ATR_TakeProfit_Multiplierdouble4.0ATR multiplier for take profit (increased from 3.0 to 4.0)
Use_SR_LevelsbooltrueUse support/resistance levels for stop loss/profit
max_trades_per_candleint1Maximum number of trades allowed per candle
MA_Trend_Periodint100Moving average period for determining the main trend
Use_Main_Trend_FilterbooltrueUse main trend filter
CandlePatterns_Weightint1Weight of candle patterns
ChartPatterns_Weightint2Weight of chart patterns
PriceAction_Weightint2Weight of price action

How to install it

  1. 1Download the sourceUse "Download source (.zip)" above, or clone mehdi-jahani/GoldTraderEA 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

Smart Consensus Pro

by tripleonesoft-design
1 stars

This MetaTrader 5 expert advisor collection employs institutional trading concepts to execute trades across forex, commodities, and cryptocurrency markets. It utilizes a dual-timeframe approach, analyzing the H1 chart for trend direction and M15 for execution. Entry signals require multiple confirmations from RSI, MACD

MT5 Trading robot SMC / ICT / price actionIndicator crossoverTrend following
Updated 4 months ago None stated GitHub repository of Smart Consensus Pro

EA31337

by EA31337
1.3k stars

EA31337 is a comprehensive multi-strategy trading robot and framework for MetaTrader platforms. It features dozens of pre-built strategies utilizing technical indicators like ATR, Moving Averages, and SuperTrend. The system manages entries and exits through a unique filtering system that monitors account metrics, volat

MT5 Trading robot Multi-strategyNewsTrend following
Updated 5 months ago GPL-3.0 GitHub repository of EA31337

EA31337 Libre

by EA31337
252 stars

EA31337 Libre is an open-source, multi-strategy trading robot for MetaTrader 4 and MetaTrader 5. It functions as a simplified implementation of the EA31337 framework, providing a collection of over 35 built-in strategies based on technical indicators. The expert advisor performs independent market analysis across vario

MT5 Trading robot Multi-strategyTrend followingMean reversion
Updated 1 year ago GPL-3.0 GitHub repository of EA31337 Libre

EA Scalper XAUUSD

by francomascareloai
236 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
84 stars

This MetaTrader 5 expert advisor implements Smart Money Concepts including Order Blocks, Fair Value Gaps, and Break of Structure entries. It features an automated mode that combines multiple strategies alongside market regime detection using ADX or Efficiency Ratio to ensure trading in trending conditions. Risk managem

MT5 Trading robot SMC / ICT / price actionTrend followingMulti-strategy
Updated 2 months ago Apache-2.0 GitHub repository of SMC Unified Expert Advisor

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

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