Home › Guides › Grid Trading Strategy Settings

WHY BOTS FAILFREENO ACCOUNTAUTOMATED TRADE BOTSGrid TradingStrategy SettingsThe arithmetic of how bots failEDUCATION ONLY | NO SIGNALSEXAMPLE NUMBERS ARE LABELLEDAUTOMATED TRADE BOTSautomatedtradebots.com
A free page on grid trading strategy settings. Education only, with example numbers labelled.
WHY BOTS FAIL

Grid Trading Strategy Settings

Short answer

The five settings that define a grid are the price range, the number of grids, the spacing type, the stop level and the amount invested. Each one changes more than one thing.

A grid bot has five settings and they pull against each other. This page shows what each one changes in the arithmetic, using made-up numbers, so you can see what a setting costs before you choose it.

The page explains the idea in plain words, works through the arithmetic with a table, and shows how it hits grid, martingale and DCA bots, then tells you what to check before you run one.

  • A worked example with real arithmetic
  • How it hits grid, martingale and DCA bots
  • How to check for it before you run a bot
  • No advice, no signals, no profit promises

Last reviewed 28 October 2026. Education only, not advice.

Free, no account Runs in your browser Worked numbers shown Not advice Examples labelled

Ready to go further

Next: try your own settings

The grid calculator takes a range, number of grids and investment and shows the spacing, the money per order and the profit per cycle.

Open the grid calculatorFree, no account
Reading time7 minutes
Worked exampleExact arithmetic
Tools linked1 on this page
Reviewed28 Oct 2026

What is included

  • What it is, in plain words
  • The formula or mechanism, with exact arithmetic
  • How it hits grid, martingale and DCA bots
  • A check you can run before you switch a bot on

Who it is for

  • People who run or plan to run a trading bot
  • Anyone reading a backtest or a bot sales page
  • Readers who want the numbers, not the pitch
  • Not advice, and not a signal service
Net gain per completed grid after a 0.2 percent round trip fee, 20 grids, by range (made-up)0.30%95 to 105range0.80%90 to 110range1.80%80 to 120range3.80%60 to 140rangeSpacing in percent of a 100 price minus a made-up 0.2 percent round trip fee. Wider range, wider spacing, more per cycle and fewer cycles.Calculated by us on 29 Oct 2026, exact.
The picture for this page. Example numbers are made up unless the page says they were calculated.

Key facts

  • The five settings that define a grid are the price range, the number of grids, the spacing type, the stop level and the amount invested. Each one changes more than one thing.
  • More grids in the same range means smaller spacing. Each completed grid earns less, and past a point the spacing is smaller than the fees on a round trip.
  • In the made-up tables here, 20 grids over a range of 80 to 120 gives a spacing of 2 percent of a 100 price and nets 1.80 percent per completed grid after a 0.2 percent round trip fee (calculated by us on 29 Oct 2026, exact).
  • A wider range survives bigger moves but spreads the same money thinner, so each cycle earns less per unit of price travelled.
  • A stop limits the loss on a trend that never comes back. It also locks in that loss, and a price that would have returned cannot return into a closed bot.

The five settings

A grid bot places buy orders below the current price and sell orders above it, at fixed steps. When a buy fills, it places a sell one step higher. When that sells, it earns the gap between the two, minus fees. The whole machine is described by five choices. This page covers how they interact. For how a single grid cycle works, see grid trading strategy, and for the bot as a whole, grid trading bot.

  • Range: the lowest and highest price the grid covers. Outside it, the bot stops trading.
  • Number of grids: how many price steps the range is cut into.
  • Spacing type: arithmetic spacing makes every step the same size in price. Geometric spacing makes every step the same percentage, so steps are larger at higher prices.
  • Stop: a price at which the bot sells what it holds and shuts down. It may be below the range, above it or absent.
  • Investment: the money the bot may use. It is divided between the grids.

Number of grids against spacing

The spacing is the range divided by the number of grids. A made-up example: the range is 80 to 120, the price is about 100, the investment is 1,000, and the round trip fee (buy and sell together) is 0.2 percent. That is 0.1 percent a side, a made-up rate. Rules and rates vary by venue, so use your own.

Number of gridsSpacing (price)Spacing (percent of 100)Money per orderNet per cycle after feesNet per cycle in money
58.008.00%200.007.80%15.60
104.004.00%100.003.80%3.80
202.002.00%50.001.80%0.90
401.001.00%25.000.80%0.20
800.500.50%12.500.30%0.04

Calculated by us on 29 Oct 2026, exact for the stated inputs. Going from 10 to 80 grids cuts the net gain per cycle from 3.80 percent to 0.30 percent. The bot completes cycles far more often, but each one earns very little, and a round trip cost of 0.5 percent instead of 0.2 would turn the 80-grid line to zero. Fewer grids earn more per cycle and complete rarely. More grids look busier, and the page on grid bot fees and costs shows where busy becomes losing.

Range against spacing

Now keep 20 grids and the same 1,000 and move the range. Each order is 50. The same round trip fee applies.

RangeSpacing (price)Net per cycle after feesNet per cycle in moneyFall from 100 to the lower bound
95 to 1050.500.30%0.155%
90 to 1101.000.80%0.4010%
80 to 1202.001.80%0.9020%
60 to 1404.003.80%1.9040%

A narrow range of 95 to 105 pays little per cycle (0.30 percent) and the price leaves it after a 5 percent fall. A wide range of 60 to 140 pays 3.80 percent a cycle and tolerates a 40 percent fall, but price must travel four times as far to complete one cycle, so it completes fewer. There is no free setting: the same 20 grids buy either cover or frequency. Nothing in the arithmetic says which is right, because that depends on how far the price will actually move, which nobody knows.

Loss on the bought grids at the stop, against where the stop sits (made-up)-54.97Stop 78price when exited-100.62Stop 70price when exited-157.67Stop 60price when exited-214.73No stop, 50price when exitedRange 80 to 120, 10 grids, 500 spent on five buy orders at 96, 92, 88, 84 and 80, fees ignored. Calculated by us on 29 Oct 2026, exact.
Where the stop sits decides how much of the bought grids is lost when it triggers. Each exit locks in the loss at that price.

The stop level

Use the range 80 to 120 with 10 grids, so the spacing is 4. The price starts at 100 and falls. The bot has spent 500 on five buy orders of 100 each, at 96, 92, 88, 84 and 80. That buys 5.71 units at an average of 87.64. These are the losses on those holdings if the bot exits at different prices, with fees ignored:

  • Stop at 78, just under the range: loss 54.97.
  • Stop at 70: loss 100.62.
  • Stop at 60: loss 157.67.
  • No stop, and price reaches 50: unrealised loss 214.73, which is about 43 percent of the 500 put into the buys.

A tighter stop costs less when the trend continues. It also fires on a dip that would have recovered, and then the bot is gone and the recovery is missed. A stop that is far away behaves like no stop. Calculated by us on 29 Oct 2026, exact. A stop below the range also interacts with leverage if the grid runs on borrowed exposure: see futures grid liquidation, where the forced close can come before the stop does.

Spacing type

With arithmetic spacing every step is the same size in price, so the percentage gained per cycle is larger at lower prices and smaller at higher ones. In the 80 to 120 range with 10 grids, a step of 4 is 5.0 percent at a price of 80 and 3.3 percent at 120. Geometric spacing keeps the percentage the same at every level. The two give nearly the same result in a narrow range, and drift apart in a wide one. Neither is better in itself: arithmetic puts more grids where price is low, geometric spreads them evenly in percent.

Investment

Investment divided by the number of grids is the money in each order. Doubling it doubles the gain per cycle and doubles the loss for each unit of fall. It does nothing to the shape of the risk. It also sets how much of the account sits in a position that is stuck when price leaves the range.

How the settings interact

  • More grids and a wider range can leave the spacing unchanged. The bot then has more orders, a bigger spread of cover and the same money cut into smaller pieces.
  • A tight stop with a narrow range turns the grid into a small, quickly closed bet.
  • Many grids plus a high fee rate push the net per cycle toward zero, whatever else is set.
  • Leverage on top changes the meaning of the range, since the forced close may sit inside it.
All numbers here are made up to show how the settings interact. They are not recommended settings, and the fee rate is an example. Check the real fees and rules of the venue you use.

How to check a set of settings

  1. Work out the spacing in percent, and subtract the round trip fee and an allowance for spread. If the answer is not clearly positive, the bot loses on every cycle.
  2. Work out the fall from the starting price to the lower bound, and compare it with moves the asset has made over the period the bot will run.
  3. Work out the loss on everything the bot would hold at the lower bound, and at the stop if there is one.
  4. Run the numbers in the grid calculator and compare the profit per cycle with that loss. The ratio of the two is the real shape of the bet.

What it does not tell you

The tables assume the price moves through the grid in an orderly way and every order fills at its price. Real fills have slippage, gaps skip levels and costs vary. The tables say what a setting does to the arithmetic. They say nothing about which direction price will go, and that is what decides how a grid ends.

FAQ

Frequently Asked Questions

What are the main settings of a grid trading strategy?

The price range, the number of grids, the spacing type (arithmetic or geometric), the stop level and the amount invested. Each one changes several results at once, so they cannot be set one at a time.

Does more grids mean more profit?

Not by itself. More grids in the same range make each step smaller, so each completed cycle earns less. Past the point where spacing is below the round trip fee, every cycle loses.

What is the difference between arithmetic and geometric spacing?

Arithmetic spacing makes every step the same size in price. Geometric spacing makes every step the same percentage of price. They look alike in a narrow range and differ more in a wide one.

Should a grid bot have a stop?

That depends on what you accept. A stop caps the loss from a trend that does not return, and it also closes the bot on a dip that might have recovered. The arithmetic shows the cost of each choice and does not choose.

How wide should the range be?

The page cannot say. A wider range covers bigger moves and pays less per cycle, a narrower one pays more per cycle and is left sooner. Compare the fall to the lower bound with the moves the asset has made.

Are the numbers on this page real?

Example numbers are made up to show how the maths works, and the page says so. A figure only counts as exact when the page says it was calculated on a stated date. Nothing you enter in a calculator leaves your browser.

Can I use this to decide whether to run a bot?

It can show whether a bot's numbers hold together and how much an account can lose. It cannot say what the market will do, and it is not advice. Use it to ask better questions, then read the terms of your own broker or exchange.

Is this financial advice?

No. It explains how settings interact using made-up numbers. It does not recommend any setting.

Know the Risk Before You Run It

Free calculators and guides, added every week. Leave your details and we will email you when new ones go up.

Trading carries a risk of loss