Trading robot · MT5

GridMaster Pro

by sajidmahamud835

An automated MetaTrader 5 expert advisor that executes a bi-directional grid trading strategy.

High risk

GitHub stars129
Forks41
Last update5 months ago6 Apr 2026
LicenceMIT

Overview

GridMaster Pro uses the Average True Range (ATR) indicator to dynamically calculate grid spacing, allowing the system to adapt to current market volatility. The robot supports neutral, bullish, and bearish modes. It includes risk management features such as fixed or dynamic lot sizing based on account percentage, hard stop losses, take profits, and a trailing stop mechanism. A built-in circuit breaker monitors equity drawdown, pausing the EA and optionally closing all positions if a specific percentage threshold is breached.

Details

Author

sajidmahamud835 on GitHub

Type

Trading robot

Platform

MetaTrader 5 (MQL5)

Strategy

Grid, Mean reversion

Markets

Forex, Gold, Crypto, Indices

Timeframes

M15-H1

Risk profile

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

Topics

eamql5mt5grid-tradinggrid-trading-bottradingbot

Input parameters

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

NameTypeDefaultDescription
GridModeENUM_GRID_MODEGRID_NEUTRALGrid Mode
MaxOrdersint5Max orders per side
ATRPeriodint14ATR period
ATRMultiplierdouble1.5ATR multiplier for grid distance
LotModeENUM_LOT_MODELOT_FIXEDLot sizing mode
LotSizedouble0.1Fixed lot size
RiskPercentdouble1.0Risk % per order (dynamic mode)
UseTakeProfitbooltrueEnable Take Profit
DefaultTPdouble200.0Min TP in points (auto-adjusted for broker)
UseStopLossbooltrueEnable Stop Loss
DefaultSLdouble1000.0Min SL in points (auto-adjusted for broker)
UseTrailingStopbooltrueEnable Trailing Stop
Show all 18 inputs
NameTypeDefaultDescription
TrailingPointsdouble100.0Trailing stop in points
TrailingStepdouble20.0Trailing step in points
MaxDrawdownPctdouble5.0Max drawdown % before pausing
CloseOnDrawdownbooltrueClose all orders on drawdown breach
MagicBaseint47291Base magic number
DebugModeboolfalseEnable debug logging

How to install it

  1. 1Download the sourceUse "Download source (.zip)" above, or clone sajidmahamud835/grid-master-pro-mt5-ea 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

RSI Martingale EA

by peefpee
10 stars

This Expert Advisor for MetaTrader 5 implements a martingale trading strategy triggered by the Relative Strength Index (RSI). It opens an initial position when RSI reaches overbought or oversold thresholds. If price continues to move against the initial trade, the EA layers additional orders at set point intervals, mul

MT5 Trading robot MartingaleMean reversionGrid High risk
8 stars

High Frequency Grid EA is an automated trading robot for MetaTrader 5 that implements a mean-reversion strategy through a grid of pending orders. It places buy and sell stop orders at calculated distances, using dynamic spread monitoring to ensure execution only during favorable conditions. The EA includes a trailing s

MT5 Trading robot GridMean reversionScalping High risk
7 stars

This MetaTrader 5 expert advisor executes a mean reversion strategy based on price deviation from a Simple Moving Average. It enters short positions when prices rise above the average and long positions when prices fall below. The algorithm utilizes an aggressive grid-based recovery system where both the entry distance

MT5 Trading robot Mean reversionMartingaleGrid High risk
4 stars

This high-frequency scalping robot for MetaTrader 5 is specifically designed for the gold market. It determines entry points using a combination of EMA trend filters, ADX trend strength, and dynamic RSI levels. To recover from losing positions, the EA utilizes an aggressive martingale grid system with a customizable lo

MT5 Trading robot ScalpingMartingaleGrid High risk
3 stars

This expert advisor facilitates arbitrage trading between futures and spot instruments, primarily targeting gold and stock indices. Available for MetaTrader 4 and 5, it monitors the price difference between two related symbols against a moving average to identify trade opportunities. The logic includes a noise-filterin

MT4MT5 Trading robot ArbitrageMean reversionGrid High risk
Updated 3 years ago None stated GitHub repository of Gold Futures Spot Arbitrage

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

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