> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.ninjatrader.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.ninjatrader.com/_mcp/server.

# PartialHolidays

## 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](https://ninjatrader.com/support/helpGuides/nt8/?using_the_trading_hours_window.htm) window.

## Property Value

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

| Date                                                                  | PartialHoliday                                                                                                                                                                              |
| --------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| A DateTime representing the trading date of the Trading Hours holiday | 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

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