Holidays

View as Markdown

Definition

A collection of full holidays configured for a Trading Hours template. Holidays are days which fall outside of the regular trading schedule.

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 Descriptions of each holiday.

DateDescription
A DateTime representing the date of the trading hours holidayA string which is used to describe the holiday (e.g., Christmas)

Syntax

TradingHours.Holidays

Examples

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