Trading robot · MT5

Ensemble Machine Learning Trader

by dillahbaraja

This automated trading system for MetaTrader 5 utilizes machine learning models via the ONNX runtime to forecast currency trends.

GitHub stars1
Forks0
Last update6 weeks ago5 Aug 2026
LicenceNone stated

Overview

Ensemble Machine Learning Trader implements an ensemble approach, combining predictions from Logistic Regression, Support Vector Machines, Random Forest, and XGBoost. The system operates in two primary modes: technical indicator analysis and macroeconomic news-driven execution. It manages risk through fixed stop loss and take profit points. Users can configure model agreement thresholds and filter trades based on the scheduled impact of economic news events.

Details

Author

dillahbaraja on GitHub

Type

Trading robot

Platform

MetaTrader 5 (MQL5)

Strategy

AI / machine learning, News, Trend following

Markets

Forex

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

NameTypeDefaultDescription
InpModelFolderstringEnsembleOnnxTrader
InpSignalSourceENUM_SIGNAL_SOURCESIGNAL_ENSEMBLE
InpLotsdouble0.10
InpSlPointsint300
InpTpPointsint600
InpUseCommonFilesbooltrue
InpUseCpuOnlybooltrue
InpCloseOnHoldboolfalse
InpMagicNumberulong26072401
InpCooldownBarsint12
InpMinSignalEdgedouble0.03
InpMinAgreementVotesint2
Show all 18 inputs
NameTypeDefaultDescription
InpEnableTransactionCsvbooltrue
InpTransactionCsvFilestring
InpExportHistoryOnDeinitbooltrue
InpUseNewsFilterbooltrue
InpNewsCsvFilestringAssets\\MT5_2018.01.01-2026.06.30_ALL_.csv
InpNewsMinImpactint0

How to install it

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

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 2 days ago None stated GitHub repository of Xau Ai 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

FxChartAI OpenEA

by abiodunaremu
49 stars

FxChartAI OpenEA is an automated trading solution for MetaTrader 5 that executes trades based on signals retrieved from the FxChartAI platform. The system operates in two modes, allowing for live API integration or historical testing using CSV datasets. It utilizes multi-timeframe analysis across M10 and H1 intervals,

MT5 Trading robot AI / machine learningTrend following
Updated 1 year ago GPL-3.0 GitHub repository of FxChartAI OpenEA
42 stars

This Expert Advisor for MetaTrader 5 is specifically designed for XAUUSD trading on the M1 timeframe. It utilizes a hybrid strategy combining classic technical indicators like RSI, Moving Averages, and ATR with an OpenAI API integration for signal validation. The robot features an on-chart dashboard for telemetry and i

MT5 Trading robot ScalpingTrend followingAI / machine learning
Updated 5 months ago None stated GitHub repository of Gold EA MT5 With OpenAI

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