Login Page - Create Account

Support Board


Date/Time: Fri, 19 Apr 2024 04:11:51 +0000



sc.ModifyOrder not working in live trading

View Count: 790

[2019-06-25 07:12:25]
tomas262 - Posts: 133
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
imageAT-enabled.png / V - Attached On 2019-06-25 07:10:15 UTC - Size: 29.77 KB - 261 views
imagetrade-service-log.png / V - Attached On 2019-06-25 07:10:23 UTC - Size: 64.19 KB - 252 views
imagestudy-input.png / V - Attached On 2019-06-25 07:10:29 UTC - Size: 56.64 KB - 249 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:

Login

Login Page - Create Account