Login Page - Create Account

Support Board


Date/Time: Mon, 23 Dec 2024 02:00:10 +0000



Post From: ACSIL - Get date for Reference Chart data

[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