Trading robot · MT5

GGTH Forex Predictor

by syngyn

This machine learning robot for MetaTrader 5 uses an ensemble of AI models including LSTM, GRU, and LightGBM to predict price movements.

High risk

GitHub stars4
Forks3
Last update4 months ago18 May 2026
LicenceGPL-3.0
Latest releaseGGTH-Predictor5 months ago

Overview

GGTH Forex Predictor 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 maximum holding time limit. It includes an averaging down recovery mechanism that scales lot sizes if a trade goes into drawdown. Users generate prediction data via an external GUI for operation. The system includes logic to handle FIFO regulations for US-based brokerage accounts.

Details

Author

syngyn on GitHub

Type

Trading robot

Platform

MetaTrader 5 (MQL5)

Strategy

AI / machine learning, Trend following, Martingale

Markets

Forex

Timeframes

M15-H1, H4 and above

Risk profile

  • Uses martingale lot scaling: losses can grow fast

Topics

algorithm-tradingensemble-machine-learningexpert-advisorforexforex-tradinggru-modellight-gbm-modellstm-modelmachine-learningmetatrader-5

Input parameters

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

NameTypeDefaultDescription
InpStrategyTesterModeboolfalseStrategy Tester Mode (use CSV lookups)
InpSymbolstringEURUSDTrading Symbol
InpTradingTimeframeENUM_TIMEFRAMESPERIOD_H1Prediction timeframe for trading
InpEnableTradingbooltrueEnable live trading
InpLotModeENUM_LOT_MODELOT_MODE_FIXEDLot Sizing Mode
InpFixedLotdouble0.1Base Lot Size
InpRiskPercentdouble1.0Risk % (if using Risk mode)
InpMagicint20260522Magic Number
InpFIFOCompliantbooltrueFIFO Compliant Mode (NFA/US brokers)
InpMaxMarginUsagePctdouble60.0MAX Margin Utilization %
InpMinPredictionPipsdouble17.0Min Signal Confidence (pips)
InpUseAveragingDownbooltrueEnable Averaging Down
Show all 40 inputs
NameTypeDefaultDescription
InpAvgLevel1Lotsdouble0.2Level 1: Lot Size
InpAvgLevel1Pipsint15Level 1: Pips Against Position
InpAvgLevel2Lotsdouble0.2Level 2: Lot Size
InpAvgLevel2Pipsint35Level 2: Pips Against Position
InpAvgLevel3Lotsdouble0.3Level 3: Lot Size
InpAvgLevel3Pipsint10000Level 3: Pips Against (10000=disabled)
InpUseProfitProtectionbooltrueEnable Profit Protection
InpMinPositionsForProtectionint2Min Positions to Trigger
InpProfitTargetAmountdouble27.0Profit Target ($) to Close All
InpUseMaxHoldTimebooltrueEnable Max Hold Time
InpMaxHoldHoursint10Auto-Close Hold Time (hours)
InpUseMarketContextVetoboolfalseUse Local Volatility Veto
InpVolatilitySpikeMultiplierdouble2.5ATR Spike Threshold (2.5x=extreme)
InpMaxCandleChangePercentdouble0.5Max Single Candle % Move
InpVolatilityLookbackint20Volatility Average Period
InpUsePredictedPricebooltrueUse predicted price as TP
InpStopLossPipsint60Stop loss in pips
InpTakeProfitPipsint200Take profit in pips (if not using predicted)
InpTPMultiplierdouble1.0TP multiplier (adjust predicted TP)
InpMinTPPipsint17Minimum TP distance in pips
InpMaxTPPipsint70Maximum TP distance in pips
InpUseTrendFilterbooltrueUse trend filter
InpTrendMAPeriodint83Trend MA period
InpTrendMAMethodENUM_MA_METHODMODE_EMATrend MA method
InpTrendMAPriceENUM_APPLIED_PRICEPRICE_CLOSETrend MA price
InpUseRSIFilterbooltrueUse RSI filter
InpRSIPeriodint14RSI period
InpRSIOverboughtdouble75.0RSI overbought level

How to install it

  1. 1Download the sourceUse "Download source (.zip)" above, or clone syngyn/GGTH-Forex-Predictor 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

AI Enhanced HFT

by Marco210210
20 stars

This MetaTrader 5 expert advisor combines technical indicators with machine learning forecasts to trade the Forex market. It 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 extern

MT5 Trading robot Trend followingIndicator crossoverAI / machine learning High risk
Updated 1 year ago None stated GitHub repository of AI Enhanced HFT
1 stars

LQS AI Institutional Engine is a MetaTrader 5 robot designed for trading gold using market microstructure analysis. It combines four analytical modules focusing on liquidity sweeps, order flow divergence, Wyckoff accumulation and distribution phases, and multiple anchored VWAP levels. The system features an integrated

MT5 Trading robot SMC / ICT / price actionAI / machine learningMean reversion High risk
Updated 4 months ago None stated GitHub repository of Lqs Ai Institutional Engine

Quantum AU

by jarbcs1-prog
1 stars

This automated trading robot for MetaTrader 5 is designed specifically for gold and silver markets. It utilizes an AI-driven approach incorporating quantum state modeling and a chaos filter to identify market entries. The strategy weights inputs from RSI, ADX, and moving averages against an adaptive decision threshold.

MT5 Trading robot AI / machine learningTrend followingMean reversion High risk
Updated 10 months ago None stated GitHub repository of Quantum AU

Quantum Alpha MT5 ONNX

by yole-shop-oficial
1 stars

This expert advisor for MetaTrader 5 combines traditional quantitative strategies with machine learning via the ONNX runtime. It features multiple trading modes including Order Blocks, market structure analysis, and a hybrid AI strategy using neural network predictions trained in PyTorch. The system incorporates compre

MT5 Trading robot SMC / ICT / price actionAI / machine learningTrend following High risk
Updated 5 weeks ago None stated GitHub repository of Quantum Alpha MT5 ONNX

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

Nyao Scalper

by elrizwiraswara
173 stars

Nyao Scalper is an automated scalping robot for MetaTrader 5 that utilizes a multi-factor weighted scoring system to identify trade opportunities. It evaluates trend alignment through EMA crossovers, momentum via RSI, and price action through wick rejection and candle body analysis. The EA manages risk with adaptive AT

MT5 Trading robot ScalpingTrend followingMartingale High risk
Updated 3 months ago BSD-3-Clause GitHub repository of Nyao Scalper

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