Active window
The active window is the number of levels closest to the current price whose orders are actually placed on the exchange. The other levels sleep and switch on as the price moves. It is needed so that a large grid does not hit the Bybit order limit.
What it is
From the bot screen: “For large Grids (100+ levels), the exchange may limit the number of simultaneously open orders (cap 500/symbol). The «active window» is N levels closest to the current price that are kept on the exchange. Other levels are stored as «dormant» and automatically activate as the price moves.”
The exchange limit is 500 active orders for the whole account (per key pair). The bot keeps a reserve of 20 orders and does not place new ones beyond it, and at 80 % of the limit it sends a warning — see Exchange order limit.
How the window behaves in practice:
- only the orders of the levels inside the window are on the exchange; as the price moves the dormant levels are activated and the distant entry orders are removed;
- sell orders (the exit from the position) outside the window are not removed — that is the position, it cannot be left without an exit.
Where it is in the bot
- At creation: Main menu → 🪜 Grid Bots → ➕ Create Grid Bot → the confirmation screen → 🎯 Active window: all levels. It works on spot and on futures.
- On a running bot: the card → 🎯 Change active window.
- In the card: the line “🎯 Active window: 10 levels (two-layer buffer)”.
How to set it up
- Tap 🎯 Active window: all levels. On the screen “🎯 Active window size (two-layer buffer)” the bot hints whether the window is needed: with more than 100 levels — “💡 Recommendation: you have 120 levels — this is a large Grid. Consider enabling active window (50 is recommended) to stay within the exchange's limit (500 orders/symbol).”; with 50 and fewer — “💡 …this is a small Grid. Active window is not needed, keep «All levels».” Between 51 and 100 there is no hint.
- Choose the button 10 levels, 50 levels, 100 levels or 🔓 All levels, or send your own integer from 1 to 200. The answer: “✅ Window of 50 levels applied.” or “✅ All levels active (legacy mode).”
- On a running bot: 🎯 Change active window → the choice → ✅ Apply. The bot warns: “⚠️ Important: for a running bot, the change applies immediately. Orders outside the new window will be cancelled, new ones inside the window — placed automatically. The position remains unchanged.” The result: “✅ Active window changed: 50 levels.” or “✅ Active window disabled — all levels are active (legacy mode).”
| Value | When to use it (from the bot screen) |
|---|---|
| 10 | “narrowest window. Suitable for very large Grids (500+ levels)” |
| 50 | “balanced window. Recommended for Grids of 100-200 levels” |
| 100 | “wide window. Most of the Grid is active on the exchange” |
| All levels | “no limit (legacy mode, default)” |
Example with a calculation
A Long grid of 60 levels with a window of 10: about 10 orders closest to the price are on the exchange, not 60. When the price passes a level, the bot removes the most distant entry order and places a new one closer to the price.
Why this matters with the limit of 500: two Neutral bots of 200 levels each without a window (buys below the price and sells above it — an order at every level) make 400 orders, that is 80 % of the account limit, and you will get “⚠️ You are using 400 of 500 active orders on the exchange…”. The same two bots with a window of 50 take about 100 orders — leaving room for signal trades and for DCA bots on the same keys.
Limits and allowed values
| Parameter | Value | Note |
|---|---|---|
| Window size | 1–200 or all levels | an integer |
| Default | all levels | |
| Exchange order limit | 500 per account | the bot reserve is 20 orders, a warning at 80 % |
| Changing it on a running bot | applies immediately | the position does not change |
Common mistakes and what the bot says
- “⚠️ Enter an integer from 1 to 200 (or pick a button).” — you entered 0, 250 or a fraction.
- “⚠️ You are using 400 of 500 active orders on the exchange…” — switch the window on for the largest grids or stop some of the bots; there is more in the article You are using N of 500 orders.
- After a change of the window the orders seem to have disappeared from the exchange — that is expected: only the entry orders outside the new window were removed, the sell orders and the position are in place.
