MaxConsecutiveLoser

View as Markdown

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

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