Trading robot · MT5

Price Drop Buy Grid EA

by MuhammadHassanC

This MetaTrader 5 Expert Advisor implements a simple long-only grid trading system.

High risk

GitHub stars1
Forks0
Last update1 year ago5 Nov 2025
LicenceNone stated

Overview

Price Drop Buy Grid EA automatically places buy positions whenever the price drops by a user-defined pip interval. Each trade is assigned a fixed lot size and a configurable take profit distance in pips. The EA includes built-in drawdown protection that can pause trading if account equity drops past a specified maximum drawdown percentage. Individual trades do not use stop losses, relying instead on the overall account drawdown limit for risk management. It includes automatic pip value calculations for forex, metals, and indices.

Details

Author

MuhammadHassanC on GitHub

Type

Trading robot

Strategy

Grid

Markets

Any symbol

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 PriceDropBuyEA.mq5. Defaults are the author's; change them in the EA's Inputs tab.

NameTypeDefaultDescription
PipIntervaldouble50.0Pips between each BUY
TakeProfitPipsdouble50.0Take Profit in pips
LotSizedouble0.01Lot size
MagicNumberulong12345Magic number
EnableDrawdownLimitbooltrueDrawdown protection
MaxDrawdownPercentdouble50.0Max drawdown %
ShowLogsbooltrueShow detailed logs

How to Install It

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

GridMaster Pro

by sajidmahamud835
133 stars

An automated MetaTrader 5 expert advisor that executes a bi-directional grid trading strategy. It 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 managem

MT5 Trading robot GridMean reversion High risk
Updated 7 months ago MIT GitHub repository of GridMaster Pro

MultiTrader

by mazmazz
14 stars

MultiTrader is a multi-currency expert advisor for MetaTrader 4 and MetaTrader 5 that executes trades across multiple forex instruments concurrently. It uses a modular system of filters to generate entry and exit signals based on various technical indicators. The EA manages risk through fixed or trailing stop losses, b

MT4MT5 Trading robot GridMulti-strategy High risk
Updated 6 years ago GPL-3.0 GitHub repository of MultiTrader

Prem Gold Advisor

by Premkumar238
13 stars

Prem Gold Advisor is an automated MetaTrader 5 expert advisor specialized for XAUUSD (Gold) trading on the five-minute timeframe. It initiates trades using breakout levels placed at specific distances from the candle open. The strategy features a progressive scale-in mechanism, adding new orders as the price hits succe

MT5 Trading robot BreakoutTrend followingMartingale High risk
Updated 2 months ago None stated GitHub repository of Prem Gold Advisor

Punlie Grid

by punlie
10 stars

Punlie Grid is a MetaTrader 5 expert advisor that executes a grid trading strategy tailored for gold, crude oil, and cryptocurrencies. It places orders at fixed point intervals and features a trend-following filter that uses daily timeframe data to align trades with the prevailing market direction. Risk controls includ

MT5 Trading robot GridTrend following High risk
Updated 1 year ago MIT GitHub repository of Punlie Grid

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
10 stars

This MetaTrader 5 expert advisor automates trading based on Smart Money Concepts and Order Block identification. It analyzes price action across multiple timeframes, utilizing higher timeframe data for trend context and lower timeframes for entries. The system includes trade management tools such as break-even triggers

MT5 Trading robot SMC / ICT / price actionGrid High risk

More grid EAs

Related on ForexR

Need a Broker for MT5?

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

Compare MT5 brokers