How exits, closes and rolls work
Who holds an entry’s take profit and stop on each exchange, which stops the engine watches, what each close sends and in what order, and how rolls, multi-leg orders and one-click trading are kept safe.
Who holds an entry’s take profit and stop
Which exits outlive BackQuant, exchange by exchange, is in Stops, exits and hedges. What happens inside:
- Bybit, Deribit, Lighter, OKX
- The exchange, with the entry, in one request. They work with BackQuant closed, and are cancelled with the entry.
- Hyperliquid
- The exchange places them once the whole entry fills. While a resting entry is partly filled, the engine keeps a reduce-only stop on the part that filled (not where you already held a position that way). If the entry ends partly filled, the engine places both for the part. Keep a tab open until it has filled.
- Binance futures, RISEx
- The exchange holds none with an entry. The engine places reduce-only exits at the exchange as the entry fills, kept to what has filled. With no BackQuant tab open when it fills, they are placed when one next opens, and the position stands without them meanwhile.
- Derive, options, and spot on Hyperliquid, Lighter, OKX and Binance
- None attach. The ticket offers Take profit / stop loss, watched in this tab, instead: the take profit rests at the exchange, and the stop lives in the engine. Despite the label, the engine is shared by every BackQuant tab in this browser, so the stop is watched while any of them is open.
A stop the engine watches
- How it fires
- It checks every 250 ms the price you chose in Stop price (Mark by default; Last, Index, Mid, Bid or Ask). It arms on the first fresh price on the right side of the level and fires once, on the first fresh price past it, as one reduce-only immediate order no worse than Stop no worse than. A price more than 5 seconds old neither arms nor fires it.
- A gap
- If the price jumps through the level, it fires on the next fresh price. Only Stop no worse than limits the fill: past it, the order does not fill.
- If the engine stops
- Once the last BackQuant tab in this browser has closed, the take profit stays at the exchange as a plain order and the stop is gone. Keep a BackQuant tab open, or use an exchange that holds stops.
Entry, take profit and stop together
- Sized to what filled
- The take profit and stop together cover only what the entry has filled. As the entry fills, the take profit grows by adding reduce-only orders at the same price.
- One cancels the other
- What the stop closes comes off the take profit, and the other way round. On spot the two take turns, so a holding is never offered for sale twice.
- The stop hits first
- What is left of the entry is withdrawn, then what was entered is closed.
- Done
- Once the entry has ended and everything it filled is closed, the exits left are cancelled.
- Never unwound
- If an exit cannot finish, you are told how much is still unprotected. Nothing is undone for you.
Stop at breakeven
From a position’s Close menu: Stop at breakeven, or Stop at breakeven, every position. Perpetuals and futures only.
- The price
- The position’s entry, on the tick, rounded toward profit.
- Only in profit
- Needs a live price past the entry by at least two ticks or 0.05%, on the price the stop watches, so it never fires on arrival.
- Never a loosening
- A stop already at or past breakeven for the whole position is left as it is. So are a bracket’s or an entry’s own stop, a trailing stop, and a stop locking profit on part of the position.
- Moved, not doubled
- Where the exchange holds a stop on the position itself, that stop is set to the entry. Elsewhere a new reduce-only stop goes for the whole size, and your older stops short of breakeven are cancelled only once the new one works at the exchange.
What each close sends
- Close at market
- Close all, 50% or 25% at market from a position: one reduce-only immediate order, no worse than your slippage from the touch.
- Close with a limit, by chase, by TWAP
- Loads the close into the ticket as that method, to check and start there. Nothing is sent until you do.
- Pressed before the account is ready
- A close, a cancel or a reduce-only order asked for while the account connects or reconciles is held in that tab, not refused, and sent once, the moment it is ready. It is built then from the position as it is: cut to its size, and dropped if the position has closed or turned the other way, or the market has moved past its price bound. Not ready within a minute, it is dropped and said as not sent. Until then the held line lists what waits, with the time it has left: Don’t send there takes it back.
- Never silent
- A Close press always says what happened: sent, held, or why not.
- Close half, Close a quarter (hotkeys)
- That share of the position, worked out exactly and rounded down to the size step, as one reduce-only market order. Under the market’s smallest size or order value it is refused before sending. Held through startup as a close is.
- Reverse
- One runner for the Close menu, the DOM and Shift+R, one reverse per position at a time across every tab of the browser. It first waits up to 4 seconds for current positions, orders, algorithms and a live price, and stops if the position changed since you asked, an algorithm or Auto-hedge trades the market, or an order on the closing side is not reduce-only. Then one reduce-only market order for the whole position. The other side is sent only once that very order has filled whole and the position shows flat (it waits up to 15 seconds); checked again at that moment: still flat, a live price, nothing else adding to that side. Only one reduce-only close can fill a whole position, so a reverse can never double it. Anything else, and nothing is opened, saying why.
- Flatten at the touch (FLAT)
- In order, one step at a time: stops every algorithm, cancels every order (one cancel-all where the exchange has it), then one reduce-only limit per position at the touch, immediate where the exchange allows. A position that cannot be closed this way is skipped, with the reason.
- Flatten now
- The same stops and cancels, then each coin closed from the account’s checked positions: one reduce-only immediate order each, no worse than 2% (200 bps) from the mark.
- Close a coin (CLOSE BTC)
- Each line built from positions the engine has checked with the exchange. A line is blocked, not guessed at, if the two disagree, if the exchange’s figure is more than 30 seconds old or older than the last fill, with no price under 5 seconds old, or if the book is beyond your bound. Confirm within 15 seconds of the preview: refused whole if anything changed since; then algorithms on those markets and Auto-hedges keeping that coin stop, their orders are cancelled, and one reduce-only immediate order goes per line at the bound.
- Nothing is retried
- None of them loops until flat. What does not fill is reported, and you can look again and send again.
Rolling an option
- Two linked legs
- The close of the old expiry leads; the open of the new one follows. The open may hold at most what has closed (rounded down to its lot), plus Open may get ahead by.
- Pricing
- Each leg rests at the touch and follows it, repricing at most once a second, never past its No worse than, holding while prices are stale.
- Cross after
- Not filled by then, each leg crosses once, 2 ticks through, still within its worst price. Empty: never.
- If the open cannot trade
- The close is held too, so you are never left with the old leg closed and nothing opened. If the open ends short, the roll stops and states both fills. Nothing is unwound.
Multi-leg orders
- Order book, 2 to 4 option legs
- Sent as one linked package. The first buy leads; a sell works only up to what every buy has filled, and no leg gets more than about a tenth of the package ahead of the slowest. If one leg ends (refused for margin, say), the others stop at what it filled.
- Order book, anything else
- Leg by leg, buys first; sells go once every buy has filled, with no deadline. The first leg refused stops the rest. Legs that already went stay as they are.
- Combo
- One order on Deribit’s listed combo: it fills as a whole, so no leg can fill without the others (no legging risk).
- RFQ
- Deribit shows price levels: you take a side, a price and an amount, fill or kill or resting. Bybit and Derive show named quotes, taken at exactly that price. A take asks first and is sent once, never retried.
One-click safety
- Locked
- The default. A click only fills the ticket, and the Buy and Sell at market, Close, Reverse and Cancel buttons are not there.
- Fat fingers
- Armed, a click more than 2% through the touch is not sent: it goes to the ticket. More than 10% through, it is refused. A limit at or through the touch, or a drag that would fill or fire at once, asks first even armed.
- Double sends
- The same click within 400 ms is dropped. A cancel already on its way is not sent again.
- Close, Reverse
- Reverse closes first and opens the other side only once flat (see What each close sends). A second press of Close, Reverse or a part close is refused until the position changes, or 8 seconds pass.
- Followed to the end
- Accepted only means the exchange has the order. Each order sent from the DOM is followed until it ends, and its end is said: filled, part filled, cancelled, or refused in the exchange’s words.
- Outcome unknown
- Nothing more is sent from the DOM, the pad or the chart until you have checked and pressed I have checked.
More
- Stops, exits and hedges. Every exit control, and which exits each exchange holds.
- Positions and orders. The Close menu, held closes and Reverse.
- The option chain. The roll window.
- Structures and packages. Multi-leg orders and the multi-leg ticket.


