CalculateTradingDay()
CalculateTradingDay()
Definition
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.
Property Value
This method does not return a value.
Parameters
Syntax
\<sessioniterator\>.CalculateTradingDay(DateTime timeLocal, bool includesEndTimeStamp)

