Regime-Gated Spot Grid (classic)¶
This library design is not an importable preset. The spot and futures-neutral variants both open in the Grid workspace. See the workspace quick start for the available experience.
0.13.1 (unreleased)
The Grid workspace gets perpetual grids, including Neutral, in 0.13.1. The library's futures-neutral card opens there as a Neutral perpetual grid: backtest and paper are supported; live is Untested, available only where the exchange can place reduce-only orders and that status is known. See Grid perpetuals and recenter. Details are in the 0.13.1 release notes.
Library design¶
Places buys below the price and sells above it, and earns the gap when price swings between them. It starts only when the market looks sideways (Choppiness high, ADX low, volatility not rising) and stops if a 4-hour candle closes outside the range by more than one ATR. The spot grid can end fully bought if price breaks down, or sold out early if price breaks up. The futures version is neutral: it holds a long below the start price or a short above it, one side at a time, and trades swings inside an 8% range, with liquidation kept well outside that range. Each step has to clear the round-trip fee. The card's suggested percent range is not applied automatically: you set the range in the workspace.
Grid · Intermediate · medium risk.
Spot grid¶
Settings
| Setting | Default | Editable | What changing it does |
|---|---|---|---|
| Range width | 1.5 | No | How wide the price range is, measured in normal daily swings. Wider covers bigger moves before the grid stops, but each step earns the same while money is spread thinner; narrower trades more often but is more likely to be broken. |
| Number of grids | 30 | No | How many orders the range is split into. More grids mean smaller steps and more frequent, smaller trades (fees matter more); fewer grids mean bigger steps and fewer trades. |
| Spacing | Geometric | No | Arithmetic keeps the same price gap between orders; geometric keeps the same % gap, which suits wider ranges. |
Futures neutral grid¶
A futures grid that trades swings up and down inside a narrow range, with leverage. This variant opens in the Grid workspace as a Neutral perpetual grid. Leverage, Margin mode and Switch sides past the start by are set in the workspace. Backtest and paper are supported. Live is Untested: available only where the exchange can place reduce-only orders and that status is known. Live has been checked only against simulated exchange responses, not on a real account.
Settings
| Setting | Default | Editable | What changing it does |
|---|---|---|---|
| Number of grids | 20 | No | How many orders the range is split into. More grids mean smaller steps and more frequent, smaller trades (fees matter more); fewer grids mean bigger steps and fewer trades. |
| Spacing | Geometric | No | Arithmetic keeps the same price gap between orders; geometric keeps the same % gap, which suits wider ranges. |