Skip to content
LiquidityFlowMarkets

Crypto futures grid bot: build it, test it, then run it

A grid bot buys below the price and sells above it, over and over, inside a range you choose. Here is how one works, what it earns, how it loses, and a free practice builder that tests your settings on live prices first.

Last updated 24 Nov 2026

Open the practice bot builderSee funding rates

How a grid bot trades

You pick a lower price, an upper price and a number of grids. The bot splits the range into steps and places a buy order at each step below the price and a sell order at each step above it. When the price drops one step, a buy fills and the bot places a sell one step higher. When the price climbs back, that sell fills and the bot keeps the difference. A range-bound market fills many of these small round trips; a market that runs away in one direction fills few.

A worked example

Bitcoin at $60,000, a range of $55,000 to $65,000 split into 20 geometric grids. Each step is 0.839% apart. After a maker fee on the buy and on the sell (0.015% each, Hyperliquid's base rate), one round trip keeps about 0.809% of the order value.

With $1,000 of margin at 3x leverage, the bot can hold $3,000 if every grid fills, so each grid trades about $150. One round trip on one grid earns roughly $1.21. Ten round trips a day would be about $12.13 a day, before funding.

SettingValue
Range$55,000 – $65,000
Grids20, geometric (equal percentage steps)
Profit per grid after fees0.809%
Order value per grid$150
Position if every grid fills$3,000

Long, short or neutral

Long grids start by buying the coin the sell orders above will need, so they gain if the price rises and lose if it falls. Short grids are the mirror image. Neutral grids open nothing at the start: they go long as the price falls and short as it rises, which suits a market moving sideways.

How a grid bot loses money

Presets tested on prices they never saw

The practice builder suggests three presets per coin from that coin's own hourly volatility over the last week. Their "last week" results are out of sample: the settings are picked from the week before, then run on the week after. A backtest that picks its settings from the same prices it is scored on flatters itself; this one does not, and it is still only an estimate.

Run it for real

Most of the exchanges LiquidityFlow partners with offer futures grid bots under a Bots or Strategy menu. The practice screen lists the partner exchanges that trade your coin, with LiquidityFlow's code where one is current. Those are referral links: LiquidityFlow may earn a commission. Check each exchange's country rules first.

Grid bots on leveraged perpetual futures can lose the whole margin. Practice results and backtests use simulated fills and past prices; they do not predict future results. Nothing here is investment advice.

Try a practice grid bot