Login Page - Create Account

Support Board


Date/Time: Tue, 07 May 2024 22:58:33 +0000



Time of last trade in bar

View Count: 920

[2017-06-15 16:12:13]
wwwingman - Posts: 185
Hi

I use sc.BaseDateTimeIn[] for time at open of bars.
Is there a way to get the time of close of the bar (or last trade in the bar..) ?

-- W.
[2017-06-15 17:11:45]
Sierra Chart Engineering - Posts: 104368
You need to use this ACSIL member:
ACSIL Interface Members - Variables and Arrays: sc.LatestDateTimeForLastBar
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-15 17:21:06]
wwwingman - Posts: 185
as far as I can see the sc.LatestDateTimeForLastBar works only on the current last bar unlike sc.BaseDateTimeIn[] that gives the open of ALL barS

-- W
Date Time Of Last Edit: 2017-06-15 17:21:19
[2017-06-15 17:38:49]
Sierra Chart Engineering - Posts: 104368
Yes it is only for the last bar in the chart. That is correct.
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-15 17:46:23]
Sierra Chart Engineering - Posts: 104368
It is on our task list to add a new array which does contain the last Date-Time of each bar. We will try to get that into the next release.
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-30 07:47:13]
wwwingman - Posts: 185
Note for other programmers,
The bar End time is available as of version 1575 :
Added new sc.BaseDataEndDateTime array to ACSIL which contains the ending date time for each chart bar. This requires setting sc.MaintainAdditionalChartDataArrays to 1 to cause this data to be maintained.

[2017-07-17 22:24:31]
@sstfrederik - Posts: 403
I have been testing this and see that there can be quite some difference between the end time of a bar and the subsequent start of a new bar. Varying between 1 and 12 seconds. Is this normal?

Edit. This was on a 15 min chart.
Date Time Of Last Edit: 2017-07-17 22:29:39
[2017-07-17 22:51:28]
Sierra Chart Engineering - Posts: 104368
Yes this is completely normal and expected. It can even be longer than that.
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:

Login

Login Page - Create Account