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.
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.
Read from Regression_EA.mq5. Defaults are the author's; change them in the EA's Inputs tab.
Name
Type
Default
Description
InpMagicNumber
ulong
123456
InpMaxSpread
int
20
InpStopLoss
int
200
InpTakeProfit
int
400
InpRiskPercent
double
5.0
InpMaxOpenPosition
int
1
InpAllowReverse
bool
true
InpTradeOnlyNewBar
bool
true
InpUseModelThresholds
bool
true
InpThresholdBuy
double
0.00015
InpThresholdSell
double
-0.00015
InpModelType
ENUM_MODEL_TYPE
MODEL_ENSEMBLE_REGRESSION
Show all 33 inputs
Name
Type
Default
Description
InpAssetFolder
string
Regression_Assets\\
InpNewsCsvPrefix
string
NewsEvents_
InpUseEventBlocking
bool
true
InpUseEventInverse
bool
true
InpOneTradePerEvent
bool
true
InpUseFundamentalFilter
bool
true
InpShowUpcomingNewsOnChart
bool
true
InpMaxUpcomingNewsDisplayCount
int
20
InpAutoDetectNewsTimeOffset
bool
false
InpManualNewsTimeOffsetHours
int
0
InpNewsRefreshLeadMinutes
int
5
InpNewsRefreshLagMinutes
int
5
InpNewsRecentPastMinutes
int
15
InpNewsTradeDelayMinutes
int
5
InpNewsTimerHeartbeatSeconds
int
30
InpLogEventDecisions
bool
true
InpEnableDebugLog
bool
false
InpEnableDebugCsv
bool
false
InpDebugCsvFileName
string
Regression_EA_debug.csv
InpTraceEventWindows
bool
true
InpDebugStatusEveryBars
int
250
How to Install It
1Download the sourceUse "Download source (.zip)" above, or clone dillahbaraja/Regression-Models 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.
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 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
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
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
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
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
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