Login Page - Create Account

Support Board


Date/Time: Sat, 05 Jul 2025 08:20:23 +0000



I need an ACSIL "Date/Time right now" function

View Count: 2967

[2015-08-18 07:45:25]
bjohnson777 (Brett Johnson) - Posts: 284
***SUBJECT: I need an ACSIL "Date/Time right now" function.

...sorry, subject line got mangled somehow and I can't change it after the post.

In working on my ACSIL multi function exit program, I've noticed that the last bar in the chart may not be "right now", especially on a slow moving stock that may not have activity for minutes at a time.

I need a "date/time right now" function to return a SCDateTime variable to get around this limitation. I can't find it on the SCDateTime doc page, so I'm guessing it doesn't exist yet. If it does and I missed it, please link me.

I've been experimenting with the native C time_t in gmtime() and localtime(), but I've been running into time zone problems I don't want to expose the world to when I eventually release this program.

Thanks
Date Time Of Last Edit: 2015-08-18 07:47:02
[2015-08-18 10:10:36]
Sierra Chart Engineering - Posts: 104368
Refer to:
https://www.sierrachart.com/index.php?page=doc/doc_ACSIL_Members_Variables_And_Arrays.html#scCurrentDateTime
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
[2015-08-19 04:16:57]
bjohnson777 (Brett Johnson) - Posts: 284
Thanks, that got things working nicely.

Can I request the Date/Time functions on that page be linked to the SCDateTime doc page to help keep things together?
[2015-08-20 04:47:34]
Sierra Chart Engineering - Posts: 104368
Yes we can do 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
[2024-11-25 00:32:20]
User745789 - Posts: 381
Re post #2, does this no longer exist?
[2024-11-25 01:22:51]
Sierra_Chart Engineering - Posts: 20083
What is the question that you have? Please do not make reference to old questions. We are not going to look back and try to understand what is being asked.
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, use the Teton service:
Sierra Chart Teton Futures Order Routing
[2024-11-25 02:51:46]
User745789 - Posts: 381
Sorry.

Quoting from the original question in #1

In working on my ACSIL multi function exit program, I've noticed that the last bar in the chart may not be "right now", especially on a slow moving stock that may not have activity for minutes at a time.

I need a "date/time right now" function to return a SCDateTime variable to get around this limitation. I can't find it on the SCDateTime doc page, so I'm guessing it doesn't exist yet. If it does and I missed it, please link me.

And quoting from the reply in #2


I have referred to that link and it does not lead to anything called scCurrentDateTime. And I can not find the string scCurrentDateTime on the linked page.

Does scCurrentDateTime no longer exist?
Date Time Of Last Edit: 2024-11-25 02:52:16
[2024-11-25 03:19:30]
Sierra_Chart Engineering - Posts: 20083
Check these:
sc.CurrentSystemDateTime
sc.CurrentDateTimeForReplay
sc.CurrentSystemDateTimeMS
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, use 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