WebCab Technical Analysis Web Services for Delphi v1.1

Aroon.AroonOscillator Method (Double[], Double[])

Evaluates the Aroon Oscillator over a period using over price data.

public double AroonOscillator(
   double[] lows,
   double[] highs
);

Parameters

lows
An array where the first term is the traded low of the asset within the most recent trading period, the second term is the traded low of the asset within the previous period and so on.
highs
An array where the first term is the traded high of the asset within the most recent trading period, the second term is the traded high of the asset within the previous period and so on.

Return Value

Returns the double value of the Aroon Oscillator over the period considered.

Remarks

Evaluation

The Aroon Oscillator over each period is evaluated using the following formulae:

Aroon Oscillator = (Aroon Up Indicator) - (Aroon Down Indicator),

where 'Aroon Up Indicator' can be evaluated using AroonUp, and 'Aroon Down Indicator' can be evaluated using AroonDown, where the same number of periods is used in the evaluation of each indicator.

Exceptions

Exception TypeCondition
ArgumentExceptionThrown when the array parameters lows and highs are empty or the lengths of these two arrays are not equal.

See Also

Aroon Class | Indicators Namespace | Aroon.AroonOscillator Overload List | AroonOscillatorOverPeriod - calculates the values of the Aroon Oscillator indicator over all sub-periods of a given length.