PartialHolidays

View as Markdown

Definition

A collection of partial holidays which are configured for a Trading Hours template. Holidays are days which fall outside of the normal trading schedule, on which data will be excluded. For more information please see the “Understanding trading holidays” section of the Using the Trading Hours window.

Property Value

A Dictionary holding a collection of holiday Dates and PartialHoliday objects for each partial holiday.

DatePartialHoliday
A DateTime representing the trading date of the Trading Hours holidayAn object containing a DateTime representing the date of the early close or late begin, a description of the partial holiday, and two bool properties, IsEarlyClose and IsLateBegin

Syntax

TradingHours.PartialHolidays

Examples

1// Print all partial holidays included in the Bars object's Trading Hours template
2foreach(KeyValuePair<datetime, partialholiday> holiday in TradingHours.PartialHolidays)
3{
4 Print(holiday);
5}