|
WebCab Technical Analysis (J2SE Edition) |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--webcab.lib.finance.trading.indicators.Aroon
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.
| Constructor Summary | |
Aroon()
Creates a new instance. |
|
| 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 class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Aroon()
| Method Detail |
public double aroonUp(double[] highs)
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.public double aroonDown(double[] lows)
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.
public double aroonOscillator(double aroonUpIndicator,
double aroonDownIndicator)
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
|
WebCab Technical Analysis (J2SE Edition) |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||