Show / Hide Table of Contents

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

| Edit this page View Source

IsTradingDay(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

| Edit this page View Source

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

  • Edit this page
  • View Source
In this article
Back to top Copyright © 2011-2023, Bertram Enterprises LLC dba TuringTrader.com