Trading robot · MT5

Grid X MA

by khamminasomchanmavong

The Grid X MA EA is an MT5 grid trading robot.

High risk

GitHub stars1
Forks0
Last update3 months ago22 Jun 2026
LicenceNone stated

Overview

Grid X MA enters trades by opening multiple orders in a grid formation filtered by an EMA 81 MA signal. The EA supports buy and sell directions or both, with adjustable lot sizes starting at 0.05 and steps of 0.01. Trades are managed with a maximum of 100 orders, take profit at 300 points, and grid steps of 250 points. Risk features include equity recovery thresholds and cooldown periods after recovery events. No stop loss is set by default. It functions on the MT5 platform for forex trading.

Details

Author

khamminasomchanmavong on GitHub

Type

Trading robot

Platform

MetaTrader 5 (MQL5)

Strategy

Grid, Indicator crossover

Markets

Forex

Timeframes

Any timeframe

Risk Profile

  • Opens a grid of orders: exposure builds up in a trend
  • Trades without a fixed stop loss

Input Parameters

Read from Grid x MA-Live.mq5. Defaults are the author's; change them in the EA's Inputs tab.

NameTypeDefaultDescription
MAPeriodint81
TradeDirectionENUM_TRADE_DIRECTIONTRADE_BUY_AND_SELL
GridModeENUM_GRID_MODEMODE_GRID
LotSizedouble0.05
LotStepdouble0.01
GridStepPointsint250
TakeProfitPointsint300
MaxOrdersint100
RecoveryEquityThresholddouble0.0
CooldownMinutesint15

How to Install It

  1. 1Download the sourceUse "Download source (.zip)" above, or clone khamminasomchanmavong/Grid-x-MA 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

5 stars

This MetaTrader 5 expert advisor is designed for gold trading using a combined martingale and grid approach. It uses a moving average crossover filter to determine initial entry direction. If the market moves against the position, the EA opens additional trades at fixed intervals, increasing the lot size via a multipli

MT5 Trading robot MartingaleGridIndicator crossover High risk
Updated 11 months ago None stated GitHub repository of XAUUSD Martingale Grid

AutoTrade EA

by liucheng-12-08
3 stars

AutoTrade EA is a scalping robot for MetaTrader 4 and 5 that utilizes a multi-indicator signal scoring system based on Exponential Moving Average crossovers and RSI levels. It employs an aggressive trade management strategy featuring a dynamic grid and a stepped martingale lot scaling system where position sizes increa

MT4MT5 Trading robot ScalpingIndicator crossoverMartingale High risk
Updated 8 months ago None stated GitHub repository of AutoTrade EA

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

Fibonacci ICT EA

by Shifrozy
2 stars

Fibonacci ICT EA for MetaTrader 5 combines institutional price action concepts with Fibonacci retracement levels. It identifies higher timeframe trends and enters on pullbacks to specific golden zones using confirmations like Break of Structure and Fair Value Gaps. The system includes robust risk management such as per

MT5 Trading robot SMC / ICT / price actionIndicator crossoverMean reversion High risk
Updated 7 weeks ago None stated GitHub repository of Fibonacci ICT EA

Mr X Grid Hedge

by ibrahimzameel9232-lgtm
2 stars

Mr X Grid Hedge is a MetaTrader 5 expert advisor specifically designed for XAUUSD trading. It utilizes a grid strategy with entry signals confirmed by a combination of EMA crossovers, RSI bounds, and ATR volatility filters. The system manages risk through automated hedging triggered by drawdown or specific grid depth.

MT5 Trading robot GridMartingaleHedging High risk
Updated 11 months ago None stated GitHub repository of Mr X Grid Hedge

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