<< Click to Display Table of Contents >>
NinjaScript > Language Reference > Strategy > TradeCollection > TradesPerformance >
Returns the maximum number of consecutive losers seen.
An int value that represents the maximum number of consecutive losers seen.
protected override void OnBarUpdate()
// Print out the max consecutive losers of all trades
Print("Max # of consecutive losers is: " + SystemPerformance.AllTrades.TradesPerformance.MaxConsecutiveLoser);