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

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