Tool guide · formulas · common mistakes
How to use this tool
Grid trading is mathematically simple but often dressed up in bot UIs as something more magical than it is. At core: inside a chosen price range, you buy one slice every step down and sell one slice every step up. Your edge is the step size times the trigger count, minus round-trip fees. This tool tells you, given your assumptions, what that's actually worth.
Worked example: BTC grid 55,000–65,000, 40 grids, step ≈ 250 USDT (about 0.42% of midpoint). Capital 5,000 USDT, so 125 USDT per grid. If you assume daily volatility 2.5% (near BTC's historical norm), the midpoint is 60,000 and the expected single-direction daily move is around 1,500. Under a "each grid fires once in each direction" simplification, that's roughly 12 triggers per day, gross PnL ≈ 12 × 125 × 0.0042 ≈ 6.3 USDT. After 0.04% round-trip fees, you're left with around 4 USDT — about 0.08% daily, ~30% APR — provided price stays in the range.
The model is deliberately conservative. In live markets BTC routinely punches through a range, the grid stalls, and a stack of underwater long inventory is left behind. Treat "daily PnL" as the optimistic case for range-bound regimes, never as a promise.
The math behind it
Per-grid step = (upper - lower) / grid count
Capital per grid = capital / grid count
Per-grid step % = step / midpoint
Daily triggers ≈ (daily vol × midpoint) × 2 / step
(assumes price walks the full daily distance in each direction)
Per-grid gross PnL = capital_per_grid × step_pct
Gross daily PnL = triggers × per-grid gross
Net daily PnL = gross - triggers × capital_per_grid × fee × 2
Current price location = (current - lower) / (upper - lower)
This is the "arithmetic grid + simplified vol" model. Real-world corrections: (1) geometric grids hold step % constant, arithmetic grids see it drift near the bounds; (2) high-vol days trigger far more than the formula suggests, but bring proportionally more breakout risk; (3) for perp grids you also pay funding, which can swallow 30–100% of gross.
Common mistakes
"More grids equals more profit." No. Denser grids mean smaller per-grid step but linearly more triggers — fees scale at the same rate, so the theoretical daily PnL is roughly constant. The real ceiling is whether the maker orders actually fill, whether the venue's minimum tick swallows your step, and per-venue grid-count caps. OKX spot grids practically max out at 100–200 grids.
"High-vol coins are better for grids." Higher vol means more triggers and more breakout probability. Something like SHIB can move 50%+ in a week; set the grid narrow and price blows through, set it wide and triggers vanish. Mid-vol range-bound coins (BTC and ETH in some months) are the actual sweet spot.
"Grids don't get liquidated." Spot grids don't, but perp grids — especially with leverage — absolutely do. OKX contract grids default to leverage on; if price breaks the range, the long inventory accumulates unrealised loss until it triggers liquidation. Check the settings before you switch it on.
Run the budget, then build the grid on OKX.
OKX offers spot, contract, and signal grids — the math above applies cleanly to the first two. Sign up via referral code OK6512 and the OKX Affiliate fee rebate applies*.
*Actual rebate percentage moves with OKX Affiliate policy. This site is not OKX-affiliated except via the referral code.