MaxConsecutiveWinner

View as Markdown

Definition

Returns the maximum number of consecutive winners seen.

Property Value

An int value that represents the maximum number of consecutive winners seen.

Syntax

\<tradecollection\>.TradesPerformance.MaxConsecutiveWinner

Examples

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