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

# IncludeCommission

## Definition

Determines if the strategy performance results will include commission on a historical backtest. When true, the **Commission Template** applied to the account on which the strategy is running will be used.

## Property Value

A bool value which returns true if the strategy includes commission on a historical backtest; otherwise, false. Default value is set to false.

This property should ONLY be set from the **OnStateChange()** method during **State.SetDefaults** or **State.Configure**.

## Syntax

`IncludeCommission`

## Examples

```csharp
protected override void OnStateChange()
{
    if (State == State.SetDefaults)
    {
        IncludeCommission = true;
    }
}
```