CalculateTradingDay()
<< Click to Display Table of Contents >> CalculateTradingDay() |
Calculates the trading date of the time value passed in as the timeLocal argument. This method may need to be used before you can accurately determine various session properties such as ActualSessionBegin or ActualTradingDayEndLocal, etc. CalculateTradingDay() also checks the local date/time against the exchange's current date/time to ensure that the script is in sync with the exchange's current day.
Warning: This method is resource intensive and should ONLY be reserved for situations when calculations would be limited to a few specific use cases. |
This method does not return a value.
timeLocal |
The DateTime value used to calculate the 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). |
<sessionIterator>.CalculateTradingDay(DateTime timeLocal, bool includesEndTimeStamp)
protected override void OnDataPoint(Bars bars, double open, double high, double low, double close, DateTime time, long volume, bool isBar, double bid, double ask) |