GetPreviousTradingDayEnd()
<< Click to Display Table of Contents >> GetPreviousTradingDayEnd() |
Returns the end date and time of the previous trading session regarding the time passed in the methods parameters.
A DateTime structure representing the previous trading days end date and time
GetPreviousTradingDayEnd(DateTime timeLocal)
Warning: This method is resource intensive and should ONLY be reserved for situations when calculations would be limited to a few specific use cases. For example, calling this method for each bar in the OnBarUpdate() method would NOT be recommended. |
timeLocal |
An DateTime structure which is used to calculate the current trading day |
protected override void OnBarUpdate() |