WebCab Technical Analysis
(J2EE Edition)

com.webcab.ejb.finance.trading.indicators
Interface Aroon

All Superinterfaces:
EJBObject, Remote

public interface Aroon
extends EJBObject

Within this class we define the Aroon indicator which was developed by Tushar Chande in order to establish whether a price is trending or within a trading range. The Aroon indicator is made up of the Aroon Down indicator and the Aroon Up indicator and together are said to form the Aroon indicator. We also provide the Aroon Oscillator within this component.

The determination of whether a market is trending and within a trading range is a key difficulty is the development of trading systems. The Aroon indicator has been developed in order to indicate when a trending approach such as moving averages or the trading range approach such as the application of oscillators in more appropriate.

Interpretation
Interpretation of the Aroon indicator depends on identifying one of the following three scenarios:

For more information on the Aroon indicator see the article written by Tushar Chande in the September 1995 issue of Technical Analysis of Stocks and Commodities.


Method Summary
 double aroonDown(double[] lows)
          The Aroon Down indicator measures the relative time since the last lowest low.
 double aroonOscillator(double aroonUpIndicator, double aroonDownIndicator)
          This method returns the Aroon Oscillator which is given by the following formulae:

Aroon Oscillator = (Aroon Up Indicator) - (Aroon Down Indicator)
 double aroonUp(double[] highs)
          The Aroon Up indicator measures the relative time since the last highest high.
 
Methods inherited from interface javax.ejb.EJBObject
getEJBHome, getHandle, getPrimaryKey, isIdentical, remove
 

Method Detail

aroonUp

public double aroonUp(double[] highs)
               throws RemoteException
The Aroon Up indicator measures the relative time since the last highest high. The indicator will return a value between 0 and 100, where a higher value indicates that the highest high was achieved more recently. Persistent values between 70 and 100 are said to indicate strength in the asset and in conjunction with the a low range (i.e. 0-30) in the Aroon Down indicator indicate an upward trend.

The Aroon Up indicator is given by:

100(n - (number of days since last highest high over n days))/n

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

Parameters:
highs - an array of the trading highs over the last n-periods
Throws:
IllegalArgumentException - thrown is the `highs' array is empty.
RemoteException

aroonDown

public double aroonDown(double[] lows)
                 throws RemoteException
The Aroon Down indicator measures the relative time since the last lowest low. The indicator will return a value between 0 and 100, where a higher value indicates that the lowest low was achieved more recently. Persistent values between 70 and 100 are said to indicate weakness in the asset and in conjunction with the a low range (i.e. 0-30) in the Aroon Up indicator indicate an downward trend.

The Aroon Down indicator is given by:

100(n - (number of days since last highest high over n days))/n

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

Throws:
IllegalArgumentException - throw when the `lows' array is empty.
RemoteException

aroonOscillator

public double aroonOscillator(double aroonUpIndicator,
                              double aroonDownIndicator)
                       throws RemoteException
This method returns the Aroon Oscillator which is given by the following formulae:

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

Parameters:
aroonUpIndicator - the value of the Aroon Up Indicator
aroonDownIndicator - the value of the Aroon Down Indicator
RemoteException

WebCab Technical Analysis
(J2EE Edition)