Support Board
Date/Time: Wed, 14 May 2025 18:18:15 +0000
Post From: Error with Sim Lock & Orders being executed
[2024-06-09 13:26:49] |
User194332 - Posts: 40 |
Hi I am trying to implement some code on a SIM Lock feature and seem to be stuck on a few things. Please can you review the code and suggest some alternatives. In short, I'm trying to have a sim lock for x no of minutes when Realized P&L exceeds 250 and then get the code to reset the P&L to -500 ect.. The Code I have attached has a sim lock in place but I can see trades still executing during the locked state so wandering why that is. Additionally I want the state to be unlocked @ Market Open 09:30:00 EST but not sure if I'm using the right function to get the current time. Appreciate any help you can provide on this. Regards Avi |
![]() ![]() |