Support Board
Date/Time: Mon, 03 Nov 2025 10:38:13 +0000
Index of Current Session start
View Count: 1386
| [2016-10-08 07:21:00] |
| User53601 - Posts: 106 |
|
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] |
| |
|
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: 106 |
|
thanks
|
To post a message in this thread, you need to log in with your Sierra Chart account:
