Support Board
Date/Time: Sun, 15 Jun 2025 15:58:31 +0000
[Programming Help] - A way to find out the last known Center price?
View Count: 230
[2025-05-19 18:45:54] |
KylieV1618 - Posts: 69 |
Im trying to draw something in the DOM at the center price. Is there a way to get the last known center price, after the user re-centers the dom? Or if not, how can I calculate the scale/price value from the center vertical pixel coordinate. You have the function that does the inverse of that (value to pixel), but not pixel to value? Let me know Thanks |
[2025-05-19 21:40:21] |
User431178 - Posts: 711 |
ACSIL Interface Members - Functions: sc.YPixelCoordinateToGraphValue()
|
[2025-05-20 10:04:09] |
KylieV1618 - Posts: 69 |
Yeah that works to do the screen division thing. But what if I want to move around the DOM, and have the thing Im drawing move with the center price? Is there a way to know which price is currently the re-centered price? So I can base the drawing off that, and if I move away from that it moves with it. |
To post a message in this thread, you need to log in with your Sierra Chart account: