WebCab Technical Analysis
(J2EE Edition)

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

All Superinterfaces:
EJBLocalObject

public interface AroonLocal
extends EJBLocalObject

Local interface of Aroon. This interface provides the same functionality as the Aroon remote interface.

See Also:
Aroon

Method Summary
 double aroonDown(double[] lows)
          Method aroonDown(double[]) as defined in the Aroon remote interface.
 double aroonOscillator(double aroonUpIndicator, double aroonDownIndicator)
          Method aroonOscillator(double, double) as defined in the Aroon remote interface.
 double aroonUp(double[] highs)
          Method aroonUp(double[]) as defined in the Aroon remote interface.
 
Methods inherited from interface javax.ejb.EJBLocalObject
getEJBLocalHome, getPrimaryKey, isIdentical, remove
 

Method Detail

aroonUp

public double aroonUp(double[] highs)
Method aroonUp(double[]) as defined in the Aroon remote interface.

Description copied from the Aroon interface:

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.

Formula for the Aroon Down Indicator

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.
See Also:
Aroon.aroonUp(double[])

aroonDown

public double aroonDown(double[] lows)
Method aroonDown(double[]) as defined in the Aroon remote interface.

Description copied from the Aroon interface:

Calculates the Aroon Down indicator which 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.

Formula for the Aroon Down Indicator

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

Parameters:
lows - an array of the trading lows over the last n-periods
Throws:
IllegalArgumentException - throw when the `lows' array is empty.
See Also:
Aroon.aroonDown(double[])

aroonOscillator

public double aroonOscillator(double aroonUpIndicator,
                              double aroonDownIndicator)
Method aroonOscillator(double, double) as defined in the Aroon remote interface.

Description copied from the Aroon interface:

Evaluates the Aroon Oscillator over the last n-days which is given by 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.

Parameters:
aroonUpIndicator - the value of the Aroon Up Indicator
aroonDownIndicator - the value of the Aroon Down Indicator
See Also:
Aroon.aroonOscillator(double, double)

WebCab Technical Analysis
(J2EE Edition)