Your interactive trading laboratory!
 • 
17 users online

Quantacula Help

How-To
C# API Reference
Extensions
Development Blog
API-Extensions
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.

TASC-Extensions
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.
PeakTrough
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.

Members

DetectedAtIndex
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.


PeakTroughIndex
public int PeakTroughIndex

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


Type
public PeakTroughTypes Type

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


Value
public double Value

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