Slippage

View as Markdown

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

1protected override void OnStateChange()
2{
3 if (State == State.SetDefaults)
4 {
5 Slippage = 2;
6 }
7}