Support Board
Date/Time: Sat, 23 Nov 2024 23:59: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 |
SIM Lock taking positions.PNG / V - Attached On 2024-06-09 13:25:51 UTC - Size: 123.52 KB - 67 views Avi_Lockout.cpp - Attached On 2024-06-09 13:26:11 UTC - Size: 2.58 KB - 179 views |