Grid trading for ranging markets
Place a net of buy and sell orders in a defined range. The bot buys at lows and sells at highs within the grid. In sideways markets, profit is possible; in strong trends, losses occur.
Grid is trading with sideways oscillations: price breathes up and down in a corridor, the bot buys at grid lows and sells at grid highs. Each cycle is a fixed size, but profit is not guaranteed—strong trends will result in losses.
When grid works
Grid trading may be profitable in a sideways market: price breathes around a center, the bot buys at grid lows and sells at grid highs. Each cycle generates a fixed size, but profit is not guaranteed. Over a long horizontal period, the sum of cycles may reach a few percent on active capital—but this depends entirely on volatility and parameter accuracy.
Grid fails on strong trends: price breaks the range, leaving a single big position against the move. So grid in AI Traders always pairs with a trend filter (ATR + moving average) — if the market accelerates in one direction, the bot pauses until the regime returns.
What's inside
Arithmetic and geometric
Grid step as fixed price delta (arithmetic) or percentage (geometric). Geometric is better for volatile coins, arithmetic for stable.
Whole-grid breakeven
Not "every trade profitable," but "average price of all open longs is covered by upper TP." Funding and fees included.
Trend filter
ATR-based trend detector. Volatility spike or strong MA signal — bot freezes new orders, existing ones run to completion.
TP/SL on breakout
Stop loss triggers if price exits the lower bound by more than 1× ATR. Take profit on upper breakout — scenario where market entered a strong uptrend.
180-day backtest
Walkforward on real Hyperliquid data with funding and slippage. Not cherry-picked — rolling window, separated in-sample / out-of-sample.
No infinite grids
Every grid has a safety-slot cap and total-capital cap. "Infinite grid" with growing longs is disabled by design — that's the road to liquidation.
Set up in 60 seconds
Pick a pair and range
Manual (14-day high/low) or auto-pick from ATR. Narrow range = many trades, small profit; wide range = fewer trades, more profit.
Step and grid type
Arithmetic for stable pairs (ATOM, ARB). Geometric for volatile (DOGE, INJ).
Trend filter
On by default. Wide range (>15%)? You can disable it, but trade frequency drops.
Paper and live
7 days paper. Then live with a capital cap you set yourself.