This happens because Tuned cannot track when an order is submitted directly from an exchange account. This causes misalignment between what Tuned expects to find and what the account actually has.
Tuned calculates the metrics of a live run based on the positions it considers to be open/has opened. Discrepancies can appear between the values shown in the terminal and the values in the exchange, if users manually interfere with automated orders.
Let's go over how to synchronize Tuned and the exchange.
The simplest method is to start a new live run. Though, we understand this may not be ideal. Especially if success fees are involved.
If you don't wish to restart the run, we suggest using the “Market Close Position” in the respective live run. Immediately followed by closing the order from the exchange. Note: Tuned closes positions by executing an order of equal position size to the previous order, but in the opposite direction. This ends up being equal to 0 net position size in the exchange (No open order).
In this scenario, assuming we are trying to correct for a manual order already placed on the exchange, we'd actually be opening a new order when using "Market Close Position" from Tuned. That is why we must close the new order from the exchange. The result is that both Tuned and the exchange will have a net 0 position, thereby synchronized. From here, you can resume the live run.
If you wish to end a live run, navigate to the “Pause” icon next to the respective run and pick the “Pause now and leave position open” option since the position was already closed in the exchange by the user.