GrossLoss

<< Click to Display Table of Contents >>

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

GrossLoss

Previous page Return to chapter overview Next page

Definition

Returns the gross loss.
 

Property Value

A double value that represents the gross loss.

 

Syntax
<TradeCollection>.TradesPerformance.GrossLoss

 

 

 

Examples

ns


protected override void OnBarUpdate()
{
    // Print out the gross loss of all trades
    Print("Gross loss is: " + SystemPerformance.AllTrades.TradesPerformance.GrossLoss);
}