NetProfit
<< Click to Display Table of Contents >>
Navigation: NinjaScript > Language Reference > Strategy > TradeCollection > TradesPerformance >
Returns the net profit.
A double value that represents the net profit.
protected override void OnBarUpdate() { // Print out the net profit of all trades Print("Net profit is: " + SystemPerformance.AllTrades.TradesPerformance.NetProfit); }