Trading robot · MT5

XAUUSD Hybrid AI EA

by dhanushkumar2968

An MT5 Expert Advisor designed for XAUUSD (Gold) trading that integrates multi-timeframe technical analysis across M30, H1, H4, and D1 charts with an optional local Python machine learning inference service over HTTP.

GitHub stars1
Forks0
Last update3 weeks ago29 Oct 2026
LicenceNone stated

Overview

The EA handles chart analysis, signal generation, and order execution locally while querying Python for setup classification. Risk management controls include equity drawdown limits, daily loss caps, max open position restrictions, trailing stops, and break-even rules. Live execution defaults off for safety.

Details

Author

dhanushkumar2968 on GitHub

Type

Trading robot

Strategy

AI / machine learning, Multi-strategy

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

NameTypeDefaultDescription
BOT_ENABLEDboolfalse
ANALYSIS_ENABLEDbooltrue
AI_ENABLEDboolfalse
DRAWINGS_ENABLEDbooltrue
TRADING_PERMISSIONboolfalse
LIVE_EXECUTIONboolfalse
MOCK_AI_MODEboolfalse
AI_ENDPOINTstringhttp://127.0.0.1:8765/v1/analyze
AI_TIMEOUT_MSint1500
EXPECTED_MODEL_VERSIONstring
EXPERT_MAGICulong5103001
MAX_DEVIATION_POINTSulong30
Show all 30 inputs
NameTypeDefaultDescription
MAX_SPREAD_POINTSdouble80.0
COMMISSION_PER_LOT_ROUND_TURNdouble0.0
SLIPPAGE_ALLOWANCE_POINTSdouble0.0
RISK_PER_TRADE_PERCENTdouble0.50
MAX_DAILY_LOSS_PERCENTdouble3.0
MAX_EQUITY_DRAWDOWN_PERCENTdouble15.0
MAX_TOTAL_OPEN_RISK_PERCENTdouble1.50
MAX_OPEN_POSITIONSint1
MAX_DAILY_TRADESint5
MAX_CONSECUTIVE_LOSSESint3
RESTRICT_TO_UTC_SESSIONbooltrue
PARTIAL_CLOSE_AT_TP1_PERCENTdouble0.0
PARTIAL_CLOSE_AT_TP2_PERCENTdouble0.0
BREAK_EVEN_AFTER_Rdouble0.0
TRAIL_AFTER_Rdouble0.0
TRAIL_DISTANCE_ATRdouble1.0
MAX_HOLDING_SECONDSint0
EMERGENCY_CLOSE_IF_STOP_MISSINGboolfalse

How to Install It

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

My Trading Bot

by carlosrod723
79 stars

This MetaTrader 5 expert advisor implements a multi-strategy framework based on Smart Money Concepts. It identifies fractal-based liquidity sweeps, order blocks, and Fibonacci zones across multiple timeframes, typically using H4 for trend direction and M15 for execution. The EA includes an optional machine learning fil

MT5 Trading robot SMC / ICT / price actionAI / machine learningMulti-strategy
Updated 1 year ago MIT GitHub repository of My Trading Bot

Makets GA

by nopaixx
21 stars

Makets GA is a neural network trading system for MetaTrader 5 that utilizes genetic algorithms to optimize weights for multi-layer perceptrons. Instead of standard price prediction, the EA evolves trading strategies by processing price data across several major currency pairs simultaneously. It implements evolutionary

MT5 Trading robot AI / machine learningMulti-strategy
Updated 8 years ago None stated GitHub repository of Makets GA
1 stars

EA MultiStrategy Advanced is an automated trading robot for MetaTrader 5 that integrates technical analysis with machine learning models. It utilizes a combination of RSI, Bollinger Bands, and Moving Average crossovers alongside LSTM-based deep learning signals to identify market patterns. The system features rigorous

MT5 Trading robot AI / machine learningIndicator crossoverMulti-strategy
Updated 1 year ago None stated GitHub repository of EA MultiStrategy Advanced

PASR Modular

by sakuninfinix-svg
1 stars

PASR Modular is a MetaTrader 5 expert advisor designed for automated trading using a modular framework. It employs technical indicators like ATR for dynamic stop losses and take profits, alongside ADX for trend filtering. The system integrates machine learning components for trade inference and multi-timeframe analysis

MT5 Trading robot AI / machine learningTrend followingMulti-strategy
Updated 4 months ago None stated GitHub repository of PASR Modular
1 stars

This MetaTrader 5 expert advisor utilizes a Naive Bayes probabilistic model integrated with Smart Money Concepts and ICT principles to identify trading opportunities. It primarily targets gold bias and pullbacks but includes logic for universal symbol support. The system uses a machine learning engine that self-retrain

MT5 Trading robot AI / machine learningSMC / ICT / price actionMulti-strategy
1 stars

This machine learning expert advisor for MetaTrader 5 utilizes ensemble and deep learning models to analyze market patterns. It offers a versatile multi-strategy approach, allowing users to toggle between trend-following, scalping, and grid-hedging behaviors. Risk controls are comprehensive, featuring fixed percentage

MT5 Trading robot AI / machine learningMulti-strategyScalping High risk

More gold EAs

Related on ForexR

Need a Broker for MT5?

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

Compare MT5 brokers