TotalSlippage

<< Click to Display Table of Contents >>

Navigation:  NinjaScript > Language Reference > Strategy > TradeCollection > TradesPerformance >

TotalSlippage

Previous page Return to chapter overview Next page

Definition

Returns the total slippage.

 

Property Value

A double value that represents the total slippage. This is presented in points, I.E. 0.25 for 1 execution on E-mini S&P 500 Futures.

 

Syntax
<TradeCollection>.TradesPerformance.TotalSlippage

 

 

Examples

ns

protected override void OnBarUpdate()
{
    // Print out the total slippage of all trades
    Print("Total slippage is: " + SystemPerformance.AllTrades.TradesPerformance.TotalSlippage);
}