IsInSession()
<< Click to Display Table of Contents >> IsInSession() |
Indicates a specified date is within the bounds of the current session, according to the configured Trading Hours template.
Note: Additionally this method will internally trigger a GetNextSession() call to calculate the next available session relative to the "timeLocal" value used in the method's input. |
A bool value when true indicates the specified time is within the current trading session; otherwise false.
timeLocal |
The DateTime value used to calculate the next trading day. |
includesEndTimeStamp |
A bool determining if a timestamp of <n>:00 should fall into the current session. (e.g., used for time based intraday series such as minute or second). |
isIntraDay |
A bool determining if IsInSession() considers the time of day (when true) or only the date (when false) |
<SessionIterator>.IsInSession(DateTime timeLocal, bool includesEndTimeStamp, bool isIntraDay)
private SessionIterator sessionIterator; |