Login Page - Create Account

Support Board


Date/Time: Mon, 16 Sep 2024 19:12:04 +0000



Post From: Error with Sim Lock & Orders being executed

[2024-07-04 10:59:29]
User194332 - Posts: 40
i'm declaring the variables below in the input parameters but keep getting the error in compile that it is not declared in scope.


bool Lockon = sc.SetTradingLockState(1);
bool Lockoff = sc.SetTradingLockState(0);
LockEndTime = sc.CurrentSystemDateTime + SCDateTime::MINUTES(15); // Set lock duration to 15 minutes   


If (LockOn)
{
LockEndTime;
}

Is this correct to apply the lock time? or does it need to be

If (LockendTime)

{
LockOff;
}