PartialHolidays

<< Click to Display Table of Contents >>

Navigation:  NinjaScript > Language Reference > Common > TradingHours >

PartialHolidays

Previous page Return to chapter overview Next page

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.

 

Date

A DateTime representing the trading date of the Trading Hours holiday

PartialHoliday

An 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

ns


// Print all partial holidays included in the Bars object's Trading Hours template
foreach(KeyValuePair<DateTime, PartialHoliday> holiday in TradingHours.PartialHolidays)
{
  Print(holiday);
}