Support Board
Date/Time: Sun, 22 Dec 2024 20:49:14 +0000
ACSIL - Get date for Reference Chart data
View Count: 1642
[2015-01-08 06:15:54] |
ejtrader - Posts: 688 |
SC Team - Trying to find a way to calculate the Bar Date Time for the corresponding index on referenced data. However not sure what the syntax/function to use to get this information. Appreciate any input on this. SCGraphData ReferenceChartData;
sc.GetChartBaseData(ChartNumber, ReferenceChartData); int rBarNum = ReferenceChartData.GetArraySize() - 1; // Number of Bars in the referenced Chart double rLast = ReferenceChartData[SC_LAST][rBarNum]; // This would get the SC_LAST value for rBarNum SCDateTime rbDateTime = ???? // How to Get the DateTime of rBarNum from ReferenceChartData? Date Time Of Last Edit: 2015-01-08 06:19:18
|
[2015-01-08 07:38:15] |
crazybears - Posts: 314 |
Hi ejtrader do you want calculate the Bar-Time of bars of a chart and use it on another chart/study ? |
[2015-01-08 07:40:56] |
crazybears - Posts: 314 |
take a look here http://www.sierrachart.com/index.php?page=doc/doc_ACSILRefOtherTimeFrames.php |
[2015-01-08 08:42:20] |
Sierra Chart Engineering - Posts: 104368 |
Sounds like you want to use sc.GetChartDateTimeArray()
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 |
[2015-01-08 19:26:40] |
ejtrader - Posts: 688 |
Thanks crazybears and SC Team. yes - I was looking for sc.GetChartDateTimeArray() Though the exact/containing built-in functions available, for a specific need wanted to use the function this way. In combination with SCGraphData ReferenceChartData & SCDateTimeArray RefChartDateTime - Could get the desired result. Thanks Pseudo Code: SCGraphData ReferenceChartData; sc.GetChartBaseData(ChartNumber, ReferenceChartData); SCDateTimeArray RefChartDateTime; sc.GetChartDateTimeArray(ChartNumber, RefChartDateTime); Date Time Of Last Edit: 2015-01-08 19:33:16
|
To post a message in this thread, you need to log in with your Sierra Chart account: