Login Page - Create Account

Support Board


Date/Time: Fri, 03 May 2024 09:51:09 +0000



sc.BarIndexToXPixelCoordinate returns negative numbers

View Count: 493

[2020-05-26 19:24:48]
User305536 - Posts: 52
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: 52
I mean I am using the following function sc.YPixelCoordinateToGraphValue but it returns negative value
[2020-05-27 13:30:18]
Sierra Chart Engineering - Posts: 104368
You will want to use this function instead:
sc.RegionValueToYPixelCoordinate(float RegionValue, int ChartRegionNumber);

Refer to:
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:

Login

Login Page - Create Account