Login Page - Create Account

Support Board


Date/Time: Fri, 10 Jan 2025 20:05:52 +0000



Index of Current Session start

View Count: 1084

[2016-10-08 07:21:00]
User53601 - Posts: 105
Hello,

Is there an ACSIL variable containing the bar Index corresponding to the current session StartTime
(sc.StartTime1)?

thank you
Date Time Of Last Edit: 2016-10-08 07:22:07
[2016-10-08 09:29:38]
Sierra Chart Engineering - Posts: 104368
Here is an example to do this:

  //Get index of start of trading day based upon Date-Time at current index. This code assumes automatic looping.
  SCDateTime StartDateTime = sc.GetTradingDayStartDateTimeOfBar(sc.BaseDateTimeIn[sc.Index]);
  int StartBarIndex = sc.GetContainingIndexForSCDateTime(sc.ChartNumber, StartDateTime);

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-10-08 10:05:11]
User53601 - Posts: 105
thanks

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

Login

Login Page - Create Account