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