Login Page - Create Account

Support Board


Date/Time: Fri, 05 Jun 2026 07:42:51 +0000



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

[2026-06-05 05:11:28]
User516084 - Posts: 16
Hi,
I'm writing an ACSIL study that reads user-drawn extended rectangles (DRAWING_RECTANGLE_EXT_HIGHLIGHT) on a chart to get their top and bottom price values. I'm using sc.GetUserDrawnChartDrawing() to retrieve the drawings successfully, but the BeginValue and EndValue fields are returning values like 15000000 and 26000000 rather than actual prices (instrument is MNQ, price ~30200).
UseRelativeVerticalValues is returning 0, so I expected actual prices.
Specifically I need to know:

Which s_UseTool member fields contain the top and bottom price (Y-axis) values for a user-drawn extended rectangle?
Is BeginValue a DateTime or some other encoded value for rectangles, and if so how do I convert it to price?
Is there a different function I should use to read the price coordinates of user-drawn rectangles?
The BeginIndex and EndIndex contain bar indices — is the correct approach to get the price from the bar data at those indices?

Thank you