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.
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.
Multi-timeframe technical analysis on M30, H1, H4, and D1
Local Python FastAPI inference integration over HTTP
Comprehensive risk controls with daily loss and drawdown limits
Position management including ATR trailing stops and break-even rules
Draggable chart dashboard and visual markup controls
Read from XAUUSD_Hybrid_AI_EA.mq5. Defaults are the author's; change them in the EA's Inputs tab.
Name
Type
Default
Description
BOT_ENABLED
bool
false
ANALYSIS_ENABLED
bool
true
AI_ENABLED
bool
false
DRAWINGS_ENABLED
bool
true
TRADING_PERMISSION
bool
false
LIVE_EXECUTION
bool
false
MOCK_AI_MODE
bool
false
AI_ENDPOINT
string
http://127.0.0.1:8765/v1/analyze
AI_TIMEOUT_MS
int
1500
EXPECTED_MODEL_VERSION
string
EXPERT_MAGIC
ulong
5103001
MAX_DEVIATION_POINTS
ulong
30
Show all 30 inputs
Name
Type
Default
Description
MAX_SPREAD_POINTS
double
80.0
COMMISSION_PER_LOT_ROUND_TURN
double
0.0
SLIPPAGE_ALLOWANCE_POINTS
double
0.0
RISK_PER_TRADE_PERCENT
double
0.50
MAX_DAILY_LOSS_PERCENT
double
3.0
MAX_EQUITY_DRAWDOWN_PERCENT
double
15.0
MAX_TOTAL_OPEN_RISK_PERCENT
double
1.50
MAX_OPEN_POSITIONS
int
1
MAX_DAILY_TRADES
int
5
MAX_CONSECUTIVE_LOSSES
int
3
RESTRICT_TO_UTC_SESSION
bool
true
PARTIAL_CLOSE_AT_TP1_PERCENT
double
0.0
PARTIAL_CLOSE_AT_TP2_PERCENT
double
0.0
BREAK_EVEN_AFTER_R
double
0.0
TRAIL_AFTER_R
double
0.0
TRAIL_DISTANCE_ATR
double
1.0
MAX_HOLDING_SECONDS
int
0
EMERGENCY_CLOSE_IF_STOP_MISSING
bool
false
How to Install It
1Download the sourceUse "Download source (.zip)" above, or clone dhanushkumar2968/Hybrid_AI_EA from GitHub, and unzip it.
2Open the data folderIn MetaTrader choose File, then Open Data Folder, and go to MQL5/Experts.
3Copy the filesCopy the .mq5 file into Experts, and any .mqh files into the Include folder the code expects.
4Compile in MetaEditorOpen the file in MetaEditor and press Compile. Fix any missing includes the compiler reports.
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.
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
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
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
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
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
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