Login Page - Create Account

Support Board


Date/Time: Sat, 30 Nov 2024 06:42:49 +0000



[Programming Help] - Automated trading order problem

View Count: 297

[2022-12-16 15:42:33]
User650203 - Posts: 6
hello, I use an automated trading system, when I'm in sim the orders work well and when I'm in replay it works well too. But when I am in real live account, the trading robot does not activate and take the position.
[2022-12-16 16:21:46]
User900285 - Posts: 94
From how you described it, if you are using ACSIL to do automated trading in Sierra Chart you might be missing this line in your program.
sc.SendOrdersToTradeService = !sc.GlobalTradeSimulationIsOn;

Search for sc.SendOrdersToTradeService in the SierraChart\ACS_Source folder to see different ways that it is used in the examples.

By default I think it is 0, therefore without that line your system will not work for sending orders to the trading service you are connected to.

To post a message in this thread, you need to log in with your Sierra Chart account:

Login

Login Page - Create Account