Login Page - Create Account

Support Board


Date/Time: Sun, 28 Apr 2024 11:09:24 +0000



sc.YPixelCoordinateToGraphValue(sc.StudyRegionTopCoordinate)

View Count: 843

[2014-09-26 23:01:47]
marcovth - Posts: 61
Hello ...

Can your team introduce "sc.PriceChartTopCoordinate" and "sc.PriceChartBottomCoordinate"?

I am using this code as part of a study in graph region 2, while drawing with this study items in the main price chart region 1.

float topPrice=sc.YPixelCoordinateToGraphValue(sc.StudyRegionTopCoordinate);
float botPrice=sc.YPixelCoordinateToGraphValue(sc.StudyRegionBottomCoordinate);

After some searching, I finally figured out what my bug was: Instead of obtaining the the top and bottom prices of the main price chart region, I was getting the top and bottom values of graph region 2.

Therefore my request for "sc.PriceChartTopCoordinate" and "sc.PriceChartBottomCoordinate", that would solve my problem.

Thanks in advance.
Date Time Of Last Edit: 2014-09-26 23:02:38
[2014-09-28 04:48:59]
Sierra Chart Engineering - Posts: 104368
This will be added to the next release.
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