WebCab Technical Analysis for Delphi (COM) v1.1

Aroon.AroonOscillatorOverPeriod Method (Double[], Double[], Int32)

Evaluates the Aroon Oscillator over all periods where sufficient historical data is provided using only price data.

public double[] AroonOscillatorOverPeriod(
   double[] highs,
   double[] lows,
   int length
);

Parameters

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.
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.
length
An integer which represents the length of the period over which the indicator will be iteratively evaluated.

Return Value

An array where the first term is the value of the Aroon Oscillator for the most recent period, the second term is the value of the Aroon Oscillator for the previous period and so on.

Remarks

Evaluation

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

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

where the '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. Formally speaking the Aroon Up and Aroon Down indicators are given by the following formulae.

The Aroon Up indicator is given by:

Aroon Up Indicator = 100 * (n - (number of periods since last highest high over n periods) ) / n,

where n is the number of periods being considered (a reasonable default value for n is 14).

The Aroon Down indicator is given by:

Aroon Down Indicator100 * (n - (number of periods since last highest high over n periods) ) / n.

where n is the number of periods being considered (a reasonable default value for n is 14).

Exceptions

Exception TypeCondition
ArgumentExceptionThrown when the 'lows' or 'highs' array is empty or not equal, the length is not a strictly positive integer or if it is greater than the length of the array lows.

See Also

Aroon Class | WebCab.COM.Finance.Trading.Indicators Namespace | Aroon.AroonOscillatorOverPeriod Overload List