Copy Trading & Bots

OKX Grid Bot Tutorial: How Grid Trading Works, When It Wins and When It Bleeds

A grid bot buys low and sells high inside a price range you define — automatically, around the clock. Here's how the mechanics work, how to set parameters, and the market conditions that quietly destroy grid strategies.

OKX Grid Bot Tutorial: How Grid Trading Works, When It Wins and When It Bleeds

A grid bot is the most honest of trading bots: it does exactly one thing. You define a price range, the bot slices it into levels, and it places a ladder of orders — buying when price steps down a level, selling when it steps up. Every completed down-up cycle harvests one small profit. Around the clock, without emotions.

The mechanics are genuinely useful. The marketing around them — "passive income from volatility" — deserves scrutiny.

The mechanics in one example

Suppose you run a spot grid on a coin between $80 and $120 with 20 grids. The bot creates levels roughly every $2. Price wobbles from $100 to $98? The bot bought at $98. Back up to $100? It sells, pocketing the $2 spread minus fees. Multiply by dozens of small oscillations a week and the "grid profit" accumulates — as long as price stays in the range.

When grids win

  • Ranging, choppy markets. Sideways volatility is the fuel. High volatility inside a stable range is the ideal habitat.
  • Pairs you'd hold anyway. If the base asset is something you're comfortable owning, worst cases hurt less.

When grids bleed

  • Breakout below the range: the bot has converted your quote currency into a full bag of the falling asset, then stops helping. You hold the losses; the grid profit rarely covers them.
  • Breakout above the range: less painful but frustrating — the bot sold your entire position on the way up and sits in cash while the asset moons. Grid profit captured; trend profit forfeited.
  • Fees on tight grids: each cycle pays maker/taker fees twice. Set grids too dense and fees eat the spread.

The uncomfortable summary: a grid bot is implicitly a bet that price ends the period inside your range. That is a real market view, not passive income.

Setting one up on OKX, step by step

  1. Open Trading bots → Grid and pick spot grid (skip futures grids until you fully understand leverage).
  2. Choose the pair. Favour liquid majors — thin pairs have wide spreads that sabotage cycling.
  3. Set the range. A common sane approach: recent consolidation low and high, not round numbers you hope for.
  4. Choose grid count. More grids = more frequent, smaller profits and more fee drag; fewer grids = rarer, larger cycles.
  5. Use the platform's backtest/AI-suggested parameters as a starting reference — remembering backtests describe the past, not the future.
  6. Fund it with a small test amount, run it two weeks, and read the results including unrealised P&L of held inventory, not just the headline grid profit.

Reading bot results honestly

The bot dashboard splits "grid profit" (completed cycles) from "floating P&L" (inventory value). Beginners look at the first and ignore the second. Your true result is the sum. A bot showing +$40 grid profit while holding -$300 of underwater inventory is not a profitable bot.

FAQ

Can I lose money with a spot grid bot? Yes — via price falling out of the range while the bot accumulates. Spot grids can't be liquidated (no leverage) but can hold heavy unrealised losses.

Do I need to watch it? Check-ins matter at range boundaries. Many users set price alerts at the edges of their grid.

Grid bot vs DCA? Different tools: grids harvest sideways volatility; recurring buys accumulate a position over time — see our recurring buy guide.

Educational content only — not financial advice.

Grid bot vocabulary in plain words

The setup screen assumes you know these terms — most beginners don't:

  • Upper / lower bound: the price range the bot works inside. Outside the range the bot simply stops trading; it does not protect you from the move.
  • Number of grids: how many buy/sell levels sit inside the range. More grids = smaller profit per trade, more frequent trades.
  • Grid spacing (arithmetic vs geometric): equal price steps vs equal percentage steps. Geometric usually suits wider ranges.
  • Investment amount: what the bot can deploy — remember part of it is always held as inventory of the asset.
  • Unrealized inventory loss: if price sits near the bottom of your range, the bot holds coins bought higher. The grid profit counter can be green while the total position is red.

Understanding that last term prevents the most common grid-bot disappointment.

Related reading: a calmer alternative: recurring buys · test a grid safely in demo mode