Login Page - Create Account

Support Board


Date/Time: Sun, 19 May 2024 12:02:08 +0000



ACSIL: ActiveToolYValue issue

View Count: 834

[2018-02-10 03:43:07]
knoxville1915 - Posts: 38
I'm having an issue with the sc.ActiveToolYValue function. Whenever I trigger the event using a keyboard hotkey, the function returns the top-most Y-value of the chart, not the Y-value associated with the pointer location. This occurs whether sc.ReceivePointerEvents is set to ACS button, always, or always for all tools. I've tested it outside the hotkey trigger, but it still returns the top-most Y-value of the chart.

  sc.SetCustomStudyControlBarButtonText(18, "Get Price");
  if (sc.MenuEventID == ACS_BUTTON_18)
  {
    StopValue.Data[pos] = sc.ActiveToolYValue;
    sc.SetCustomStudyControlBarButtonEnable(ACS_BUTTON_18, 0);
  }


Edit: The function works correctly when the Chart Values tool is active, but not when the Pointer or Hand tools are used.
Date Time Of Last Edit: 2018-02-10 13:49:39
[2018-02-12 06:13:25]
Sierra Chart Engineering - Posts: 104368
We made some changes with the way this is implemented that should resolve this and also improve performance a little too.
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
Date Time Of Last Edit: 2018-02-12 06:14:32

To post a message in this thread, you need to log in with your Sierra Chart account:

Login

Login Page - Create Account