Support Board
Date/Time: Sat, 18 Jan 2025 12:54:57 +0000
Post From: ACSIL: ActiveToolYValue issue
[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
|