GetTradingDay()
<< Click to Display Table of Contents >> GetTradingDay() |
Returns the actual trading date based on the exchange, calculated from a DateTime object passed with with the local time. GetTradingDay() calls CalculateTradingDay() on a custom SessionIterator object created by passing in a Bars object as an argument.
Warning: This method can ONLY be called when a SessionIterator was created with a 'Bars' parameter. |
A DateTime object representing the ActualTradingDayExchange property.
<SessionIterator>.GetTradingDay(DateTime timeLocal)
timeLocal |
The DateTime value used to calculate the next trading day. |
// Declare a new custom SessionIterator |