Trading robot · MT5

AI Enhanced HFT

by Marco210210

This MetaTrader 5 expert advisor combines technical indicators with machine learning forecasts to trade the Forex market.

High risk

GitHub stars20
Forks6
Last update1 year ago10 Jul 2025
LicenceNone stated

Overview

AI Enhanced HFT uses a trend-following approach based on Exponential Moving Average crossovers, filtered by the Average Directional Index and volume confirmations. A unique feature is its integration with external AI models including XGBoost, Random Forest, and LSTM via TCP sockets or CSV files. The system dynamically adjusts position sizing based on the agreement between technical signals and AI predictions. Risk management includes fixed stop loss and take profit levels, plus a dynamic exit strategy.

Details

Author

Marco210210 on GitHub

Type

Trading robot

Platform

MetaTrader 5 (MQL5)

Strategy

Trend following, Indicator crossover, AI / machine learning, Martingale

Markets

Forex, Gold

Timeframes

M15-H1

Risk profile

  • Uses martingale lot scaling: losses can grow fast

EA files

Topics

ai-tradingalgorithmic-tradingexpert-advisorfinancial-forecastingforexhigh-frequency-tradinglstmmachine-learningmetatrader5random-forest

Input parameters

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

NameTypeDefaultDescription
EMA_Fast_Periodint6
EMA_Slow_Periodint24
ADX_Periodint14
ADX_Thresholddouble22.0
ADX_Exit_Thresholddouble25.0
StopLoss_Pipsdouble100.0
TakeProfit_Pipsdouble300.0
LotSizedouble0.1
LotMultiplierAgreementdouble1.2
LotMultiplierDisagreementdouble0.5
UseAIPredictionbooltrue

How to install it

  1. 1Download the sourceUse "Download source (.zip)" above, or clone Marco210210/AI-Enhanced-HFT 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

EA Scalper XAUUSD

by francomascareloai
236 stars

EA Scalper XAUUSD is an automated trading research project for MetaTrader 5 focused on gold. It employs a multifaceted entry strategy using Smart Money Concepts like order blocks and liquidity sweeps, alongside moving average crossovers and Fibonacci zones. The EA includes a self-learning module designed to adapt to di

MT5 Trading robot SMC / ICT / price actionIndicator crossoverScalping High risk
Updated 3 months ago Custom licence GitHub repository of EA Scalper XAUUSD
6 stars

This MetaTrader 5 expert advisor provides a versatile framework for trading based on Heiken Ashi price action. It allows users to toggle between numerous built-in strategies, including trend following, moving average crossovers, Fibonacci levels, and various oscillators like RSI and MACD. The system includes an option

MT5 Trading robot Trend followingIndicator crossoverMean reversion
Updated 2 years ago None stated GitHub repository of Heiken Ashi Complete Strats
4 stars

This machine learning robot for MetaTrader 5 uses an ensemble of AI models including LSTM, GRU, and LightGBM to predict price movements. It executes trades based on signal confidence and predicted price targets. The EA features multiple risk controls such as volatility filters, trend-based MA filters, RSI checks, and a

MT5 Trading robot AI / machine learningTrend followingMartingale High risk
Updated 4 months ago GPL-3.0 GitHub repository of GGTH Forex Predictor

Nafi Deep RL

by neoricalex
3 stars

Nafi is a MetaTrader 5 expert advisor framework designed for deep reinforcement learning in forex trading. It bridges Python-based training environments, such as OpenAI Gym and PyTorch, with MetaTrader to facilitate automated trade execution. The system features standard risk management controls including fixed lot siz

MT5 Trading robot AI / machine learningTrend followingIndicator crossover
Updated 7 years ago None stated GitHub repository of Nafi Deep RL

IchiDCA CCBSN PropFirm EA

by magicniuniu
3 stars

IchiDCA CCBSN PropFirm EA is an automated trend-following robot for MetaTrader 5, optimized for gold and forex markets. It triggers trades based on Ichimoku Cloud breaks, filtered by dual Exponential Moving Averages and MACD indicators. The strategy manages positions through a Dollar Cost Averaging system that layers u

MT5 Trading robot Trend followingGridMean reversion High risk

STO Martin

by crq644
2 stars

STO Martin is a grid-based trading robot for MetaTrader 5 that uses technical indicators to manage entries and recoveries. It employs a Stochastic Oscillator for execution signals and a Moving Average to filter trades according to the prevailing trend. The EA features a martingale lot-scaling system that adds positions

MT5 Trading robot MartingaleGridTrend following High risk
Updated 3 years ago None stated GitHub repository of STO Martin

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