SessionIterator
<< Click to Display Table of Contents >> SessionIterator |
Allows you to traverse through various trading hours data elements which apply to a segment of bars.
Note: Should you wish to obtain trading hours information for historical bar values, you need to construct and store your own session iterator object based of the desired bars series array. |
bars |
The Bars object used to create the SessionIterator |
Warning: The properties in this class should NOT be accessed within the OnStateChange() method before the State has reached State.DataLoaded |
Obtains the sessions start day and start time converted to the PC's local time zone |
|
Obtains the sessions end day and end time converted to the PC's local time zone |
|
Returns the sessions End-Of-Day (EOD) in the local timezone |
|
Obtains the date of a session representing the trading date of the exchange |
|
Calculates the current trading date of a specified date |
|
Calculates the next available session relative to a specified date |
|
Returns the actual trading date based on the exchange |
|
Converts the trading day begin time from the exchange timezone to local time |
|
Converts the trading day end time from the exchange timezone to local time |
|
Indicates if a specified date is within the bounds of the current session |
|
Indicates if a specified time is greater than the actual session end of the current session |
|
Indicates if a trading day is defined for a specific date |
Tip: In order to calculate a session information for another multi-instrument or multi-time frame script, you can pass in the desired BarsArray array value as the SessionIterator bars object. |
private SessionIterator sessionIterator; |