Login Page - Create Account

Support Board


Date/Time: Sun, 15 Jun 2025 16:34:00 +0000



Post From: ACSIL Setting default Time Settings and Inputs

[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.