Login Page - Create Account

Support Board


Date/Time: Mon, 29 Dec 2025 09:32:15 +0000



How to get live drawing position during drag in ACSIL?

View Count: 23

[2025-12-29 02:14:40]
User966246 - Posts: 3
I'm developing an ACSIL study that needs to read the position of a user-drawn horizontal line in real-time while the user is dragging it.

What I've tried:

sc.GetUserDrawnDrawingByLineNumber() - Returns position only after mouse release
sc.GetSelectedUserDrawnDrawingFromChart() - Returns position only after mouse release
sc.ActiveToolYValue - Doesn't update during Sierra Chart's internal drag handling
sc.GetLineNumberOfSelectedUserDrawnDrawing() - Correctly identifies which drawing is selected, but can't get live position

Also tried
sc.UpdateAlways = 1
sc.ReceivePointerEvents = ACS_RECEIVE_POINTER_EVENTS_ALWAYS
Drawing created with AddAsUserDrawnDrawing = 1

Observation: Sierra Chart's own price label on the drawing updates correctly during drag, so the position IS known internally, but I can't find a way to get it into the study while it's being edited.

Question: Is there an ACSIL function to get the real-time position of a user-drawn drawing while it's being dragged, before the mouse button is released?

Thank you!
[2025-12-29 03:02:16]
Sierra_Chart Engineering - Posts: 22043
We need to add a new function for this. This new ACSIL function will be in the next release:
int32_t (SCDLLCALL* GetCurrentUserDrawnChartDrawing)(int32_t ChartNumber, s_UseTool& r_ChartDrawing);
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, use the Teton service:
Sierra Chart Teton Futures Order Routing

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

Login

Login Page - Create Account