Volatility Grid Bot 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, applying a unified trailing stop to open positions while cancelling opposing pending orders. Risk management features include a daily loss percentage cap, a fixed dollar-based floating loss limit, and automated session management to clear all positions before market close.
Automatic stop-limit order grid generation
Unified trailing stop management for basket positions
Daily equity loss percentage protection
Session-based trading with automated daily closure
Read from VolatilityGridBot.mq5. Defaults are the author's; change them in the EA's Inputs tab.
Name
Type
Default
Description
InpLotSize
double
0.01
Lot size (same for buy & sell)
InpOrderSpacing
double
1.0
Spacing between stop-limit orders ($ for gold)
InpTrailingDistance
double
1.0
Trailing stop distance ($)
InpOrdersPerSide
int
20
Stop orders per side at start
InpMinPendingAbove
int
10
Min pending buy stops above price
InpMinPendingBelow
int
10
Min pending sell stops below price
InpDailyLossPercent
double
50.0
Daily max loss % (stop immediately)
InpMaxOpenLossDollars
double
0.0
Max floating loss on open trades $ (0=off)
InpUseSessionHours
bool
true
Enable session open/close hours
InpSessionOpenTime
string
01:05
Bot opening time (HH:MM server)
InpSessionCloseTime
string
23:50
Bot closing time - close all (HH:MM)
InpStopNewOrdersTime
string
23:30
Stop new orders before close (HH:MM)
Show all 15 inputs
Name
Type
Default
Description
InpMagicNumber
ulong
20260705
Magic number
InpSlippage
int
30
Slippage (points)
InpOrderComment
string
VGB
Order comment prefix
How to Install It
1Download the sourceUse "Download source (.zip)" above, or clone ARYoz/VolatilityGridBot 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.
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
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
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
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
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
This high-frequency expert advisor for MetaTrader 5 implements a grid-based strategy using pending stop orders across major forex pairs and gold. It 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