Login Page - Create Account

Support Board


Date/Time: Sun, 19 Jan 2025 06:26:31 +0000



Post From: Capture"Auto Trading Enabled-Chart" status

[2018-03-14 05:28:04]
User701453 - Posts: 176
Yes,Thanks.

That link helped me to locate the sc function for the "Auto Enabled - Global" option I was going to look for next.

Currently, This is the block of code that I am using to determine Auto trade Status.
However, it only returns 0.00 for each option.

Even when I have both Auto Trade options checked under the Trade tool bar.


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.ChartTradeModeEnabled)
     {
      //ChartTradeEnabled[sc.Index]= "Enabled";//make it more logical
      ChartTradeEnabled[sc.Index]= sc.ChartTradeModeEnabled;
     }
      else
       {
        //ChartTradeEnabled[sc.Index] = "Disabled";//make it more logical
        ChartTradeEnabled[sc.Index] = sc.ChartTradeModeEnabled;
       }