Login Page - Create Account

Support Board


Date/Time: Wed, 15 Jan 2025 16:22:24 +0000



Post From: New sc.BaseDataEndDateTime array gives start time?

[2017-06-27 18:03:36]
DabbaDo - Posts: 148
V1575
On a 1 minute chart, I do
sc.MaintainAdditionalChartDataArrays = 1;
Then I do:
double startDateTime = sc.BaseDateTimeIn[sc.Index];
double endDateTime = sc.GetEndingDateTimeForBarIndex(sc.Index);
double endDateTimeNew = sc.BaseDataEndDateTime[sc.Index];

For a given index:
endDateTime shows me the end of the bar (the 59th second).
But endDateTimeNew shows me the beginning of the bar, essentially the same as startDateTime.
Am I misunderstanding how the new array works?
Thank you.