Closing or cancelling a trade
Closing a trade in the bot is one action for two situations: if the position is already open, the bot closes it at market; if nothing has been filled yet, it simply removes the entry orders. In both cases the bot cancels the remaining orders itself and sends a final summary.
Where it is in the bot
Main menu → 💼 Trades → the trade → the buttons Close trade, Close partially, Close Stop Loss at market. The Close all trades button is on the trade list screen.
How it works
Closing one trade
- In the card press Close trade.
- The bot asks: “Are you sure you want to close this trade?” → Yes.
- The answer: “⏳ Cancellation request accepted. The result will arrive in a separate message.”
- The notification bot receives a summary headed “✋ Trade cancelled” with the line “💰 PnL: …” if the position was open.
The bot cancels the entry orders, places a market order for the whole open position and removes the take-profits and the stop. In the history the trade gets the status “Trade closed manually”, and if there was no position yet — “Trade cancelled during opening”.
Closing partially
- Close partially → “Choose how much of the trade you want to close”.
- The bot shows “Will close: 0.25 qty” and asks “Are you sure you want to partially close the trade?”.
- After the confirmation: “Partial close: success. Request sent to exchange (0.25 qty). Execution status will arrive as a separate notification.”
- The outcome is “✅ Partial close completed”. The stop and the targets are recalculated for the remainder; the Partial closes line in the card gets a new record.
Moving the stop to the market
Close Stop Loss at market moves the stop order to the current price: the position closes on the next move against you, and until then it stays under control. The result: “Stop-Loss successfully moved”.
Closing all trades
Close all trades → “Are you sure you want to close all open trades? This will place market orders at current price.” → Yes → “⏳ Request to cancel all trades accepted. Results will arrive in separate messages.”
What is important to know
- A close at market is filled at the current price, not at your target.
- On spot, “dust” may be left after the close — a remainder smaller than the minimum order of the exchange. The bot says so and stops tracking the trade; the remainder is sold through the small balance conversion (Convert) on the exchange — see Dust on spot.
- If you closed the position by hand on the exchange, the bot notices it itself: “ℹ️ Position closed manually on the exchange. Finishing the trade: cancelling remaining orders and recording the result.”
Limits and allowed values
| Parameter | Value |
|---|---|
| Partial close | Only with an open position; the volume is not more than the position; the remainder is not less than the minimum order of the exchange |
| The minimum order of the exchange | ≈5 USDT — a smaller remainder is not accepted for selling |
| Closing all trades | Market orders on all open trades, with a confirmation |
Common errors and what the bot says
- “⚠️ Cannot perform partial close: no open position” — the entries have not been filled yet; use Close trade.
- “Cannot close 0.8: position is only 0.5” / “Remaining position is too small” — reduce the share or close everything.
- “ℹ️ The trade is closed. 0.0004 BTC remain on the exchange — this amount is below the exchange minimum order (≈5 USDT), so it cannot be sold. The coins stay in your account: sell them via small balance conversion (Convert) or wait for the price to rise. The bot no longer tracks this trade.”
- “⚠️ The trade was cancelled, but the exchange rejected the cancellation of some orders — details below. Check your open orders in the exchange app.”
- “✅ The position was closed after all: the retry succeeded, no coins are left on the exchange for this trade.” — the first attempt failed, the second one closed it.
- “⛔️ Automatic position closing failed after several attempts. Sell the remainder manually in the exchange app and contact support. If the exchange rejects it because the amount is too small, use the small balance conversion (Convert).”
- “⚠️ WARNING: failed to close the position — your coins REMAIN on the exchange without protective orders. Reason: … Sell the remainder manually in the exchange app and contact support: the trade stays in the "cancelling" state and can no longer be managed from the bot menu.”
- “Closing order was not executed: the position is already closed or the remainder is too small. The trade state will be reconciled automatically.”
