Login Page - Create Account

Support Board


Date/Time: Wed, 27 Aug 2025 02:45:23 +0000



Post From: SendOrdersToTradeService is not consistent with 'Trade >> Trade Simulation Mode On'

[2025-05-08 07:25:08]
User61576 - Posts: 453
i have a custom study file in which we take input for live trading as follows-
"ProductionMode.Name = "Production Mode Enable";
ProductionMode.SetYesNo(false);
"
the above lines are in sc.setdefaults and then after sc.setdefaults is the following line-
"sc.SendOrdersToTradeService = ProductionMode.GetYesNo();"
the problem is when i open a chartbook which has multiple charts and i apply the custom study, change the value to yes so it should be in live trading, the trades are happening successfully but i am getting the message "SendOrdersToTradeService is not consistent with 'Trade >> Trade Simulation Mode On'" in my trade service log. Somebody in support board suggested the change "sc.SendOrdersToTradeService = !sc.GlobalTradeSimulationIsOn;" which i tried today, the trade service log is telling me the message for charts "Delta 100 v#2" and "Delta 100 v#3". But i did not even apply the custom study file to those charts. I applied it on "100 trades #1". Then I applied my custom study to delta v#2 and delta v#3 and trades happened but still i was getting the same message in trade service log. My chart settings are as follows- trade>>
Trade simulation mode on (unchecked) , auto trading enabled - global (checked), auto trading enabled - chart (checked). Is there any sierra chart setting that i am missing or is the issue in my code because i have followed the instructions of keeping "sc.SendOrdersToTradeService = ProductionMode.GetYesNo();" after sc.setdefaults. Also, i am only getting these message in trade service log when i enter a trade in a chart. as soon as the trade ends, the message stops in trade service log but as soon as it enters a trade again then i get the same message again till the trade is finished. Also checked if by mistake the value of sendorders is getting changed anywhere else in the code and it is not being changed.