Support Board
Date/Time: Tue, 04 Nov 2025 22:08:52 +0000
ACSIL function to fetch Y-axis coordinate of price/depth levels on DOM
View Count: 1438
| [2021-12-31 13:56:38] |
| frozentundra - Posts: 98 |
|
Hello and happy new year. What is the best method to obtain the Y-axis coordinate for a specific price or market depth level on the DOM? I'm using sc.GetDOMColumnLeftCoordinate() to fetch the X-axis coordinate successfully, but I do not see a way to find Y-axis coordinates for price levels or market depth levels in the documentation?My use case is that I am using the Windows GDI to add custom text in the DOM column General Purpose 1 and need to align text vertically on the Y-axis based on price or market depth from inside market. Thank you in advance! Happy New Year! |
| [2021-12-31 14:09:27] |
| User907968 - Posts: 847 |
|
ACSIL Interface Members - Functions: sc.RegionValueToYPixelCoordinate()
|
| [2021-12-31 14:16:22] |
| frozentundra - Posts: 98 |
|
User907968 [Direct Messages] - Posts: 637
ACSIL Interface Members - Functions: sc.RegionValueToYPixelCoordinate() This just returns the Y-axis coordinate of where my mouse pointer is, not of specific price levels. Do you have an example of how to use this with price or market depth levels? |
| [2021-12-31 14:25:02] |
| User907968 - Posts: 847 |
|
This just returns the Y-axis coordinate of where my mouse pointer is, not of specific price levels.
This is nonsense. int RegionValueToYPixelCoordinate (float RegionValue, int ChartRegionNumber); The sc.RegionValueToYPixelCoordinate function calculates the Y-axis pixel coordinate for the given RegionValue and the zero-based ChartRegionNumber which specifies the Chart Region. RegionValue will be a value within the Scale Range of the specified Chart Region. ChartRegionNumber is zero-based. The returned y-coordinate is in relation to the chart window itself. RegionValue can be any value you choose, it just happens that the example given uses 'sc.ActiveToolYValue'. For instance: int YPixelCoordinate = sc.RegionValueToYPixelCoordinate(sc.Close[sc.Index], sc.GraphRegion);
|
| [2021-12-31 15:18:34] |
| frozentundra - Posts: 98 |
|
Thank you very much for your help, I didn't know what other values were acceptable for that first argument. This is fantastic, thank you again and happy new year.
|
To post a message in this thread, you need to log in with your Sierra Chart account:
