Collection · MT5

ML Regression EA

by dillahbaraja

ML Regression EA is an event-driven automated trading system for MetaTrader 5 designed to execute Forex trades using machine learning regression models integrated via ONNX.

GitHub stars1
Forks0
Last update10 days ago14 Nov 2026
LicenceNone stated

Overview

ML Regression EA evaluates market predictions from algorithms such as XGBoost, LightGBM, CatBoost, and Scikit-Learn HGB against configurable buy and sell thresholds on bar updates. The EA incorporates built-in fundamental news filtering with event-blocking controls to restrict trades around macroeconomic announcements. Risk management relies on fixed stop loss and take profit levels, spread filtering, position count limits, and risk-percentage lot sizing.

Details

Input Parameters

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

NameTypeDefaultDescription
InpMagicNumberulong123456
InpMaxSpreadint20
InpStopLossint200
InpTakeProfitint400
InpRiskPercentdouble5.0
InpMaxOpenPositionint1
InpAllowReversebooltrue
InpTradeOnlyNewBarbooltrue
InpUseModelThresholdsbooltrue
InpThresholdBuydouble0.00015
InpThresholdSelldouble-0.00015
InpModelTypeENUM_MODEL_TYPEMODEL_ENSEMBLE_REGRESSION
Show all 33 inputs
NameTypeDefaultDescription
InpAssetFolderstringRegression_Assets\\
InpNewsCsvPrefixstringNewsEvents_
InpUseEventBlockingbooltrue
InpUseEventInversebooltrue
InpOneTradePerEventbooltrue
InpUseFundamentalFilterbooltrue
InpShowUpcomingNewsOnChartbooltrue
InpMaxUpcomingNewsDisplayCountint20
InpAutoDetectNewsTimeOffsetboolfalse
InpManualNewsTimeOffsetHoursint0
InpNewsRefreshLeadMinutesint5
InpNewsRefreshLagMinutesint5
InpNewsRecentPastMinutesint15
InpNewsTradeDelayMinutesint5
InpNewsTimerHeartbeatSecondsint30
InpLogEventDecisionsbooltrue
InpEnableDebugLogboolfalse
InpEnableDebugCsvboolfalse
InpDebugCsvFileNamestringRegression_EA_debug.csv
InpTraceEventWindowsbooltrue
InpDebugStatusEveryBarsint250

How to Install It

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

Mt4 Ai Trading

by 160037lk
2 stars

This MetaTrader 4 expert advisor connects to a Python FastAPI backend to facilitate automated trading based on Claude AI signals. The system transmits market data to the server, which performs multi-indicator analysis and sentiment processing before returning trade recommendations. It features multi-timeframe trend fil

MT4 Collection AI / machine learningTrend followingNews
Updated 6 months ago None stated GitHub repository of Mt4 Ai Trading
67 stars

This repository contains a collection of MetaTrader 5 expert advisors, primarily focused on the ChildsPlay strategy derived from online trading forums. The main expert advisor uses multiple exponential moving averages and the Commodity Channel Index across two timeframes to identify trend-following entries. It implemen

MT5 Collection Indicator crossoverMean reversionAI / machine learning
Updated 7 years ago None stated GitHub repository of ChildsPlay MQL5 Collection

Super Trading Collection

by RoyluxuryTrading
24 stars

This repository provides a collection of MetaTrader 4 and 5 expert advisors, including the modular Super Trading Bot series and an AI-driven trading template. The EAs utilize various technical indicators like Bollinger Bands, Parabolic SAR, and moving averages for trend-following and scalping. Built-in risk management

MT4MT5 Collection Trend followingScalpingAI / machine learning High risk
23 stars

This repository provides a collection of MetaTrader 5 expert advisors and indicators developed for experimental purposes. It features a range of trading systems, including standard MetaQuotes examples and custom implementations like NERV and RNN-based logic. The primary expert advisors utilize technical indicators such

MT5 Collection Indicator crossoverMulti-strategyAI / machine learning
21 stars

This MetaTrader 5 repository provides a collection of expert advisors centered around an artificial neural network implementation. Developed using Matlab and exported as a DLL, the system integrates external computational models with MQL5. The primary advisor executes trades within defined time intervals, utilizing pri

MT5 Collection AI / machine learningTrend followingMulti-strategy
Updated 9 years ago None stated GitHub repository of ANN Trader MetaTrader

EA MT5 Research Collection

by codingfordummies911
13 stars

This repository is a large collection of MetaTrader 5 expert advisors and indicators compiled for educational and research purposes. The library features various experimental scripts, with a notable focus on advanced machine learning methodologies including neural networks, reinforcement learning, and unsupervised algo

MT5 Collection AI / machine learning
Updated 11 months ago None stated GitHub repository of EA MT5 Research Collection

More AI 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