The robot operates within a user-defined price range, allowing traders to set specific upper and lower boundaries. Users can configure the number of grid levels and choose between arithmetic or geometric spacing models. It functions in a neutral direction, layering orders across the range based on specified lot sizes. Risk controls include stop triggers that can automatically cancel pending orders or close active positions when price levels are breached. The README is minimal.
Read from GridTradingBot.mq5. Defaults are the author's; change them in the EA's Inputs tab.
Name
Type
Default
Description
expertAdvisorID
int
31254
Expert Advisor ID "Magic Number"
currentSymbol
string
USDJPY
Symbol
gridDirection
selectGridDirection
neutralDirection
Direction
lowerPrice
double
120
Lower Price
upperPrice
double
150
Upper Price
gridSize
int
20
Number of Grids
gridType
selectGridType
arithmetic
Grid Type
lotSize
double
—
Amount of Lots to buy per grid
gridTriggerActivation
bool
false
Grid Trigger
gridTriggerBottomPrice
double
—
Bottom Price
gridTriggerUpperPrice
double
—
Upper Price
stopTriggerActivation
bool
false
Stop Trigger
Show all 16 inputs
Name
Type
Default
Description
stopTriggerBottomPrice
double
—
Bottom Price
stopTriggerUpperPrice
double
—
Upper Price
cancelOrdersOnStop
bool
false
Cancel all orders on stop
closePositionsOnStop
bool
false
Close all positions on stop
How to install it
1Download the sourceUse "Download source (.zip)" above, or clone AriZoneVibes/MQL5-GridBot from GitHub, and unzip it.
2Open the data folderIn MetaTrader choose File, then Open Data Folder, and go to MQL5/Experts.
3Copy the filesCopy the .mq5 file into Experts.
4Compile in MetaEditorOpen the file in MetaEditor and press Compile. Fix any missing includes the compiler reports.
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.
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
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
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
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
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
This MetaTrader 5 expert advisor executes a grid trading strategy enhanced with martingale lot scaling. The system identifies market direction through multi-timeframe analysis using Exponential Moving Averages and the Average Directional Index. It features dynamic grid spacing that adjusts based on market volatility an