> 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.

# DaysToLoad

## Definition

Determines the number of trading days which will be configured when loading the strategy from the Strategies Grid.

1. This property does NOT affect a strategy configured of a Chart or the Strategy Analyzer.
2. A trading day is defined by a **Trading Hour** template

## Property Value

An **int** value determining the number of trading days to load for historical data processing. Default value is 5, but can be configured and overridden from the UI.

## Syntax

`DaysToLoad`

## Examples

```csharp

protected override void OnStateChange()
{
     if (State == State.SetDefaults)
     {
         DaysToLoad = 15;
     }
}
```