Login Page - Create Account

Support Board


Date/Time: Thu, 19 Jun 2025 23:34:57 +0000



Is it possible to add a new variable to detect trade simulation mode

View Count: 425

[2022-06-08 14:54:06]
Tony - Posts: 594
Hi,

I am trying to detect whether [Trade Simulation Mode] is on or not with ACSIL code, by checking whether sc.SelectedTradeAccount contains string "Sim", I realize this is not accurate, because sc.SelectedTradeAccount could be my live account number even when [Trade Simulation Mode] is on.

Is it possible that we can have a variable to detect whether [Trade Simulation Mode] is on or not, similar to variable [sc.IsChartTradeModeOn] and [sc.ChartTradeModeEnabled]?

Thanks so much!
Date Time Of Last Edit: 2022-06-08 14:54:45
[2022-06-08 15:11:19]
Sierra Chart Engineering - Posts: 104368
Use sc.GlobalTradeSimulationIsOn
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