Trading robot · MT5

Golden Structure

by edisonq

Golden Structure is a trend-following expert advisor for MetaTrader 5, specifically optimized for Gold (XAUUSD).

GitHub stars1
Forks0
Last update8 months ago26 Jan 2026
LicenceMIT

Overview

Golden Structure uses an exponential moving average to determine the primary market bias and enters trades based on price action rejection wicks following a pullback. The EA prioritizes risk control with automated lot sizing per trade, a daily equity drawdown limit, and a multi-level trailing stop with break-even functionality. Additionally, it features a news filter to manage volatility during high-impact economic releases.

Details

Author

edisonq on GitHub

Type

Trading robot

Platform

MetaTrader 5 (MQL5)

Strategy

Trend following, News

Markets

Gold

Timeframes

M1-M5, M15-H1, H4 and above

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 Golden StructureV1.mq5. Defaults are the author's; change them in the EA's Inputs tab.

NameTypeDefaultDescription
InpRiskPercentdouble2.0Risk per trade
InpRewardRatiodouble2.0Reward Multiplier
InpMaxDailyLossdouble4.0Hard Lock: Stop if Equity drops 4%
InpUseNewsFilterbooltrueNews Filter
InpNewsCurrencystringUSDCurrency to watch (USD, EUR, etc.)
InpNewsBeforeMinsint60Mins before news
InpNewsAfterMinsint30Mins after news
InpEMAPeriodint50
InpTrendTFENUM_TIMEFRAMESPERIOD_D1Trend Timeframe
InpEntryTFENUM_TIMEFRAMESPERIOD_H1Entry Timeframe
InpCandleLockbooltrueCRITICAL: One trade per candle only
InpATRPeriodint14
Show all 24 inputs
NameTypeDefaultDescription
InpATRMultiplierdouble1.5
InpMinWickSizeint30Min Wick Points (Future: Upgrade to ATR %)
InpBufferPointsint50
InpExpirationHrsint3
InpUseTrailingbooltrue
InpTrailStep1double40.0
InpBreakevenPointsint10
InpTrailStep2double70.0
InpTrailLock2double30.0
InpTrailStep3double90.0
InpTrailLock3double80.0
InpMagicNumberint1515Unique ID for V15

How to Install It

  1. 1Download the sourceUse "Download source (.zip)" above, or clone edisonq/Golden-Structure-V1 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

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
9 stars

This MetaTrader 5 expert advisor collection provides multiple variants for scalping gold on the one-minute timeframe. It utilizes a combination of Stochastic Oscillator crossovers and linear regression analysis to identify trend quality and entry points. Trade management is handled through ATR-based dynamic stop loss a

MT5 Trading robot ScalpingTrend followingMean reversion
2 stars

This MetaTrader 5 expert advisor serves as a signal generation tool primarily designed for the EURUSD currency pair. It identifies entry signals by combining MACD crossovers and Relative Strength Index levels, using a 200-period Exponential Moving Average as a primary trend filter. The system integrates a fundamental n

MT5 Trading robot Trend followingMean reversionIndicator crossover
Updated 1 year ago None stated GitHub repository of Advanced Signal Generator

Pro Trader AI

by salmanrki
1 stars

This MetaTrader 5 expert advisor integrates Large Language Models such as OpenAI and Anthropic Claude with technical analysis to automate trading across forex, gold, crypto, and indices. It utilizes a confluence scoring system based on Smart Money Concepts, Ichimoku Cloud, and standard indicators like RSI and MACD. The

MT5 Trading robot SMC / ICT / price actionAI / machine learningNews
Updated 5 months ago None stated GitHub repository of Pro Trader AI

Sharrow

by Shinpai-AI
1 stars

Sharrow is an AI-driven trading robot for MetaTrader 5 that integrates with a Python-based machine learning toolchain. It functions as a trend engine, primarily designed for the H1 timeframe, using rules generated from walk-forward training scripts. The system includes sophisticated risk controls such as daily drawdown

MT5 Trading robot AI / machine learningTrend followingNews
Updated 7 months ago None stated GitHub repository of Sharrow

Xau Ai Pro

by apolopanda500
1 stars

This expert advisor for MetaTrader 5 is a sophisticated trading system specifically optimized for gold. It operates as part of a hybrid ecosystem, utilizing a Python-based desktop interface for local machine learning model training and market analysis while executing trades via the MQL5 robot. The EA employs a multi-la

MT5 Trading robot AI / machine learningTrend followingNews
Updated 3 days ago None stated GitHub repository of Xau Ai Pro

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