GridMaster EA

GridMaster doesn’t try to predict where price goes next — it profits from the fact that price moves at all. Rather than picking a direction, it lays a ladder of pending buy and sell orders above and below the current price and lets normal market oscillation trigger and close them, one grid level at a time. That direction-agnostic design is what makes it the odd one out among the trend-following EAs in this suite, and it’s a practical implementation of the ideas in our grid trading strategy guide.
GridMaster is free for MetaTrader 4 and MetaTrader 5 (hedging account required), one of several distinct types of automated trading algorithms we publish. Because a strong one-directional trend is grid trading’s worst-case scenario, GridMaster ships with five independent layers of risk protection rather than the two or three found on the trend-following EAs.
Developer disclosure: We built GridMaster. This page is our own technical assessment, not an independent third-party review. We do not yet publish a measured backtest table for GridMaster — the equity curve above is an illustrative simulation of the strategy’s shape, not a result set. See our backtest methodology and results for the EAs we do have tested figures for, including the July 30, 2026 correction to our testing pipeline. Demo-test GridMaster for several weeks before running it live.
What Is Grid Trading?
Grid trading places multiple buy and sell orders at fixed intervals (the “grid”) above and below the current price. As the market oscillates, orders trigger and close at profit — without needing to predict direction. Its key advantage is that it’s direction-agnostic: it profits from normal market oscillation rather than from accurate forecasting, which makes it particularly effective in ranging or sideways markets, and particularly vulnerable to sustained one-directional trends.
How It Works
- Grid initialization — Places pending buy stops above and sell stops below the current price at the configured spacing
- Order execution — As price hits each level, the pending order triggers and a position opens
- Take profit — Each position has its own TP equal to the grid spacing, closing on a single oscillation
- Grid renewal — When an order closes in profit, a fresh pending order is placed at the same level
- Risk gating — All five risk layers are evaluated every tick; if breached, the EA stops opening new orders (and optionally closes everything)
Key Features
| Feature | Details |
|---|---|
| Strategy | Grid trading with 5-layer risk protection |
| Timeframe | Any (M15-H1 recommended) |
| Pairs | EURUSD, USDCHF, EURGBP, AUDCAD |
| Grid levels | 3-10 (configurable, default 5) |
| Grid spacing | 10-50 pips (default 20) |
| Max drawdown gate | 20% equity (configurable) |
| Equity protection | 70% of starting balance (hard close trigger) |
| Lot sizing | Auto-calculated from balance |
| Platform | MetaTrader 4 and MetaTrader 5 (hedging account) |
| Price | Free |
Configuration
| Parameter | Default | Range | Description |
|---|---|---|---|
| GridSizePips | 20 | 10–50 | Spacing between grid levels |
| GridLevels | 5 | 3–10 | Pending orders in each direction |
| StartLotSize | 0.01 | 0.01–0.10 | Initial position size |
| LotMultiplier | 1.0 | 1.0–1.5 | Size increase per deeper level (1.0 = flat) |
| MaxOpenPositions | 10 | 3–20 | Hard cap on concurrent positions |
| MaxDrawdownPercent | 20 | 5–30 | Stops new orders above this DD |
| EquityProtectionPercent | 70 | 50–90 | Hard close trigger as % of starting balance |
| CloseBeforeWeekend | true | bool | Flatten all positions on Friday close |
Risk Controls (Built In)
These settings limit how much a single configuration can lose; they do not make automated trading safe.
GridMaster ships with five independent layers of protection:
- Max open positions (default 10) — caps the size of the ladder
- Max drawdown (default 20%) — stops new orders when DD exceeds threshold
- Max lot per order (default 0.1) — per-order size cap
- Max total lots (default 1.0) — aggregate exposure cap
- Equity protection (default 70%) — hard-closes everything if equity falls below this fraction of starting balance
Weekend protection: Optional automatic closure of all positions before Friday market close to avoid weekend gap risk.
Important: Grid trading accumulates floating losses during strong trends. The equity-protection layer is the line of defense — keep it enabled.
GridMaster’s lot size stays fixed at every level by default — it does not scale up after a loss. See our grid martingale strategy comparison for why that distinction is the one that determines whether risk grows linearly or exponentially.
Best For, and by Account Size
- Traders who want to profit from ranging/sideways markets
- Accounts with $500+ balance (grid trading requires margin headroom; not suitable under $200 — the grid math doesn’t have enough room)
- Pairs that tend to range (EURGBP, USDCHF, AUDCAD)
- Complementing a trend-following EA like SteadyPips or TripleAlign
| Account size | Grid spacing | Levels | Start lot | Max positions |
|---|---|---|---|---|
| $200 – $500 | 25 pips | 3 | 0.01 | 6 |
| $500 – $2,000 | 20 pips | 5 | 0.01 | 10 |
| $2,000 – $10,000 | 20 pips | 5 | 0.02 | 10 |
| $10,000+ | 15 pips | 7 | 0.05 | 14 |
Rule of thumb: Grid spacing should be roughly 1.5–2× the average spread of the pair you are trading. Tighter grids fire more often but eat more spread; wider grids fire less but produce larger per-trade profit.
The adaptive-spacing option is the EA-side implementation of dynamic grid trading: instead of holding the interval at a fixed pip value, it derives the spacing from a current volatility reading, so the ladder widens when the market speeds up. GridSizePips as a constant is a static ladder — right for one volatility regime and progressively wrong as conditions drift. That guide explains how the ATR multiplier is chosen and what the static-versus-dynamic difference looks like in a simulated drawdown.
Grid Spacing Guidelines
| Market condition | Recommended grid | Typical pairs |
|---|---|---|
| Low volatility | 15–20 pips | EUR/USD, USD/CHF |
| Normal | 20–30 pips | GBP/USD, AUD/USD |
| High volatility | 30–50 pips | GBP/JPY, EUR/JPY |
Strengths and Risks
Strengths
- Profits in ranging and sideways markets where directional EAs sit flat
- No need to predict direction — the grid catches both sides of every oscillation
- Highly configurable risk caps (5 independent layers)
- Generates trades continuously rather than waiting for a directional setup
Risks
- Strong, sustained trends are grid trading’s worst enemy — they fill one side of the grid without ever retracing
- Requires sufficient free margin to maintain the ladder during adverse moves
- Multiple open positions tie up more margin than a single-position EA
- Not suitable for accounts under $200 — the grid math doesn’t have enough room
Getting Started
- Open a free XM account if you don’t have one
- Fund it with $200 or more — the minimum the EAs are designed for (deposit walkthrough)
- Register your account to activate the EA
- Download GridMaster EA (both MT4 .ex4 and MT5 .ex5 are provided)
- Install on MetaTrader following our step-by-step guide
- Attach to an H1 chart of EURGBP or USDCHF (ranging majors) and confirm “AutoTrading” is enabled
How GridMaster Compares to Our Other EAs
| SteadyPips | GridMaster | BreakWave | TripleAlign | |
|---|---|---|---|---|
| Style | EMA trend | Grid trading | Breakout | Multi-EMA trend |
| Best market | Trending | Ranging | Range → breakout | Strong trends |
| Entry logic | EMA crossover | Fixed grid levels | BB squeeze + ADX | Triple EMA + ADX |
| Risk:reward | 1:1.33 | Variable | 1:1.33 | 1:2 |
| Trade frequency | 3–8 / week | Continuous | 2–5 / week | 1–3 / week |
Frequently Asked Questions
How is GridMaster different from SteadyPips? SteadyPips follows trends; GridMaster profits from ranges. They complement each other — use SteadyPips/TripleAlign on trending pairs and GridMaster on ranging pairs.
Why does GridMaster lose money during trends? Grid trading depends on price oscillating around a midpoint. A strong one-directional trend keeps triggering orders on one side without ever giving them a chance to close at profit — the equity-protection layer is specifically designed to halt the EA before this snowballs.
Can I run multiple EAs, or multiple GridMaster instances, at the same time? Yes, on different charts/pairs. Each EA in the SteadyPips suite uses a unique magic number so order tracking never conflicts. If you run GridMaster on several pairs at once, verify that the combined max-positions × max-lot across all charts fits within your account’s free margin with comfortable headroom — each instance consumes margin independently.
What happens during a strong trending market? The equity-protection layer closes all positions when equity drops below 70% of starting balance. The 20% max-drawdown gate additionally stops new orders from opening once DD reaches the limit.
What’s the minimum deposit for grid trading? We recommend $500+ because grid trading opens multiple positions simultaneously and requires more margin than single-position EAs.
Why is LotMultiplier set to 1.0 by default instead of a martingale increase?
Increasing lot size on deeper levels (martingale-style) magnifies losses during trends. We default to flat 1.0 because survivability matters more than incremental return; advanced users can raise it up to 1.5 if they accept the additional risk.
Further Reading
- Grid Trading Strategy: Complete Guide — the deeper mechanics behind this EA
- Dynamic grid trading: adapting spacing to volatility — the theory behind the adaptive-spacing setting
- Grid Trading vs Martingale — why we default to flat lot size
- Best Pairs for Grid Trading — which majors range cleanly
- How to Install an EA on MetaTrader — step-by-step setup
- VPS for Forex Trading — keep the grid alive 24/5
- GridMaster parameter settings by account size — Conservative, Moderate, and Aggressive presets with drawdown arithmetic
Grid trading involves significant risk, especially during strong trending markets. Past performance is not indicative of future results. Please read our risk disclosure before trading.
Affiliate Disclosure: This page contains affiliate links to XM. We receive a commission when you open an account through our links, at no additional cost to you. Full disclosure