Support Board
Date/Time: Wed, 27 Nov 2024 13:07:21 +0000
how to check if reference bars are closed
View Count: 1037
[2014-08-29 19:15:32] |
umair1 - Posts: 86 |
I'm using the following code to reference the OHLC from another graph: SCGraphData BaseGraphData; sc.GetChartBaseData(ChartStudy.GetChartNumber(), BaseGraphData); As I understand it, BaseGraphData will contain the OHLC arrays. But how do I determine whether the bars from the reference graph are closed ie is there an equivalent for sc.GetBarHasClosedStatus() for reference arrays? Also is there an equivalent for sc.AreRenkoBars() for reference arrays? Thanks |
[2014-08-29 20:28:25] |
Sierra Chart Engineering - Posts: 104368 |
All bars in BaseGraphData are considered closed except for the last one. The array size can be determined with: BaseGraphData[sc_LAST].GetArraySize() Also is there an equivalent for sc.AreRenkoBars() for reference arrays? 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-08-29 21:40:15] |
umair1 - Posts: 86 |
So is there anyway to tell if the BaseGraphData bars are Renko Bars? Is there anyway to get the handle of the entire reference chart sc object? Something like: sc.GetChartHandle(ChartStudy.GetChartNumber(), ref_sc); ref_sc.AreRenkoBars(); Date Time Of Last Edit: 2014-08-29 21:44:06
|
[2014-08-30 00:05:12] |
Sierra Chart Engineering - Posts: 104368 |
So is there anyway to tell if the BaseGraphData bars are Renko Bars? No there is not.However, what you can do is automatically open a chart according to your specifications: https://www.sierrachart.com/index.php?page=doc/doc_ACSIL_Members_Functions.html#scOpenChartOrGetChartReference 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: