Support Board
Date/Time: Sat, 09 Aug 2025 19:19:53 +0000
Live Trading Issue with ACSIL Study – Order Ignored Due to SendOrdersToTradeService=0
View Count: 107
[2025-08-06 02:01:46] |
basilsamara - Posts: 3 |
Hello, Apologies if this question has already been addressed. I developed a custom study using ACSIL which backtests and forward tests successfully in Simulation Mode. However, when attempting to trade live, I'm encountering the following error: SendOrdersToTradeService is not consistent with 'Trade >> Trade Simulation Mode On' setting. Order action ignored. SendOrdersToTradeService=0, TradeSimulationModeOn=0. System Setup: Connected to CQG WebAPI Trade Simulation Mode is unchecked Auto Trading Enabled - Global is checked Auto Trading Enabled - Chart is checked Chart Trade Mode is enabled I am able to successfully place a manual Market Order The chart is using the correct live trading symbol (F.US.EPU25) I’ve reviewed the documentation and believe the issue may be related to the SendOrdersToTradeService flag not being correctly set, either in the code or chart configuration. However, I cannot identify what’s preventing the strategy from sending live orders. Any guidance or troubleshooting steps would be greatly appreciated. Thank you, |
[2025-08-06 03:17:16] |
User431178 - Posts: 755 |
Read the error message again, then read the docs again. Automated Trading Management: SendOrdersToTradeService The answer is there. For live trading sc.SendOrdersToTradeService must be true/not-zero. |
[2025-08-06 03:46:36] |
Acro - Posts: 448 |
You can try this line in your acsil code so it works in both sim and live: sc.SendOrdersToTradeService = !sc.GlobalTradeSimulationIsOn; |
[2025-08-06 16:13:57] |
basilsamara - Posts: 3 |
What I can't figure out is how to turn "SendOrdersToTradeService" to = 1
|
[2025-08-06 16:14:26] |
basilsamara - Posts: 3 |
I am currently on Sierra Chart 2773
|
[2025-08-06 16:33:32] |
User431178 - Posts: 755 |
What I can't figure out is how to turn "SendOrdersToTradeService" to = 1 Underneath the SetDefaults block in your code... |
[2025-08-08 19:51:22] |
ForgivingComputers.com - Posts: 1100 |
As @Acro said: sc.SendOrdersToTradeService = !sc.GlobalTradeSimulationIsOn;
This is the best way to fix your problem. It automatically puts the study into whatever mode you select on the Trade menu. |
To post a message in this thread, you need to log in with your Sierra Chart account: