Trading robot · MT4

Grid EA

by sonidelav

This expert advisor for MetaTrader 4 implements a grid-based scalping strategy.

High risk

GitHub stars52
Forks21
Last update8 years ago17 Sep 2018
LicenceGPL-3.0

Overview

Grid EA places multiple trade orders at fixed intervals, defined by a configurable pip gap. The system manages a specific number of grid lines on both sides of the starting price, aiming to capture small price movements. It utilizes fixed lot sizing for each position and operates using a high-frequency millisecond timer. The documentation is minimal, and the main input parameters do not include explicit stop loss or take profit settings.

Details

Author

sonidelav on GitHub

Type

Trading robot

Platform

MetaTrader 4 (MQL4)

Strategy

Grid, Scalping

Markets

Any symbol

Timeframes

M1-M5, M15-H1

Risk profile

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

EA files

Topics

mt4mt4-eamql4expert-advisorsgrid

Input parameters

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

NameTypeDefaultDescription
GridGapint50Grid Gap (Pips)
LotSizedouble0.01Trade Lot Volume
TotalGridLinesint7Total Grid Lines Each Side

How to install it

  1. 1Download the sourceUse "Download source (.zip)" above, or clone sonidelav/GridEA from GitHub, and unzip it.
  2. 2Open the data folderIn MetaTrader choose File, then Open Data Folder, and go to MQL4/Experts.
  3. 3Copy the filesCopy the .mq4 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

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 7 months ago None stated GitHub repository of AutoTrade EA
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
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

SnD SnR Scalping

by Adirach08
2 stars

This MetaTrader 5 expert advisor executes trades based on supply and demand zones combined with support and resistance levels. It performs multi-timeframe analysis across H1 and M5 charts to identify entry points. The robot utilizes price action patterns like double tops and head-and-shoulders for confirmation. Risk is

MT5 Trading robot SMC / ICT / price actionScalpingGrid High risk
Updated 1 year ago None stated GitHub repository of SnD SnR Scalping
1 stars

This machine learning expert advisor for MetaTrader 5 utilizes ensemble and deep learning models to analyze market patterns. It offers a versatile multi-strategy approach, allowing users to toggle between trend-following, scalping, and grid-hedging behaviors. Risk controls are comprehensive, featuring fixed percentage

MT5 Trading robot AI / machine learningMulti-strategyScalping High risk

Crystal Light

by SearchlightFX
1 stars

Crystal Light is a MetaTrader 5 expert advisor specifically configured for XAUJPY on the M3 timeframe. It employs a confluence-based strategy using buy and sell differentials to trigger entries. The system features independent take profit levels, a trailing stop with adjustable buffers, and a risk-based auto-lot sizing

MT5 Trading robot ScalpingGrid High risk
Updated 4 months ago MIT GitHub repository of Crystal Light

More trading robots

Need a broker for MT4?

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

Compare brokers