Support Board
Date/Time: Tue, 28 Oct 2025 20:15:16 +0000
Post From: Error with Sim Lock & Orders being executed
| [2024-07-01 07:58:59] |
| User431178 - Posts: 804 |
|
Are you saying that this cannot be done directly in the code? What does sc.CancelAllOrders(); do ? Not at all, just that you should check the the position is flat and that any orders have been cancelled before setting the lock. |
