Slippage

<< Click to Display Table of Contents >>

Navigation:  NinjaScript > Language Reference > Strategy >

Slippage

Previous page Return to chapter overview Next page

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

ns

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