NinjaScript > Language Reference > Strategy > TradeCollection > TradesPerformance >
MaxConsecLoser
Definition Returns the maximum number of consecutive losers seen.
Property Value
An int value that represents the maximum number of consecutive losers seen.
Syntax <TradeCollection>.TradesPerformance.MaxConsecLoser
Examples
protected override void OnBarUpdate() { // Print out the max consecutive losers of all trades
Print("Average # bars per trade is: " + Performance.AllTrades.TradesPerformance.MaxConsecLoser); }