Login Page - Create Account

Support Board


Date/Time: Wed, 08 May 2024 23:25:06 +0000



Post From: sc.SendOrdersToService settings

[2018-04-19 13:45:40]
jizzary - Posts: 177
Hi

After reading the "Going from Simulation Mode to Live Trading" text (in the documentation) I don't understand why a change (enable/disable)
of the Trade >> Trade Simulation Mode On doesn't cause the Sierra platform to set the system variable sc.SendOrdersToService but requires
the intervention of the study developer using the following code?

SCInputRef SendOrdersToService = sc.Input[10];

if (sc.SetDefaults)
{
SendOrdersToService.Name = "Send Orders to Trade Service";
SendOrdersToService.SetYesNo(false);
return;
}

sc.SendOrdersToTradeService = SendOrdersToService.GetYesNo();


Thanks.