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.

 

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);
}