Your interactive trading laboratory!
17 users online

Quantacula Help

C# API Reference
Development Blog
Indicator Spotlights

QCommunity Extensions
The open-source GitHub repository of source code for the QCommunity Extensions library. Contains indicators and other extensions submitted by the Quantacula Community. Look for QCommunity indicators when you create a Building Block model, mark the "QCommunity" library check box to expose them.

The open-source GitHub repository of source code for the TASCExtensions Quantacula extension. Contains indicators and other extensions adapted from the Traders' Tips articles in Technical Analysis of Stocks & Commodities magazine.
Namespace: Quantacula.Core
Parent: Object

The PeakTrough class represents a peak or trough that was detected in time series data by the PeakTroughCalculator utility class.


public int DetectedAtIndex

The index where the peak or trough was actually detected. Since peaks and troughs are detected after reversals, this will always be later than the actual index of the peak or trough apex/nadir itself.

public int PeakTroughIndex

The index of the peak's actual apex, or the trough's actual nadir.

public PeakTroughTypes Type

Specifies whether the object represents a PeakTroughTypes.Peak or a PeakTroughTypes.Trough.

public double Value

The apex value of the peak, or nadir value of the trough.