Grid Volatility Logo

Grid Volatility - User Guide

Detailed documentation for installation, configuration, and optimization.

Introduction

Grid Volatility is an advanced mean-reversion Expert Advisor that identifies overextended price action on higher timeframes. By entering counter-trend on volatility spikes, it capitalizes on subsequent corrections and ranges using a structured grid recovery system.

The core logic detects impulsive price movements on higher timeframes and initiates a structured basket of orders dynamically spaced based on current market volatility. This allows it to absorb range expansions and exit during mean reversions without relying on strict, fixed pip distances.

Installation (MQL5 Market)

1
Terminal Login: Open your MT5 terminal, go to Tools > Options > Community and log in with your MQL5.com account credentials.
2
Market Download: Open the Navigator window (Ctrl+N). Locate the Market directory and expand it to find the My Purchases subdirectory. Your purchased Expert Advisor will be listed there ready to Install. MT5 Navigator Market Purchases
3
Attach to Chart: After installation, the EA will appear in the Navigator window under Expert Advisors > Market. Drag it onto a chart of your preferred symbol.
4
Enable Trading: In the EA properties window, ensure "Allow Algo Trading" is checked. Also, enable the global Algo Trading button in the top toolbar.

Loading Set Files

Set files are crucial as they contain the optimized configurations for specific risk levels and symbols.

1
Open the EA properties (F7 on the chart).
2
Go to the Inputs tab. Here you will see the list of all parameters. Click the Load button on the right side. EA Inputs tab and Load button
3
Click the Load button and select the .set file you downloaded from this website.

Input Parameters Reference

Below is the complete list of input parameters and their functions.

ParameterDescription
Magic number to identify tradesUnique identifier for trades opened by this instance. Change it if you run multiple instances on the same account.
Initial lot size for positions (0 = minimun lot size)The starting lot size for the first position. If set to 0, the EA will automatically use the broker's minimum allowed lot size.
Timeframe for calculating gridTimeframe used to calculate the average price range that determines the distance between grid steps.
Timeframe for searching impulsive candlesTimeframe used to search for the initial impulsive candle to trigger the strategy.
Profit target (in account currency)The global target profit. Once the entire basket reaches this profit (scaled by balance growth if auto-scaling is enabled), all positions are closed.
Candle size factorMultiplier applied to the average candle size. The current candle must be larger than this multiplied value to be considered a valid impulse.
Automatic lot scaling enabled/disabledIf enabled, the initial lot size will dynamically scale up as your account balance grows above its initial point.
Lot size strategyChoose between Fix Lot (all grid orders have the same lot), Martingale Arithmetic (adds the initial lot to each step), or Martingale Geometric (doubles the lot each step).
Type of positions to openDefines the trading direction: Only Buys Positions, Only Sells Positions, or Both.
Maximum number of open positionsThe maximum number of orders the EA can hold simultaneously within a single grid basket. Higher values give more room for recovery but require more margin.
General Stop Loss (Percentage of Balance)If equity drops below this percentage of the highest balance, the EA closes all trades to protect capital.
Virtual leverage (0 = account leverage)Overrides the broker's leverage for internal validation. If 0, it uses the actual account leverage.
Allow new cycles only if no trades are open by othersWhen true, the EA will only initiate a new cycle if there are no other active trades in the terminal. Useful for strict single-pair trading.

Optimization Guide

To optimize Grid Volatility professionally in MetaTrader 5, follow this workflow:

1. Strategy Tester Setup

1
Open Tester: Press Ctrl + R in MetaTrader 5 to open the Strategy Tester window.
2
Settings Tab: Configure the following main options:
  • Expert: Select Grid Volatility.
  • Symbol & Period: Select your preferred asset and set period to 6-12 months.
  • Timeframe: Select H1 for visual tracking (The EA engine is multi-timeframe and processes data independently of the chart).
  • Modeling: Select "1 Minute OHLC".
  • Optimization: Select "Fast genetic based algorithm".
MT5 Strategy Tester Settings Tab

2. Practical Exercise: Optimizing Entry & Profit

Follow these steps in the Inputs tab as an example to learn the workflow. For a real, full optimization, make sure to include all the variables listed in the Recommended Parameters & Ranges table below.

1
Enable Parameters: Find Candle size factor and Profit target (in account currency) and check the box to the left of their names.
2
Set Search Range: Configure the values as follows:
  • Candle size factor | Start: 0.5 | Step: 0.5 | Stop: 5
  • Profit target | Start: 0.3 | Step: 0.1 | Stop: 0.8
3
Start: Click the Start button to begin the optimization process.
4
Load Results: Go to the Optimization Results tab. Double-click on the best performing result. This will automatically load those specific parameters into the Inputs tab.
5
Save Set File: Switch back to the Inputs tab, right-click and select Save to create your new .set file.

3. The "Non-Optimization" Rule: Structural Stabilizers

CRITICAL: Do Not Optimize Structural Parameters

Do not optimize risk parameters such as General Stop Loss (Percentage of Balance) to perfectly fit a historical period. These are structural safety boundaries, not variables designed to curve-fit the past. Only optimize entry thresholds and grid management logic.

Input Comment (Visible) Start Step Stop
Timeframe for calculating grid5 Minutes-4 Hours
Timeframe for searching impulsive candles5 Minutes-1 Hour
Profit target (in account currency)0.30.10.8
Candle size factor0.50.55
Lot size strategyFix Lot-Martingale Geometric
Type of positions to openOnly Buys Positions-Both

Recommendations

  • Leverage: Grid systems require significant margin. The higher the leverage your broker provides, the better the EA can manage multiple positions.
  • Capital: The minimum required capital is $100 for micro-lot accounts or cent accounts. For standard accounts, $500 - $1,000 is recommended for safety.
  • Brokers: Use low-latency brokers with tight spreads like Deriv or IC Markets.
  • VPS: It is highly recommended to run this Expert Advisor on a VPS (Virtual Private Server) with low latency to your broker, 24/5 or 24/7.

Risk Management

Grid trading carries inherent risks. The General Stop Loss is your ultimate safety net. Always set it to a percentage you are mathematically and psychologically prepared to lose (e.g., 20% to 30%).

Test all set files on a Demo account before running them on Live funds. Market conditions change, and past performance is not a guarantee of future behavior.