Login Page - Create Account

Support Board


Date/Time: Mon, 16 Sep 2024 19:20:29 +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
imageSIM Lock taking positions.PNG / V - Attached On 2024-06-09 13:25:51 UTC - Size: 123.52 KB - 48 views
attachmentAvi_Lockout.cpp - Attached On 2024-06-09 13:26:11 UTC - Size: 2.58 KB - 118 views