Login Page - Create Account

Support Board


Date/Time: Fri, 10 Jan 2025 23:07:51 +0000



Post From: sc.IsTradeSimulationModeOn?

[2016-10-04 07:09:37]
Pinger - Posts: 33
Hi

Is there a "sc.IsTradeSimulationModeOn" variable similar to "sc.IsAutoTradingEnabled"?

The reason I ask is that I would like to be able to do a "if (sc.IsTradeSimualtionModeOn == No && sc.SendOrdersToTradeService == Yes)" test in a study to determine whether I'm sending orders to my trade service or the simulation mode. These variables need to be set consistently so it would be nice to be able to test them together.

Apologies for the question if the variable exists but I can't find it in the documentation.

Kind regards