Trading robot · MT5

MT5 Experts AI

by tahaalhafid

This expert advisor for MetaTrader 5 utilizes an advanced modular architecture focused on market regimes and decision consensus.

GitHub stars1
Forks0
Last update4 months ago11 May 2026
LicenceNone stated

Overview

MT5 Experts AI implements a Council-based execution system that evaluates quality scores, spread fractions, and consensus levels before triggering trades. The system features an AI evolution engine designed to adapt parameters over specific bar intervals, including automated rollback mechanisms based on performance metrics like win rate and consecutive losses. Risk is managed through fixed lot sizing, runtime safety hardening, and emergency liquidation states. The README is minimal.

Details

Author

tahaalhafid on GitHub

Type

Trading robot

Platform

MetaTrader 5 (MQL5)

Strategy

AI / machine learning, Multi-strategy

Markets

Any symbol

Timeframes

Any timeframe

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.

EA Files

Input Parameters

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

NameTypeDefaultDescription
FixedLotdouble0.10
Magiculong26059999
EnableCouncilSetupLifecycleboolfalse
CouncilSetupConfirmBarsint1
EnableCouncilExecutionQualityGateboolfalse
CouncilExecutionQualityMinScoredouble0.55
CouncilMaxSpreadAtrFractiondouble0.12
CouncilMaxChaseAtrFractiondouble0.30
EnableCouncilActivationPressureGateboolfalse
CouncilMinConsensusForWeakCoveragedouble0.62
CouncilMinConsensusForConflictedCoveragedouble0.72
CouncilMinConsensusToAllowCrowdedActivationdouble0.76
Show all 40 inputs
NameTypeDefaultDescription
CouncilMaxCrowdingConcentrationdouble0.82
EnableCouncilDirtyEnvironmentTighteningboolfalse
CouncilDirtyTradabilityFloordouble0.55
CouncilCompressionTradabilityFloordouble0.58
CouncilReversalRiskTradabilityFloordouble0.52
CouncilDirtyMinEnvironmentScoredouble0.74
CouncilTransitionalMinCouncilQualitydouble0.72
EnableCouncilLiveExitArchitectureboolfalse
CouncilExitPremiseDeathM5Barsint6
CouncilExitMinProgressToKeepdouble0.18
CouncilExitGivebackTriggerProgressdouble0.55
CouncilExitGivebackRetainedFloordouble0.20
EnableAIEvolutionbooltrue
EvolutionEveryNBarsint30
EnableAutoApplyPlanbooltrue
EvolutionCooldownBarsint10
LogEvolutionRawResponsebooltrue
EnableAutoRollbackbooltrue
RollbackMinTradesAfterApplyint6
RollbackMinWinRatedouble35.0
RollbackMaxConsecutiveLossesint3
RollbackMinAvgProfitPerTradedouble-1.0
EnableRuntimeExecutionbooltrue
OneTradeAttemptPerBarbooltrue
EnableRuntimeRiskSafetyHardeningbooltrue
RuntimeExecutionFailureLockoutCountint3
EnableEmergencyFlatOnCriticalSafetyStateboolfalse
EnableOpenPositionManagementInBlockedSafeModebooltrue

How to Install It

  1. 1Download the sourceUse "Download source (.zip)" above, or clone tahaalhafid/mt5-experts-ai 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
78 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 10 months ago MIT GitHub repository of My Trading Bot

Makets GA

by nopaixx
20 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 2 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 trading robots

Need a Broker for MT5?

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

Compare brokers