TradingHours

<< Click to Display Table of Contents >>

Navigation:  NinjaScript > Language Reference > Common >

TradingHours

Previous page Return to chapter overview Next page

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.

 

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

 

 

Methods and Properties

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.

Holidays

A collection of full holidays which are configured for a Trading Hours template

Name

Indicates the name of the trading hours template applied to the Bars series object.

PartialHolidays

A collection of partial holidays which are configured for a Trading Hours template

Sessions

A collection of session definitions of the trading hours template.

TimeZoneInfo

Indicates a time zone that is configured by a Trading Hour template