When the price moves outside your grid range, manual adjustments often cause problems. OKX offers three official solutions: stop the grid and rebuild a new range, use the moving grid feature to auto-follow, and wait for the price to return naturally.
Method 1: Stop the current grid and rebuild in a new range (most reliable, but fees apply twice)
This is the most direct method, suitable when the trend has clearly changed and the original range is completely invalid.
[What to do]: Manually terminate the current grid, release locked funds, then reset the range and number of grids based on the current market price, and create a new grid strategy.
[How to do it]:
In [Strategies] – [Spot Grid] or [Futures Grid], find the running grid and click [Stop Strategy].
The system will ask whether to close current positions at market price. If you don't want to take extra losses, you can choose 'Cancel all orders and keep positions', but you will then need to manually handle the remaining positions to free up funds.
After funds are released, go back to the creation page and set the lower and upper price limits of the grid to a new range that covers the current market price.
[Completion check]: The old grid has been terminated and settled, and a new grid has been created and is placing orders based on the current price.
Risk note: Frequently stopping and rebuilding grids will incur trading fees multiple times, which may eat into profits. Before rebuilding, estimate the profit per grid in the new range using a formula to ensure there is still room after deducting fees.
Method 2: Enable the 'Moving Grid' feature to let the bot auto-follow price (best for ranging trends)
OKX's grid strategy has a built-in Moving Grid function that allows the grid range to move with the price, actively dealing with one-sided market moves.
[What to do]: When creating the grid, tick 'Moving Grid' and set the move direction (up or down) and stop price. During strategy operation, when the price breaks out of the range, orders will be automatically placed in the new range.
[How to do it]:
Uptrend (move up): When the price breaks above the current grid upper limit, the system will cancel the lowest buy order and place a new order above the highest grid, shifting the entire range one step upward.
Downtrend (move down): When the price breaks below the current grid lower limit, the system will place a new order below the lowest grid, expanding the range downward.
[Completion check]: The grid range has been automatically adjusted based on the price direction, and the strategy continues to run without pausing due to price crossing boundaries.
Important note: Activating the moving grid (move down) requires reserving enough USDT funds in the strategy account to pay for new buy orders when the grid moves down. Without a reserve, insufficient funds during a downward move may cause the operation to fail.
Method 3: Do nothing and wait for the price to come back inside the range (suitable for short-term spikes)
If the price only briefly breaks through the range (like a 'wick' move), the easiest thing is to just wait for it to return.
[What to do]: Keep the grid running without any action.
[How to do it]: When the price breaks above the upper or below the lower limit, the grid strategy will pause placing orders. It will automatically resume only when the price returns within your set grid range.
[Completion check]: The price returns to the original grid range, and the bot automatically resumes placing and filling orders.


