Trading Hours

View as Markdown

Definition

Represents the Trading Hours information returned from the current bars series. The Trading Hours object contains several methods and properties for working with various trading sessions.

The properties in this class should NOT be accessed within the OnStateChange() method before the State has reached State.DataLoaded

Methods and Properties

Method/PropertyDescription
Get()Returns the Trading Hours object for the specified Trading Hours template name
GetPreviousTradingDayEnd()Returns the end date and time of the previous trading session relative to the time passed in the methods parameters.
HolidaysA collection of full holidays which are configured for a Trading Hours template
NameIndicates the name of the trading hours template applied to the Bars series object.
PartialHolidaysA collection of partial holidays which are configured for a Trading Hours template
SessionsA collection of session definitions of the trading hours template.
TimeZoneInfoIndicates a time zone that is configured by a Trading Hour template