Trading robot · MT5

High Frequency Grid EA

by Xtley001

This high-frequency expert advisor for MetaTrader 5 implements a grid-based strategy using pending stop orders across major forex pairs and gold.

High risk

GitHub stars1
Forks0
Last update9 months ago6 Dec 2025
LicenceNone stated

Overview

High Frequency Grid EA dynamically places buy and sell stops at calculated distances from the current price, adjusting them based on market volatility and spread calculations. The system manages open positions with automated trailing stops and fixed stop losses. Risk controls include a maximum concurrent position limit, spread filtering, and an account-wide drawdown protection. It features symbol-specific session filters and flexible lot sizing through fixed volumes or equity-based percentages.

Details

Author

Xtley001 on GitHub

Type

Trading robot

Platform

MetaTrader 5 (MQL5)

Strategy

Grid, Breakout, Trend following

Markets

Forex, Gold

Timeframes

M1-M5, M15-H1

Risk profile

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

Input parameters

Read from High-Frequency Grid EA.mq5. Defaults are the author's; change them in the EA's Inputs tab.

NameTypeDefaultDescription
InpMagicint12345Magic Number
Slippageint1Slippage in points
MaxPositionsint10Maximum concurrent positions
MaxDrawdowndouble20.0Maximum drawdown percentage
TradeEURUSDbooltrue
TradeGBPUSDbooltrue
TradeUSDJPYbooltrue
TradeAUDUSDbooltrue
TradeXAUUSDbooltrue
LotTypeenumLotType0Lot sizing type
FixedLotdouble1.0Fixed lots (0.0 = MM)
RiskPercentdouble0.5Risk MM%
Show all 18 inputs
NameTypeDefaultDescription
Deltadouble0.5Order distance
MaxDistancedouble7Max order distance
Stopdouble10Stop loss size
MaxTrailingdouble4Trailing stop start
MaxSpreadint9999Max spread limit
Secsint60Order modification interval

How to install it

  1. 1Download the sourceUse "Download source (.zip)" above, or clone Xtley001/High-Frequency-Grid-EA-update-Dec-2025 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

EA XAUUSD Premium

by diditgravatar
4 stars

This MetaTrader 5 expert advisor is designed for gold trading, utilizing a multi-timeframe strategy across the M15, H1, and H4 charts. It integrates technical indicators including ADX, RSI, and Moving Averages to identify trend-following and breakout opportunities. Risk controls include dynamic lot sizing based on acco

MT5 Trading robot Trend followingBreakoutGrid High risk
Updated 1 year ago None stated GitHub repository of EA XAUUSD Premium

Gold Scalper Bot

by bigthreeatone
1 stars

This MetaTrader 5 expert advisor is designed for aggressive trading on XAUUSD, focusing on the 5-minute and 15-minute timeframes. It utilizes Fibonacci retracements and swing high/low breakouts to identify entries across three selectable modes: scalp, swing, and trend following. The system manages up to three positions

MT5 Trading robot ScalpingBreakoutTrend following High risk
Updated 3 months ago None stated GitHub repository of Gold Scalper Bot

Prem Gold Advisor

by Premkumar238
1 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 4 weeks ago None stated GitHub repository of Prem Gold Advisor

Bakome Bitcoin EA

by BAKOME-Hub
1 stars

Bakome Bitcoin EA is a trend-following robot optimized for trading BTCUSD on the MetaTrader 5 platform. It generates trade signals using an exponential moving average crossover combined with price breakouts on the H1 timeframe. The system features a grid recovery module that adds positions with a lot multiplier when tr

MT5 Trading robot Trend followingBreakoutGrid High risk
Updated 4 months ago MIT GitHub repository of Bakome Bitcoin EA

Ajip 3 EA

by pijarajip7
1 stars

Ajip 3 EA is a MetaTrader 5 robot designed to trade trends identified by a 200-period Simple Moving Average. It monitors price action across two timeframes, typically using M15 for trend identification and M1 for execution. The strategy involves opening multiple layers of positions based on candle breaks, categorized i

MT5 Trading robot Trend followingBreakoutGrid High risk
Updated 1 year ago None stated GitHub repository of Ajip 3 EA
1 stars

This MetaTrader 5 expert advisor implements a volatility-driven grid strategy primarily focused on Gold. It populates a range of buy-stop and sell-stop limit orders at specified intervals around the market price. The system transitions into a trend-following mode once multiple orders are triggered in one direction, app

MT5 Trading robot GridBreakoutTrend following High risk
Updated 2 months ago None stated GitHub repository of Volatility Grid Bot

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