NetProfit

<< Click to Display Table of Contents >>

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

NetProfit

Previous page Return to chapter overview Next page

Definition

Returns the net profit.
 

Property Value

A double value that represents the net profit.

 

Syntax
<TradeCollection>.TradesPerformance.NetProfit

 

 

Examples

ns

protected override void OnBarUpdate()
{
    // Print out the net profit of all trades
    Print("Net profit is: " + SystemPerformance.AllTrades.TradesPerformance.NetProfit);
}