Framework Reference
WEALTHLAB FRAMEWORK / CLASS REFERENCE

PeakTrough

API documentation, members, signatures, and C# examples.

Search the framework

Find classes, members, and documentation.

NamespaceWealthLab.Indicators
Parent
Object

The PeakTrough class represents a peak or trough detected in time series data by the PeakTroughCalculator utility class. It implements the IChartPoint interface, so its XIndex and YValue properties can be used wherever chart points are accepted.

Members

7

DetectedAtIndex

public int DetectedAtIndex

The index where the peak or trough was actually detected. Because a peak or trough can only be confirmed after a reversal occurs, DetectedAtIndex will generally be later than the actual peak or trough index represented by PeakTroughIndex.

PeakTroughIndex

public int PeakTroughIndex

The index of the actual apex of a peak or nadir of a trough. The XIndex property returns the same value and can be used interchangeably.

TrendLineCache

public Dictionary<string, TrendLine> TrendLineCache

Contains a Dictionary of previously calculated TrendLine instances, keyed by string. This cache can be used to associate calculated trendlines with the PeakTrough and avoid recalculating them.

Type

public PeakTroughType Type

Specifies whether this instance represents a PeakTroughType.Peak or a PeakTroughType.Trough.

Value

public double Value

The apex value of a peak or the nadir value of a trough. The YValue property returns the same value and can be used interchangeably.

XIndex

public int XIndex

Implements IChartPoint and returns PeakTroughIndex, the bar index of the peak or trough itself.

YValue

public double YValue

Implements IChartPoint and returns Value, the value of the peak or trough.

Need help with this API?

Ask the community or explore custom development services.