Login Page - Create Account

Support Board


Date/Time: Wed, 22 Jul 2026 04:54:00 +0000



Post From: : Reading rectangle price coordinates from ACSIL via GetUserDrawnChartDrawing

[2026-06-05 16:59:17]
User431178 - Posts: 893
But when I call sc.GetUserDrawnChartDrawing(ChartNumber, LineNumber, Drawing, 0) it returns 0 for every LineNumber
You are using the function incorrectly, check the function signature on the docs page.

Using Drawing Tools From an Advanced Custom Study: sc.GetUserDrawnChartDrawing()
Using Drawing Tools From an Advanced Custom Study: sc.GetUserDrawnDrawingByLineNumber()


What is the correct way to iterate through all user drawn drawings to retrieve each one?
Call sc.GetUserDrawnChartDrawing with increasing index value until it returns 0, drawing index being the fourth parameter.


Is the 2nd parameter to GetUserDrawnChartDrawing a LineNumber or an index?
Neither, it's the drawing type. There is a different function that accepts a line number.


Is there a function to get the LineNumber of each drawing so I can retrieve them correctly?
When you retrieve them by index, you have access to the LineNumber as part of the tool structure.

If you want the line number of a manually selected drawing, then there is a separate function for that.

Using Drawing Tools From an Advanced Custom Study: sc.GetLineNumberOfSelectedUserDrawnDrawing()