Support Board
Date/Time: Sun, 19 Jan 2025 06:13:26 +0000
Post From: Capture"Auto Trading Enabled-Chart" status
[2018-03-14 06:37:07] |
User701453 - Posts: 176 |
Thanks for your input and help. I`m using what may seem like a long code block, that could be made smaller. But I plan to add additional code within the decision statements. Such as write to message log, etc. Yes, Perhaps Sierra needs to update their support page. SC version 1705 allows you to choose To have a master switch "Auto Enabled - Global" for the entire Instance and then "Auto Trading Enabled-Chart" for each individual chart in the chart book. I was able to get the sc.IsAutoTradingEnabled status working. It returns a "1" now when it is enabled and a "0" when disabled. But only if "Auto Trading Enabled-Chart" is also checked for the chosen chart. The sc.IsChartTradeModeOn also finally returns a value of "1". Bad part is that it stays a "1" even if the "Auto Trading Enabled-Chart" isn't checked. So looks like there is a internal platform bug. So long story is, I'm still not able to see at a glance when a chosen chart has "Auto Trading Enabled-Chart" checked. Perhaps SC support will take time to view this thread and provide a workable solution for the sc.IsChartTradeModeOn only returning a "1". Current code block below: if (sc.IsAutoTradingEnabled) { //GlobalTradeEnabled[sc.Index] = "Enabled";//make it more logical GlobalTradeEnabled[sc.Index] = sc.IsAutoTradingEnabled; } else { //GlobalTradeEnabled[sc.Index] = "Disabled";//make it more logical GlobalTradeEnabled[sc.Index] = sc.IsAutoTradingEnabled; } if (sc.IsChartTradeModeOn) { //ChartTradeEnabled[sc.Index]= "Enabled";//make it more logical ChartTradeEnabled[sc.Index]= sc.IsChartTradeModeOn; } else { //ChartTradeEnabled[sc.Index] = "Disabled";//make it more logical ChartTradeEnabled[sc.Index] = sc.IsChartTradeModeOn; } |