Class HolidayCalendar
Holiday calendar for U.S. stock exchanges
Inheritance
object
HolidayCalendar
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: TuringTrader.Simulator
Assembly: TuringTrader.Simulator.dll
Syntax
public static class HolidayCalendar
Methods
| Improve this Doc View SourceIsTradingDay(DateTime)
check, if bar time is holiday.
Declaration
public static bool IsTradingDay(DateTime barTime)
Parameters
Type | Name | Description |
---|---|---|
System.DateTime | barTime | time to check |
Returns
Type | Description |
---|---|
bool | true, if holiday |
NextLiveSimTime(DateTime)
find next bar time that is not a holiday
Declaration
public static DateTime NextLiveSimTime(DateTime currentBarTime)
Parameters
Type | Name | Description |
---|---|---|
System.DateTime | currentBarTime | current simulator timestamp |
Returns
Type | Description |
---|---|
System.DateTime | next simulator timestamp |