Support Board
Date/Time: Sun, 15 Jun 2025 16:00:33 +0000
[Programming Help] - ACSIL Setting default Time Settings and Inputs
View Count: 206
[2025-05-29 18:39:01] |
User92573 - Posts: 563 |
Dear Support/Support Board, In the example "HighLowForTimePeriodExtendedLines" the study inputs are as follows: Input_StartTime.Name = "Start Time"; Input_StartTime.SetTime(0); Input_EndTime.Name = "End Time"; Input_EndTime.SetTime(SECONDS_PER_DAY - 1); Input_LineStopTimeInput.Name = "Line Stop Time"; Input_LineStopTimeInput.SetTime(SECONDS_PER_DAY - 1); I'd like to set initial/default input values along the lines: Input_StartTime.Name = "Start Time"; //(10,30,0) Input_StartTime.SetTime(0); Input_EndTime.Name = "End Time"; // (12,30,0) Input_EndTime.SetTime(SECONDS_PER_DAY - 1); Input_LineStopTimeInput.Name = "Line Stop Time"; // (13,30,0) Input_LineStopTimeInput.SetTime(SECONDS_PER_DAY - 1); I've read "https://www.sierrachart.com/index.php?page=doc/SCDateTime.html#SCDateTimeMember_SetTime" But I'm struggling a little with both the time values, SECONDS_PER_DAY and how to code the inputs correctly. Any help appreciated. Many thanks. |
[2025-05-30 08:30:31] |
User431178 - Posts: 711 |
See here: ACSIL Interface Members - sc.Input Array: sc.Input[].SetTime() Using HMS_TIME sc.Input[0].SetTime(HMS_TIME(9, 30, 0)); Using an SCDateTime temporary sc.Input[0].SetTime(SCDateTime(9, 30, 0, 0).GetTime()); |
To post a message in this thread, you need to log in with your Sierra Chart account: