Trading robot · MT5

ONNX LSTM Trading Bot

by winningtrendingbots

This MetaTrader 5 expert advisor employs an ONNX-integrated LSTM model to forecast price action for the EURUSD pair on the H1 timeframe.

Archived by its author

GitHub stars1
Forks0
Last update7 months ago3 Feb 2026
LicenceNone stated

Overview

ONNX LSTM Trading Bot generates trade signals by comparing neural network predictions against current market prices or previous trend forecasts. The system manages risk through fixed or ATR-based stop loss and take profit levels, a trailing stop mechanism, and a breakeven trigger. It also incorporates time-of-day filters and a bar-based exit rule to limit exposure. The absence of a README means documentation is limited to the source code comments.

Details

Author

winningtrendingbots on GitHub

Type

Trading robot

Platform

MetaTrader 5 (MQL5)

Strategy

AI / machine learning, 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 ONNX_1.0.0.4_eurusd.mq5. Defaults are the author's; change them in the EA's Inputs tab.

NameTypeDefaultDescription
InpLotsdouble0.01
InpMagicNumberint123456Magic Number
InpSignalModeENUM_SIGNAL_MODEMODE_TRENDSignal generation mode
InpUseTradingHoursbooltrueUse trading hours restriction
InpStartHourint8Start hour (server time)
InpEndHourint17End hour (server time)
InpUseStopsbooltrue
InpStopLossint300Stop Loss (points) if not dynamic
InpTakeProfitint950Take Profit (points) if not dynamic
InpUseDynamicStopsboolfalseUse ATR-based stops
InpATRMultiplierSLdouble2.0ATR multiplier for SL
InpATRMultiplierTPdouble3.0ATR multiplier for TP
Show all 26 inputs
NameTypeDefaultDescription
InpUseTrailingbooltrue
InpTrailingStopint60Trailing distance (points)
InpTrailingStepint70Trailing step (points)
InpTrailingATRbooltrueUse ATR for trailing
InpTrailingATRMultiplierdouble3.0
InpUseMaxBarsbooltrue
InpMaxBarsint2Max bars to hold position
InpUseBreakevenboolfalseMove SL to breakeven
InpBreakevenTriggerint100Trigger distance (points)
InpBreakevenOffsetint10Offset from entry (points)
InpMinPredictionDeltadouble1.5Min delta in pips for signal (REDUCED for 24 bars)
InpUseATRFilterboolfalseFilter signals by ATR
InpMinATRFilterMultidouble0.8Min delta as % of ATR (REDUCED)
InpPrintDebugInfobooltruePrint debug information

How to install it

  1. 1Download the sourceUse "Download source (.zip)" above, or clone winningtrendingbots/ONNXbot 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, and any .mqh files into the Include folder the code expects.
  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

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

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

Code To Cash

by LUBANGAKENE
9 stars

Code To Cash is an end-to-end algorithmic trading system for MetaTrader 5 that combines deep learning forecasts with technical breakout logic. It utilizes a ZeroMQ bridge to receive real-time market predictions from an external Python backend. The system enters trades using BuyStop or SellStop orders at recent price ex

MT5 Trading robot AI / machine learningBreakoutTrend following
Updated 1 year ago None stated GitHub repository of Code To Cash
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

MarketSync EA

by sajidmahamud835
6 stars

MarketSync EA is an experimental MetaTrader 5 expert advisor designed to bridge algorithmic trading with external artificial intelligence. It functions by streaming real-time market and account data from the MT5 terminal to a local Node.js backend via HTTP requests. The external server processes this information using

MT5 Trading robot AI / machine learningGridTrend following High risk
Updated 8 months ago MIT GitHub repository of MarketSync EA

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