|
WebCab Technical Analysis (J2EE Edition) |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Within this Enterprise JavaBean 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)
Calculates the Aroon Down indicator which measures the relative time since the last lowest low. |
double |
aroonOscillator(double aroonUpIndicator,
double aroonDownIndicator)
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. |
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 |
public double aroonUp(double[] highs)
throws RemoteException
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).
highs - an array of the trading highs over the last n-periods
IllegalArgumentException - thrown is the `highs' array is empty.
RemoteException
public double aroonDown(double[] lows)
throws RemoteException
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).
lows - an array of the trading lows over the last n-periods
IllegalArgumentException - throw when the `lows' array is empty.
RemoteException
public double aroonOscillator(double aroonUpIndicator,
double aroonDownIndicator)
throws RemoteException
aroonUp, and
"(Aroon Down Indicator)" can be evaluated using aroonDown.
aroonUpIndicator - the value of the Aroon Up IndicatoraroonDownIndicator - the value of the Aroon Down Indicator
RemoteException
|
WebCab Technical Analysis (J2EE Edition) |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||