Collection · MT5

BotTrade ML

by soemsri

This MetaTrader 5 expert advisor collection focuses on machine learning strategies, specifically Lorentzian Classification and Nadaraya-Watson Kernel Regression.

High risk

GitHub stars1
Forks0
Last update2 days ago20 Sep 2026
LicenceMIT

Overview

BotTrade ML is primarily designed for trading gold on the H4 timeframe but offers configurable parameters for broader market use. The system supports both mean-reversion and breakout entry modes, utilizing an EMA 200 filter for trend alignment and a session-based time filter. Risk management is handled through fixed or dynamic stop losses, target risk-reward ratios, and optional breakeven or trailing stop functions. It includes specialized tools for VIX mean reversion and external LINE alerts.

Details

Author

soemsri on GitHub

Type

Collection

Platform

MetaTrader 5 (MQL5)

Strategy

AI / machine learning, Mean reversion, Breakout, Trend following, Grid

Markets

Gold, Forex

Timeframes

H4 and above

Risk profile

  • Opens a grid of orders: exposure builds up in a trend

Input parameters

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

NameTypeDefaultDescription
InpStrategyModeENUM_STRATEGY_MODESTRAT_MEAN_REVERSIONStrategy Mode (Mean Reversion is recommended!)
InpLotSizedouble0.1Lot Size
InpTradeDirectionENUM_TRADE_DIRECTIONTRADE_DIR_BOTHTrade Direction (Both / Long Only / Short Only)
InpSlModeENUM_SL_MODESL_MODE_FIXEDStop Loss Mode
InpFixedSlPointsint250Fixed Stop Loss (points)
InpRiskRewardRatiodouble2.0Risk-Reward Ratio (e.g. 2.0 = RR 1:2)
InpMagicNumberulong82809420Magic Number
InpSlippageulong30Max Slippage (points)
InpEnableBreakevenboolfalseEnable Breakeven
InpBreakevenTriggerRatiodouble1.0Breakeven Trigger (R:R Ratio, e.g. 1.0 = 1:1)
InpEnableTrailingbooltrueEnable Trailing Stop (Opposite Band)
InpUseEmaFilterbooltrueUse EMA 200 Trend Filter
Show all 27 inputs
NameTypeDefaultDescription
InpEmaPeriodint200EMA Trend Filter Period
InpUseTimeFilterbooltrueUse Time Session Filter
InpHourStartint8Session Start Hour (Server Time, 8 = 13:00 BKK)
InpHourEndint18Session End Hour (Server Time, 18 = 23:00 BKK)
InpLookbackint30Lookback Window
InpBandwidthdouble8.0Base Bandwidth (h)
InpAdaptivebooltrueAdaptive Bandwidth (ATR-scaled)
InpAtrLenint14ATR Length (adaptive)
InpSmoothint3MA Output Smoothing
InpBandMultdouble1.0Band Multiplier (sigma)
InpBandLenint24Band Lookback (sigma)
InpBandSmoothint5Band Smoothing
InpAlertLinebooltrueSend LINE Alerts
InpLineAccessTokenstringChannel Access Token
InpLineTargetIdstringLINE Target ID (Group ID/User ID, optional)

How to install it

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

4 stars

This repository is a collection of MetaTrader 5 expert advisors developed as early coding projects between 2021 and 2024. It includes multiple robots implementing varied strategies such as range breakouts, Donchian channels, Fibonacci retracements, and Bollinger Bands. The expert advisors are largely technical indicato

MT5 Collection Trend followingBreakoutMean reversion High risk
1 stars

This repository features a collection of MetaTrader 5 Expert Advisors developed for strategy and risk-management research. It includes a multi-pair mean reversion grid system, a gold breakout robot using previous day levels, and trend-following strategies based on moving averages. The EAs incorporate extensive risk con

MT5 Collection Trend followingBreakoutMean reversion High risk

XM Gold AI Trader

by fuquan728-lang
1 stars

XM Gold AI Trader is an automated expert advisor for MetaTrader 5 that leverages a Python-based backend powered by DeepSeek AI. The system processes market data using indicators such as RSI, MACD, and Bollinger Bands to generate signals, which are transmitted via WebSocket or TCP sockets. It includes robust risk contro

MT5 Collection AI / machine learningTrend followingMean reversion High risk
Updated 2 months ago None stated GitHub repository of XM Gold AI Trader

Xau Cloud AI Sniper

by Lamarrsdrip
1 stars

Xau Cloud AI Sniper is an automated trading robot for MetaTrader 5 designed for gold trading. It utilizes a multi-layered entry pipeline involving a pattern engine, breakout detection, and trend alignment, often synchronized with external cloud-based market outlooks. The system features an AI-filter mode to validate tr

MT5 Collection BreakoutTrend followingMean reversion High risk
Updated yesterday None stated GitHub repository of Xau Cloud AI Sniper
135 stars

This repository features a diverse collection of expert advisors and trading utilities for MetaTrader 4 and MetaTrader 5. It includes automated robots based on trendline analysis, session breakouts, and technical indicator crossovers using MACD, RSI, and Williams Percent Range. The library provides various tools for ri

MT4MT5 Collection Trend followingBreakoutGrid High risk
Updated 1 year ago None stated GitHub repository of Nkanven EA Collection
67 stars

This repository contains a large collection of over 100 expert advisors for the MetaTrader 5 platform, many of which appear to be generated using the Mission Automate tool. The library covers a wide variety of trading methodologies including range breakouts, Ichimoku cloud strategies, Heiken Ashi engulfing patterns, an

MT5 Collection Trend followingBreakoutMartingale High risk
Updated 3 years ago None stated GitHub repository of Konz MQL5 EA Collection

More collections

Need a broker for MT5?

Compare regulated brokers that support MetaTrader, with spreads, minimum deposits and leverage side by side.

Compare brokers