Login Page - Create Account

Support Board


Date/Time: Sat, 18 May 2024 04:37:49 +0000



calculate the time period of the chart bar as an SCDateTime value

View Count: 549

[2020-12-19 13:34:33]
User820318 - Posts: 40
How can I calculate the time period of the chart bar as an SCDateTime value?

This is suggested here (ACSIL Programming Concepts: Determining if Last Chart Bar is Closed) but Im getting stuck with this.

Say Im working with a 60 sec bar. I want to know how many seconds have elapsed of the current bar - e.g. 40s.

Anyone have any tips?
[2020-12-19 23:59:54]
Sierra Chart Engineering - Posts: 104368
We know what you are looking for and this ACSIL function will be in the next release:
sc.IsLastBarClosedBasedOnElapsedTime(const int ChartNumber)
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