MaxConsecutiveLoser

<< Click to Display Table of Contents >>

Navigation:  NinjaScript > Language Reference > Strategy > TradeCollection > TradesPerformance >

MaxConsecutiveLoser

Previous page Return to chapter overview Next page

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.MaxConsecutiveLoser

 

 

 

Examples

ns


protected override void OnBarUpdate()
{
    // Print out the max consecutive losers of all trades
    Print("Max # of consecutive losers is: " + SystemPerformance.AllTrades.TradesPerformance.MaxConsecutiveLoser);
}