Support Board
Date/Time: Sat, 01 Feb 2025 04:03:52 +0000
sc.ModifyOrder not working in live trading
View Count: 908
[2019-06-25 07:12:25] |
tomas262 - Posts: 144 |
Hello, when trading live with some ACSIL code to modify attached order I am getting following message: "NQU19 [C] 1.50 Range #2 | SendOrdersToTradeService is not consistent with 'Trade >> Trade Simulation Mode On' setting. Order action ignored. | 2019-06-25 02:04:35.050" I understand it has to be set correctly (according to this Automated Trading Management: SendOrdersToTradeService) which I think I have done but still getting error message. Check the screenshot attached Code I use within sc.SetDefaults block: SendOrdersToService.Name = "Send/Modify Orders to Trade Service"; SendOrdersToService.SetYesNo(true); sc.SendOrdersToTradeService = SendOrdersToService.GetYesNo(); In simulation (reply) mode, everything works great! Any ideas what I could be doing wrong? Appreciate your help |
AT-enabled.png / V - Attached On 2019-06-25 07:10:15 UTC - Size: 29.77 KB - 291 views trade-service-log.png / V - Attached On 2019-06-25 07:10:23 UTC - Size: 64.19 KB - 285 views study-input.png / V - Attached On 2019-06-25 07:10:29 UTC - Size: 56.64 KB - 280 views |
[2019-06-25 11:32:32] |
Sierra Chart Engineering - Posts: 104368 |
You must move this line: sc.SendOrdersToTradeService = SendOrdersToService.GetYesNo(); Below the sc.SetDefaults block. Sierra Chart Support - Engineering Level Your definitive source for support. Other responses are from users. Try to keep your questions brief and to the point. Be aware of support policy: https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation For the most reliable, advanced, and zero cost futures order routing, *change* to the Teton service: Sierra Chart Teton Futures Order Routing |
To post a message in this thread, you need to log in with your Sierra Chart account: