Support Board
Date/Time: Sun, 19 Jan 2025 17:35:48 +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. |