Login Page - Create Account

Support Board


Date/Time: Thu, 28 Mar 2024 17:56:41 +0000



Post From: auto study placing one trade

[2014-01-09 02:12:03]
fhvtrading2 - Posts: 11
I have the following code snippet where I try to enable a study based on pushing the ACS button. But it doesn't seem to work. Can this be done?

Thanks in advance for any pointers.



SCInputRef Enabled = sc.Input[0];


// wait for an event
  if (sc.MenuEventID != 0)
  {
    if (sc.MenuEventID == SC_ACS_TOOL1)
    {
     Enabled.SetYesNo(1);
    }
  }
  else
  {
    Enabled.SetYesNo(0);
  }

  if (!Enabled.GetYesNo())
    return;

/// the rest of my study