GetNextSession()
GetNextSession()
Definition
Calculates the next available session relative to the “timeLocal” value used in the method’s input.
This method needs to be used before you can accurately determine various session properties such as ActualSessionBegin or ActualTradingDayEndLocal, etc.
Property Value
A bool value when true indicates the method was able to successfully calculate the next trading session; otherwise false.
This method is resource intensive and should ONLY be reserved for situations when calculations would be limited to a few specific use cases. For example, calling this method for each bar in the OnBarUpdate() method would NOT be recommended.
Parameters
===
Syntax
\<sessioniterator\>.GetNextSession(DateTime timeLocal, bool includesEndTimeStamp)

