Trading concepts

Grid Trading: How It Works, a Worked Example and the Risks

Range grids and breakout grids, a worked EUR/USD example that shows how a grid earns in a range and what it costs in a trend, how to size one, and how the US hedging rule changes two-sided grids.

· Founder of PatternsWizard
Checked 7 min read
A range grid in a range and in a downtrend: two panels with the same six evenly spaced buy levels. In the range, price swings down onto a level and back up: each buy is followed by a take profit one step higher. In the downtrend, price falls through every level: each level fills, no take profit is reached, and the open loss keeps growing.
On this page
  1. How grid trading works
  2. A grid trading example on EUR/USD
  3. How to set up a grid
  4. Grid trading and the US hedging rule
  5. Grid trading bots
  6. Frequently asked questions

Grid trading places a ladder of orders at regular intervals above and below a price, so that the strategy buys as the price falls, sells as it rises, and collects a small profit each time the price crosses back over a level. It needs no forecast of direction while the market moves sideways. Its weakness is the trend: in a range grid, every level that fills against a falling market adds to a losing position, and the losses grow much faster than the small gains.

A range grid in a range and in a downtrend

A range grid in a range and in a downtrend: two panels with the same six evenly spaced buy levels. In the range, price swings down onto a level and back up: each buy is followed by a take profit one step higher. In the downtrend, price falls through every level: each level fills, no take profit is reached, and the open loss keeps growing.
Schematic, not market data.

How grid trading works

You choose a starting price, a spacing between levels (the grid step), the number of levels, the size of each order and, in the version used here, a take profit for each one. Then you place limit or stop orders at each level. A grid can be built two ways, and they behave in opposite ways:

Range grid (against the move)Breakout grid (with the move)
OrdersBuy limits below the price, sell limits aboveBuy stops above the price, sell stops below
IdeaThe price will come backThe price will keep going
Wins whenThe market swings inside a rangeThe market trends in one direction
Loses whenThe market trends: positions pile up against itThe market chops back and forth: entries are stopped out
FitsA choppy, ranging marketA trending market or a breakout from a range

A grid trading example on EUR/USD

A hypothetical long range grid: EUR/USD is at 1.1000. The trader places 10 buy limit orders every 20 pips, from 1.1000 down to 1.0820, each for 0.1 lot (10,000 units, about $1 per pip). Each order has a take profit 20 pips above its entry, worth $20 before costs. Every time the price drops to a level and comes back up 20 pips, the grid earns $20.

Now the market falls instead of ranging. The open loss at the low, before costs, is:

Move down from 1.1000Orders filledOpen lossRound trips of $20 needed to earn it back
100 pips (to 1.0900)6300 pips, $30015
200 pips (to 1.0800)10, all of them1,100 pips, $1,10055
400 pips (to 1.0600), grid capped at 10 levels103,100 pips, $3,100155
400 pips, grid extended without a cap (21 levels)214,200 pips, $4,200210

Open loss of the 10-level long grid as the price falls

Open loss of the 10-level long grid as the price falls. 50 pips down (3 orders filled): $90; 100 pips down (6 filled): $300; 150 pips down (8 filled): $640; 200 pips down (all 10 filled): $1,100; 300 pips down (all 10 filled): $2,100; 400 pips down (all 10 filled): $3,100. Hypothetical example, computed from the assumptions in the text.
Hypothetical example, computed from the assumptions in the text.Buy limits every 20 pips from 1.1000 down to 1.0820, 0.1 lot each (about $1 per pip), before costs. Each round trip earns $20: the loss at 200 pips equals 55 of them. The loss grows faster than the fall until every order is filled, then by $10 per pip.

The arithmetic is the core of the strategy: the gains are linear (a fixed $20 per round trip), while the losses in a trend grow faster than the move, because each new level adds a position and every earlier position loses more: until the grid is full, they grow roughly with the square of the distance. With all 10 orders filled the trader holds 1 lot, worth about $110,000, which needs $2,200 of margin at the US cap of 50:1 on major pairs or about $3,667 at the UK cap of 30:1 (see the US rule, 17 CFR 5.9 and the FCA rule, COBS 22.5). A $2,000 account would face a margin call before the grid even filled. How much leverage a small balance can carry is worked through in our guide to leverage for small account trading.

How often does a full grid fill? On daily EUR/USD from March 15, 2021 to June 30, 2023, we took every daily close as a possible starting price and checked the lowest low of the next 5 and the next 20 sessions. The 200-pip fall that fills all 10 levels of the example came within 20 sessions after 247 of 580 starting days, 42.6%, and a 400-pip fall after 80, 13.8%. This period includes the slide of EUR/USD from above 1.22 in May 2021 to below 0.96 in September 2022, so it is hard on a long grid; a calmer or a rising period would likely give lower shares, but we have not measured one.

Starting days followed by a fall of 100, 200 or 400 pips

Starting days followed by a fall of 100, 200 or 400 pips. Fall of 100 pips or more: Within 5 sessions 36.5%, Within 20 sessions 69.5%; Fall of 200 pips or more: Within 5 sessions 10.3%, Within 20 sessions 42.6%; Fall of 400 pips or more: Within 5 sessions 0.5%, Within 20 sessions 13.8%. Our computation; the inputs and the method are in the text.
  • Within 5 sessions
  • Within 20 sessions
Our computation; the inputs and the method are in the text.Daily EUR/USD, March 15, 2021 to June 30, 2023: 595 starting closes with 5 sessions after them (last June 23, 2023) and 580 with 20 (last June 2, 2023). A fall counts when a later low is at least that many pips below the starting close.

How to set up a grid

  1. Check the market is ranging. Look for a clear floor and ceiling; the support and resistance guide covers how to find them. A grid placed in a trend is a bet against it.
  2. Pick the step from volatility. Too tight and costs eat the profit per round trip; too wide and the grid rarely fills.
  3. Limit the number of levels and compute the open loss if every level fills and the price keeps going, as in the table above.
  4. Size the orders from that worst case, using the lot size in forex guide to turn pips into dollars.
  5. Set the exit for the whole grid: a price beyond the range at which every order is closed and every pending order canceled.
  6. Count the costs. Spreads, commissions and overnight financing are paid on every level; on a small step they can be most of the profit.

A grid is a mechanical form of mean reversion: it only works while prices keep coming back to the middle.

Grid trading and the US hedging rule

Some grids open buys and sells on the same pair at the same time. In the United States that is not possible in a retail forex account: NFA Rule 2-43(b) says forex dealer members may not carry offsetting positions in a customer account and must offset them on a first in, first out basis (NFA rulebook). A sell order in a US account closes the oldest open buy instead of opening a separate short, which changes how a two-sided grid behaves.

Grid trading bots

Grids involve many orders, so they can be run by software: an expert advisor on a forex platform or a grid bot on a crypto exchange. A bot executes the plan; it does not make a range out of a trend. Before running one, check the same things as for a manual grid: the number of levels, the worst-case open loss, the exit for the whole grid and the costs per round trip. A backtest over a ranging period only shows the good half of the strategy; test it over a strong trend too.

More guides on strategies and risk are in trading concepts.

Every pattern's results on one sheet

The only pattern cheat sheet with tested stats: 152 patterns, what the textbook says and what really happened on 6 markets. Free PDF, sent to your inbox.

The PDF by email, plus our newsletter: new tests and results that change. Unsubscribe anytime. Privacy.

Frequently asked questions

What is grid trading?

A strategy that places buy and sell orders at regular price intervals, forming a grid, to profit from price swings without forecasting direction. In the version described on this page, each order has a take profit one step away.

Is grid trading profitable?

It earns in ranging markets and loses in trending ones. In our hypothetical EUR/USD example, a 200-pip fall left an open loss equal to 55 round trips of profit. Whether it pays depends on the range lasting, on costs and on closing the grid before a trend does too much damage.

What is the grid trading formula?

Profit per round trip = grid step × pip value per order, minus costs. Worst-case open loss for a long grid of n levels with step s, after all levels fill and the price falls d pips below the top level: the sum of (d − k × s) for each filled level k from 0 to n − 1, times the pip value.

Is grid trading allowed in the US?

Placing a ladder of orders is allowed, but holding a long and a short on the same pair in a retail forex account is not: NFA Rule 2-43(b) requires offsetting on a first in, first out basis.

Do grid bots work?

A bot only executes the grid; it inherits the same strength in ranges and the same weakness in trends. Check its number of levels, worst-case loss, global exit and costs before running it.

Sources

  1. NFA Rule 2-43, Forex orders
  2. 17 CFR 5.9, Security deposits for retail forex transactions (eCFR)
  3. FCA Handbook, COBS 22.5
, Founder of PatternsWizard

Passionate about finance, quantitative trading and data analysis. Amaury built the PatternsWizard test bench, which detects each pattern on full price history and measures what happened next against random entries.

PatternsWizard tests chart and candlestick patterns on full market history, against random entries. How we test patterns.

179 patterns testedRandom-walk self-test passed

Related guides

All trading concepts articles