Support Board
Date/Time: Sat, 05 Jul 2025 08:17:40 +0000
sc.BarIndexToXPixelCoordinate returns negative numbers
View Count: 646
[2020-05-26 19:24:48] |
User305536 - Posts: 61 |
Hello, I am trying to get the Y Pixel coordinate given a price on the main graph. After digging I found sc.BarIndexToXPixelCoordinate and attempt to call it with the last price. it returns negative numbers. I have no Idea how to get the Y Pixel for a given price. |
[2020-05-26 21:01:13] |
User305536 - Posts: 61 |
I mean I am using the following function sc.YPixelCoordinateToGraphValue but it returns negative value
|
[2020-05-27 13:30:18] |
|
You will want to use this function instead: sc.RegionValueToYPixelCoordinate(float RegionValue, int ChartRegionNumber);
Refer to: ACSIL Interface Members - Functions: sc.RegionValueToYPixelCoordinate() 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, *change* to 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: