Alpha Grid MT5:   Virtual GRID (Base INFO)

Alpha Grid MT5: Virtual GRID (Base INFO)

3 December 2026, 11:27
Aliaksandr Charkes
0
8
<<    Back to General Settings Overview

VIRTUAL_GRID: Overview, Benefits, and Quick Start

Regular grid EAs place all pending grid orders on the broker's server in advance. On many accounts, this creates three problems:

  • the EA hits the broker's limit on the number of pending orders;

  • regular pending orders trigger mechanically — even if the spread widens sharply at night or a price spike occurs during news;

  • all levels are visible to the broker on the server in advance, well before the price approaches them.

For these situations, the VIRTUAL_GRID mode (virtual grid) has been introduced in the EA.



What is the VIRTUAL_GRID mode?

In VIRTUAL_GRID mode, the EA does not place pending orders on the broker's server:

  • All grid levels are stored in the terminal's memory and, if desired, drawn as lines on the chart.

  • The EA monitors market price: the Ask price for buys and the Bid price for sells.

  • When the price reaches a calculated level and passes the filters (spread, slippage, minimum stop distance, and free margin), the EA opens a market deal.

  • After a deal is opened, it is managed by all standard EA features: Take-Profit and Stop-Loss, statistics, reports, and all limiting modules (by time, profit, and price).




What VIRTUAL_GRID offers to the trader

  • Does not consume the broker's order limit. You can build large grids and trade on multiple charts simultaneously — the only constraints remain free margin and maximum volume per symbol.

  • Hides levels until entry. Until the price reaches the level, there are no orders on the broker's server.

  • Filters wide spread. New levels are not opened during nighttime spread widening or news-driven spikes.

  • Protects against price spikes and level "clustering". The EA does not buy high on a sharp upward move and does not open a cluster of adjacent levels at a single price point.

  • Reliably protects against duplicates. Even if slippage causes a deal to open away from the level line, the EA still knows exactly which level it belongs to and will never open a duplicate order or position on it.




What to choose: VIRTUAL_GRID or STANDART_TRADING

Both modes can be freely combined for different grids (BuyUp, BuyDown, SellUp, SellDown) — each has its own strengths:

  • STANDART_TRADING (real pending orders):

    • Operates with the terminal turned off. Orders and their Take-Profit / Stop-Loss already reside on the broker's server: the grid executes even if the internet connection drops or MetaTrader 5 is closed, and upon restart, the EA picks up right where it left off.

    • No network execution latency. Since the orders are already on the server, during active moves (without price gaps), they typically experience less slippage than market entries sent from the terminal.

  • VIRTUAL_GRID (virtual levels):

    • Requires MetaTrader 5 to be running (preferably on a VPS) to open new levels, but Take-Profit and Stop-Loss on already opened positions are stored on the server and will execute even without the terminal.

    • Saves the order limit, hides the grid prior to entry, filters spread, and protects against gaps (prevents opening a series of levels at unfavorable prices during sharp moves).




Quick Start: How to enable and configure

  • Enable the mode for the desired grids: in the settings of each required grid, select [ VIRTUAL_GRID ] in the field TYPE OF TRADING for ... GRID.

  • Configure the 3 parameters in the Settings for Virtual Grid (Virtual Pending) block (section 5):

    • Max spread in points for open positions (0 - filter OFF) (0 by default — disabled). Maximum spread in points for opening a new deal. For 5-digit currency pairs like EURUSD on a live floating-spread account, 15–30 points is typically set to filter out nighttime widening.

    • Reaction EA slippage in points for opening (0 - crossing only) (10 by default). Width of the price-spike protection corridor. For quiet currency pairs, 5–15 points is suitable; for volatile instruments (gold, indices, crosses) — 20–50+ points. A value of 0 disables the corridor and leaves entry on simple crossing.

    • Server slippage in points for open positions (10 by default). Allowable server price deviation when sending an order (effective only on Instant Execution accounts).

  • Do not disable stop control on Market Execution: if you use Take-Profit and Stop-Loss, make sure to keep Take-Profits CONTROL for ... GRID = true and Stop-Losses CONTROL for ... GRID = true enabled — this guarantees that the EA will set or monitor stops even if the server response is delayed.




What you will see on the chart

  • On the first start with VIRTUAL_GRID, the EA will automatically enable highlighting of all grid levels on the chart (if desired, it can be hidden using the button on the panel — the choice will be remembered).

  • Buttons of virtual grids on the left info panel are bordered with a colored frame, and the top line shows the status Virtual GRID : activated ... (or PHANTOM + Virtual GRID : ...).

  • When free margin is insufficient, the top line calmly reports Not enough free margin for declared Virtual GRID positions! without pop-up windows, and trading will resume automatically once funds are released.

  • A notification of successful startup will appear immediately after launch (provided there are no active limit pauses and margin is sufficient), without waiting for the first trade.




For a detailed breakdown of the slippage protection corridor, initial price auto-generation, slippage specifics, scalping, and answers to frequently asked questions, please see Part 2 >>