LongestFlatPeriod

View as Markdown

Definition

Returns the longest duration of being flat.

Property Value

A TimeSpan value that represents the longest duration of being flat.

Syntax

\<tradecollection\>.TradesPerformance.LongestFlatPeriod

Examples

1protected override void OnBarUpdate()
2{
3 // Print out the longest duration of being flat
4 Print("Longest flat period: " + SystemPerformance.AllTrades.TradesPerformance.LongestFlatPeriod);
5}