Login Page - Create Account

Support Board


Date/Time: Wed, 08 May 2024 21:53:54 +0000



Post From: I need an ACSIL "Date/Time right now" function

[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