Class HolidayCalendar
Holiday calendar for U.S. stock exchanges
Inherited Members
Namespace: TuringTrader.Simulator
Assembly: TuringTrader.Simulator.dll
Syntax
public static class HolidayCalendar
Methods
| Edit this page View SourceIsTradingDay(DateTime)
check, if bar time is holiday.
Declaration
public static bool IsTradingDay(DateTime barTime)
Parameters
Type | Name | Description |
---|---|---|
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 |
---|---|---|
DateTime | currentBarTime | current simulator timestamp |
Returns
Type | Description |
---|---|
DateTime | next simulator timestamp |