Login Page - Create Account

Support Board


Date/Time: Tue, 07 May 2024 00:30:57 +0000



[Programming Help] - ACSIL - GDI - Pixel Values for Region 2

View Count: 1479

[2014-10-24 13:49:29]
ejtrader - Posts: 688
SC Team - Would you please let me know if there are any functions available to calculate the rectangle co-ordinates as drawn in this attached image?

Thanks

For region 1 - I can use the following ( wondering if there are anything similar for region 2).
int y1 = sc.ChartRegion1TopCoordinate;
int y2 = sc.ChartRegion1BottomCoordinate;

int x1 = sc.ChartRegion1LeftCoordinate;
int x2 = sc.ChartRegion1RightCoordinate;

http://screencast.com/t/jPX0Qr0QbX2
[2014-10-24 17:42:29]
Sierra Chart Engineering - Posts: 104368
The study can get its own region coordinates with :

  int StudyRegionLeftCoordinate;
  int StudyRegionRightCoordinate;

  int StudyRegionTopCoordinate;
  int StudyRegionBottomCoordinate;
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
[2014-10-24 19:17:09]
ejtrader - Posts: 688
SC Team - Thank you. this works as expected for the main study region. Wondering if there is a way to get the co-ordinates for the right side scale area as marked in the attached image.

I mean if this is not readily available - would it be possible to introduce functions like this. The idea behind this - The space on the right margin can't be used in general by TOOLs or any other methods that I am aware of. If this is allowed for Tools(doubt it)/GDI(potentially possible) - it would be beneficial to populate some information on this Free space as needed. Considering y1/y2 - would be same as StudyRegionTop(/Bottom)Coordinate - Would it be possible to implement the following 2 functions?

int x1 = sc.StudyScaleLeftCoordinate;
int x2 = sc.StudyScaleRightCoordinate;

http://screencast.com/t/8QX1F9NkZEjF

Thank you in advance.
Date Time Of Last Edit: 2014-10-24 19:33:41
[2014-10-26 02:17:10]
ejtrader - Posts: 688
SC team - Could manage to get these values using GDI rectangle functions.

Thanks
Date Time Of Last Edit: 2014-10-27 00:02:00
[2014-10-26 23:59:26]
ejtrader - Posts: 688
SC Team - All issues related to this are resolved and this thread can be closed.

Thank you.




Date Time Of Last Edit: 2014-10-27 00:44:37
[2018-12-13 01:45:48]
User564250 - Posts: 8
ejtrader, how did you get the coordinates for that right side area?

int leftCoordinate = sc.NumFillSpaceBars * sc.ChartBarSpacing ?
Date Time Of Last Edit: 2018-12-13 02:09:06

To post a message in this thread, you need to log in with your Sierra Chart account:

Login

Login Page - Create Account