Editing a running bot and recreating the grid
A Grid bot does not have to be stopped to adjust the grid: the bounds, the number of grids, the amount per level, the active window, the Stop-Loss and the Take-Profit are changed on the fly, keeping the position and the statistics. A full recreate is a separate edit with different consequences. All edits are made in the Sync app: ✏️ Edit in the bot card — the app opens.
What it is
| Edit | What it changes | What is kept |
|---|---|---|
| Change bounds | narrows or widens the top and the bottom: widening adds levels, narrowing removes the levels outside the range and cancels their orders; the bounds snap to grid levels (see “Bounds follow the grid levels”); an Infinity Grid has no such edit — it has no upper bound | the position, the statistics |
| Change number of grids | more or fewer grids in the same range; an Infinity Grid has no such edit — its step is a percentage | the position, the statistics, the bounds |
| Change amount per level | a new size for the placed entry buys and for all future orders | an open position and its exit orders are not changed |
| Active window | how many levels to keep on the exchange: entry orders outside the window are cancelled, the missing ones inside it are placed, see Active window | the position, orders that close the position, partially filled orders |
| Recreate grid | the bounds, the number of grids and the amount per level from scratch | nothing: the grid position is closed at market, the statistics are reset |
| Stop-Loss and Take-Profit | set, change or remove the stop and the take-profit; saved at once, the exchange is not involved | everything: the grid, the orders, the position, the statistics |
The grid mode, the leverage, the margin, the start trigger and the trigger type of the Stop-Loss and the Take-Profit (Mark / Last / Index) cannot be edited after the creation — they need a new bot. The Stop-Loss and Take-Profit prices themselves can be changed — see the section below. And when the bounds are edited, the bot makes sure the stop and the take-profit stay outside the new range: if either of them would end up inside, the edit is refused.
Where it is in the bot
🏠 Home → 🤖 Bots → the bot → ✏️ Edit — the Sync app opens this bot with the Change settings block. There are no separate edit screens in the bot itself any more. The ✏️ Edit button is there on any bot while it is not closed, and the set of edits in the block depends on the status:
- Change bounds and Change number of grids — in the statuses “Active” and “Paused” (the bot enters the latter by itself, for example when the grid did not start); an Infinity Grid has neither;
- Change amount per level — in the statuses “Active” and “Paused”, an Infinity Grid included;
- Recreate grid — in the statuses “Active”, “Paused”, “Soft paused” (set by ⏸️ Pause) and “Out of range (above/below)”; an Infinity Grid does not have it. Out of the range the card also has a separate 🔄 Recreate grid button — it opens recreating in the app right away;
- Active window — on any bot while it is not closed;
- Stop-Loss and Take-Profit — on any bot except a closed or closing one: in any pause (soft and hard), out of the range and while waiting for the trigger as well.
In a hard pause the orders are removed, so the only edits left are the active window, Stop-Loss and Take-Profit.
On the website app.sync.trade it is the same block: Grid bots → the bot → Change settings. The rules and the checks are the same. See Bots in the cabinet.
How to set it up
Every edit follows the same pattern: tap it in the Change settings block → a window with an explanation and the fields, the current value under them (for example “Now: 60000 — 66000”) → a preview: what happens to the levels and the orders → Apply. If the edit cannot be applied, the reason is shown instead of the preview and the Apply button is inactive. The amounts are in the bot’s pair coin: in the examples below the bot is on a USDT pair; for a bot on a USDC pair the same lines say USDC.
The bounds, the grids, the amount and the window are applied on the exchange in the background: the app answers “Command sent. The result will arrive in Telegram and show up here in a few seconds.”, and the result arrives in the notification bot: “✅ Grid edit applied” with the lines “📐 Boundaries changed. Levels added: 5, removed: 0.” and “📏 New range: 60000 — 69000.”, “🔢 Density changed. Added: 4, removed: 0.”, “💵 Order size changed to 15 USDT. Orders amended: 5.”, and if there were problems — “⚠️ Skipped (below exchange min qty): 1.”, “⚠️ Partially filled and not changed: 1.”, “⛔ Failed: 0.”. If the edit could not be applied in the background (while it was waiting in the queue the bot was paused, a level got bought or the exchange did not respond), you get “⚠️ Change not applied” instead — with the reason, the current bot state and a hint on what to do.
Change bounds → the fields Upper bound and Lower bound → a preview, for example “Levels to be added: ≈5” and “Funds in use change by +50 USDT” → Apply.
Bounds follow the grid levels. As at creation, the outermost grid levels are the grid’s bounds. Widening adds levels with the same step and puts the bound on the last added level; narrowing removes the levels beyond the new bound and puts it on the outermost remaining level. So the resulting range may differ from the prices you entered: with a step of 600 an upper bound of 69 300 gives 69 000. When it differs, the preview shows “Bounds snap to grid levels — resulting range: 60,000 — 69,000”. One bound can be widened and the other narrowed in the same edit. If the new bound is less than one grid step away and nothing is narrowed, the edit cannot be applied: “⛔ The boundaries would not change: the new boundary is less than one grid step away — no new level fits, and nothing is narrowed. Move the boundary further, at least one grid step.”
Change number of grids → the field Grids (2–200), under it “Grids now: 10 (price levels: 11)” → a preview “Levels to be added: ≈4” and “Funds in use change by +40 USDT” (when reducing — “Intermediate levels to be removed: 4”) → Apply.
Change amount per level → the field Amount per level, USDT, under it “Now: 10 USDT per level” → a preview “Placed buys to be resized: 5; levels that get the new amount later: 5” and “Funds in use change by +50 USDT” → Apply.
Recreate grid → the fields Upper bound, Lower bound, Grids (2–200) and Amount per level, USDT → the window warns: “The bot cancels all orders, closes the position at market, resets the level statistics and starts the grid again with the new parameters. This cannot be undone.” → Apply (if you have not accepted the risks yet, the app asks for it first). The result arrives in the notification bot: “✅ Grid recreated. Pair: BTCUSDT. Range: 58000 — 64000. Grids: 12. Order size: 10 USDT”. The levels are built from the current price, Realized P&L and the Fills counters are reset. Recreating also works on pause and after the price left the range: the bot first cancels all remaining grid orders on the exchange and only then builds the new grid. If the exchange did not return the current price, recreating does not start — the old grid stays as it was.
Stop-Loss and Take-Profit of a running bot
The stop and the take-profit of a Grid bot are not orders on the exchange but prices the bot checks itself every 10 seconds, including while paused and out of the range. That is why editing them is simpler than editing the grid: no preview, the change is saved at once, no separate notification arrives. The grid, the orders and the position do not change.
- 🏠 Home → 🤖 Bots → the bot → ✏️ Edit → Stop-Loss and Take-Profit in the app (on the website app.sync.trade — Grid bots → the bot → Change settings → Stop-Loss and Take-Profit). A window with the explanation “When the price reaches the stop or the take-profit, the bot stops completely: it cancels its orders and closes its position at market. …” and the fields Stop-Loss, price and Take-Profit, price, filled with the current values.
- An empty field means no stop or no take-profit. The hints under the fields: “Below the lower bound 60000. Empty — no stop.” and “Above the upper bound 66000. Empty — no take-profit.” (for Short — the other way round, for an Infinity Grid the take-profit hint is “Above the top level of the grid. Empty — no take-profit.”).
- The Apply button is active only when something has changed and the values pass the check; after saving — “Stop-Loss and Take-Profit saved”. The block hint for a Grid bot: “Bounds, grids, amount and window are applied on the exchange in the background — the result comes to Telegram. Stop-Loss and Take-Profit are saved at once. The card updates itself.”
- The stop and the take-profit you set are visible in the bot card in Telegram as the lines “🛑 Stop-Loss: 55000” and “🎯 Take-Profit: 70000”.
The rules are the same in the app and on the website:
- the stop is outside the range on the losing side: for Long and Neutral strictly below the lower bound, for Short strictly above the upper one; the take-profit is on the profitable side: for Long and Neutral strictly above the upper bound (for an Infinity Grid — above the top level of the grid), for Short strictly below the lower one. A price equal to the bound is not accepted;
- the current price must not have reached the new stop or take-profit price yet — by the same price type as chosen for the bot (on spot — by the last price), otherwise the bot would stop at the next check; a bot waiting for its trigger is not checked this way — the grid starts at the trigger price, not at the current one;
- only what you change is checked: a new take-profit does not run into the old stop, and vice versa;
- the price is a number greater than zero, with a point or a comma, up to 12 digits before the point and 8 after; a notation like
1e5is not accepted; - right after a service restart, while the bot reconciles the trades with the exchange, the edit is temporarily not accepted: “System is recovering after restart. Please try again in a few seconds.”
How the stop and the take-profit fire has not changed — see Stop-Loss and Take-Profit.
Example with a calculation
A Long grid 60,000 — 66,000, 10 grids (11 price levels) of 10 USDT (step 600). The price grows and you widen the top to 69,000: “Levels to be added: ≈5” — 66,600, 67,200, 67,800, 68,400, 69,000. They need another 5 × 10 = 50 USDT; the position and Realized P&L are untouched. A recreate with the same range would give a different result: the position sold at market, Realized P&L started from zero. If the bot had a Take-Profit of 68,000, the bot would refuse such a widening: the take-profit would end up inside the new range. Then first raise the take-profit to 70,000 with the Stop-Loss and Take-Profit edit — after that widening the top to 69,000 goes through.
Limits and allowed values
| Edit | Limit |
|---|---|
| Bounds | the top is greater than the bottom; at least 2 grids remain and no more than 200 (or the account grid limit); levels with a position or with its exit order cannot be removed; the bot's Stop-Loss and Take-Profit must stay outside the new range |
| Number of grids | 2–200 grids; if support set an account grid limit, the grid cannot be grown above it (reducing is always allowed); thinning out works with 3 price levels and more; levels with a position or with an exit order are not removed |
| Amount per level | not below the exchange minimum; partially filled orders are not changed |
| Recreate | not available for an Infinity Grid; the bot's Stop-Loss and Take-Profit must stay outside the new range (otherwise it is refused — move them first with the Stop-Loss and Take-Profit edit); if the position could not be closed — a hard pause with the old levels |
| Stop-Loss and Take-Profit | the bot is not closed or closing; the stop and the take-profit are outside the range; the current price has not reached them yet; only the changed value is checked |
Common mistakes and what the bot says
The app shows a refused edit right in its window; the result of a background edit and failures arrive in the notification bot.
- “⛔ Some levels to remove hold an open position (a filled buy or sell, including a partially filled order) or carry the exit order of a position. Change blocked — wait until the exit order closes the position, or close it yourself.” — the narrowing touches a level with a position (for Long — a bought one, for Short — a sold one, for Neutral — either) or the order that will close it.
- “⛔ Fewer than 2 grids would remain after the change. Choose a wider range.”
- “⚠️ The bot's Stop-Loss (58000) would end up inside the new boundaries and trigger in the middle of normal trading. The stop must stay outside the range: for Long/Neutral below the lower bound, for Short above the upper one. Move the stop first: «✏️ Edit» in the bot card → Stop-Loss and Take-Profit (the settings open in the app).” — the new bound went past the stop; choose it so that the stop stays outside the range.
- “⚠️ The bot's Take-Profit (68000) would end up inside the new boundaries and stop the bot in the middle of normal trading. The take-profit must stay outside the range: for Long/Neutral above the upper bound, for Short below the lower one. Move the take-profit first: «✏️ Edit» in the bot card → Stop-Loss and Take-Profit (the settings open in the app).” — the same for the take-profit.
- “⛔ Some levels to remove carry the exit order of an open position (selling what was bought or buying back a short). Removing them would leave the position without an exit. Decrease is blocked.”
- “⛔ Exceeds the 200-grid limit (exchange cap).”, “⛔ Too few levels to thin out. Choose a higher count.”, “⛔ No room for new levels — they collapse onto the price tick. Choose a lower count.”
- “Your account has a limit of 50 Grid grids (51 price levels). This would make 60. Reduce the number of grids or contact support to change the limit.” — support set a grid limit for your account, and the edit would grow the grid above it. The limit is visible in advance: the top of the “2–N” hint in the name of the Grids field equals the limit, under the field — “Your account limit: at most 50 grids (51 price levels). Support can change it.”
- “⛔ Size is below the exchange minimum notional. Increase the amount.”; in the preview — “Partially filled buys that keep their size: 1” (they have a filled part, they get the new size when placed next time).
- “⚠️ Failed to recreate Grid. Bot: Grid #12 · BTCUSDT. Reason: the bot was put on hard pause, its orders on the exchange were cancelled.” — the position did not close. Open the bot card, check the position and parameters, then resume the bot.
- “⚠️ Failed to recreate Grid. … Reason: the old grid was removed, but the new one did not start — the bot is paused. Tap «▶️ Resume»: the grid will be built again with the new parameters.” — for example, the account ran out of its order limit. Fix the cause and tap ▶️ Resume.
- “⚠️ Grid not resumed. Bot: Grid #12 · BTCUSDT. Reason: the exchange account has no room for the grid orders — the active order limit is reached…” — after ▶️ Resume the grid did not start again, the bot is paused. The reason says what to do; then tap ▶️ Resume once more.
- “⛔ The bot has no grid right now — there is nothing to change. Press «▶️ Resume» to build it with the saved parameters, or «🔄 Recreate grid» in the app to set new ones.” — for a paused bot without a grid (it did not start) the range and the number of grids do not change. The amount per level and the active window can be changed — they apply when the grid starts.
- “⚠️ Change not applied. What was changed: number of grids. Reason: while the change was waiting in the queue, the conditions changed: ⛔ Some levels to remove hold an open position…” — an edit from the app or the website did not go through in the background. The message shows the current bot state; check the settings and repeat the change if needed.
- “⚠️ The Stop-Loss (61000) must be below the lower bound of the grid (60000) — otherwise it would stop the bot in the middle of normal trading.” (for Short — “…above the upper bound of the grid…”); “⚠️ The Take-Profit (66000) must be above the upper bound of the grid (66000) — otherwise it would stop the bot in the middle of normal trading.” (for Short — “…below the lower bound of the grid…”) — the new stop or take-profit price is inside the range or exactly on the bound.
- “⚠️ The price has already reached this stop (58000): it is 57500 now. The bot would stop at the next check. If you want to stop the bot, tap «⏹ Stop…» in the bot card.” — for example, for a Long 60,000 — 66,000 without a stop the price fell to 57,500 (the bot is out of the range): the stop 58,000 has already been passed, the stop 55,000 is accepted. The same for the take-profit: “⚠️ The price has already reached this take-profit (70000): it is 70500 now. …”
- “The price is a number greater than zero.” (under the field) or “⚠️ Enter the price as a number greater than zero: up to 12 digits before the point and 8 after (for example 58000 or 0.5).” — letters, zero, a number that is too long or a notation like
1e5. - “The value has not changed.” — the new price is the same as the one already set.
- “⚠️ Another operation is running on the bot right now — try again in a few seconds.” — the bot is busy with another operation at this moment; repeat the edit.
