Login Page - Create Account

Support Board


Date/Time: Mon, 13 May 2024 07:42:18 +0000



New sc.BaseDataEndDateTime array gives start time?

View Count: 856

[2017-06-27 18:03:36]
DabbaDo - Posts: 146
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.
[2017-06-27 18:05:37]
Sierra Chart Engineering - Posts: 104368
What is the timeframe of the chart bars?

And what is the Intraday Data Storage Time Unit set to?

This new array was added quickly and never tested. Although we would not expect a problem.
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
[2017-06-27 18:08:46]
DabbaDo - Posts: 146
They are 1 minute bars,
The Intraday Data Storage Time Unit is also 1 minute, so that is probably the answer.
Does the new array hold the last theoretical time of the bar (for time-based bars), or does it hold the time of last trade/tick in the bar (from the .scid file or its buffer)?
Thanks.
[2017-06-27 18:14:45]
Sierra Chart Engineering - Posts: 104368
Yes that is definitely the reason for the limitation. The ending Date-Time will never be known in this case.

For the greatest accuracy the Intraday data must be tick by tick.

Documentation will be prepared for this array as soon as possible.
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
Date Time Of Last Edit: 2017-06-27 18:15:01

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

Login

Login Page - Create Account