Skip to article
XTester Help
XTester Launcher

Stop Robot

Choose what happens to the robot, orders and position when stopping.

Reviewed: Applies to: 1.0.0-preview.1

The stop dialog

Stop (Shift+F5, or Stop in the tray) opens the Stop the robot “…”? dialog. Nothing is chosen in advance: the Stop button becomes available once you pick an option.

Application screenshotXTester 1.0.0-preview.1
Choose what happens to virtual orders and the position. The Stop button is disabled until you select an option.Interface screenshot · XTester 1.0.0-preview.1
  1. Stop choices

• Keep orders and position: everything stays on the exchange as it is; at the next start the robot continues with them.

• Cancel orders, keep the position: the orders to be cancelled are listed under the option.

• Cancel orders and close the position: the position is closed at market. Under the option you see the position's side and size, its entry price, the current price and the estimated result of closing now, after the closing fee: “Closing now: −12.34 USDT (a loss)” in red or “+5.10 USDT (a profit)” in green. The estimate follows the robot's snapshots while the dialog is open; the fill price may differ. With no position, it says so.

• Remove the robot: stop the robot and remove it from the launcher; what to do with the orders is asked in the next step.

The option the strategy recommends is marked “— recommended by the strategy”, but the decision is yours.

Cancelling the orders cancels the stop loss and take profit too: a position left open stays without them. The dialog warns about it.

A Paper robot has its own options: Stop, keep the orders and the position (the account continues at the next start), Stop and cancel the orders, Stop, cancel the orders and close the position, Stop and start the Paper account over and Remove the robot.

Closing a Paper position is a market trade at the current price, with Paper's fee and slippage; it goes into the robot's trades and journal, and the next start begins with no position and no orders. The option shows the same estimate of the result.

Without a fresh price (no candles of the pair, or the price feed is recovering) the position is not closed and stays; the journal says so: “The robot stopped: its orders cancelled, its position NOT closed — no fresh price…”.

Removing the robot

After Remove the robot the launcher asks what to do with the orders and the position: keep them, cancel the orders, or cancel them and close the position. If you keep them, the robot no longer manages them.

If the exchange does not confirm the stop, the robot stays in the launcher and the reason is in the journal.

Pause and stop

Pause (F6): the robot stops opening new trades and cancels its orders on the exchange; a pause always does this. The position stays open, without its stop loss and take profit. Continue (F5) brings the robot back to trading.

Stop ends the robot's work with your choice of what to do with its orders and position.

If the robot did not confirm the pause, the error The robot did not confirm the pause appears: it may keep trading, so check its orders on the exchange.

Manual actions

While a LIVE robot runs, the «…» menu has two actions:

• Cancel Orders… cancels all the robot's orders on the exchange, including any the window has not seen yet.

• Close Position… first cancels the robot's orders, then closes the position at market.

After either of them the robot is paused and opens no trades until you click Continue. If the exchange did not confirm the action, an error with Open the Journal appears: check the orders and the position on the exchange.

Closing the window

Closing the window closes this robot's launcher. If the robot is not running, the window closes (or hides in the tray, if that is turned on in the settings).

If the robot runs, closing the window (or Exit in the tray icon's menu) asks once and offers the same choices for the orders and the position as the stop. To keep the robot working out of sight, minimize the window instead.

• Stop the Robot and Exit: stop the robot with the chosen option and close the launcher.

• Cancel: do nothing; the robot keeps working. Enter and Esc cancel too.

If the window does not respond, the same question is asked in a system dialog — with the same three options, for a Paper robot too, but without the estimate of the result.