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

# Slippage

## Definition

Sets the amount of slippage in ticks per execution used in performance calculations during backtests.

## Property Value

An **int** value representing the number ticks. Default value is set to 0.

## Syntax

`Slippage`

## Examples

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