Login Page - Create Account

Support Board


Date/Time: Wed, 01 Jan 2025 14:14:58 +0000



How to default-set a time

View Count: 693

[2016-05-27 02:52:08]
User754985 - Posts: 109
Hi,

What would be the format to set default time for an input variable, like in:

SCInputRef entStartTime = sc.Input[11];
...............

entStartTime.Name = "Entry Start Time";
entStartTime.SetTime(??);

[2016-05-27 04:32:18]
Sierra Chart Engineering - Posts: 104368
Refer to:
http://www.sierrachart.com/index.php?page=doc/doc_SCDateTime.html
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
[2016-05-27 05:21:36]
User754985 - Posts: 109
Thanks.

I did not know entStartTime.SetTimeHMS (16,45,00) would work to set the default for SCDateTime input.
[2016-05-27 05:37:18]
User754985 - Posts: 109
Actually, this did not compile..

What compiled is

entStartTime.SetTime(HMS_TIME(16,45,0))

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

Login

Login Page - Create Account