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