|
WebCab Technical Analysis (J2EE Edition) |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Within this class we detail a number of technical indicators which in some way or another rely on the fact that many market time series are mean reverting.
Examples of such a market is the oil market where the oil price will range between $10-35, and will typically revert to a mean around $24. Another such example is the implied volatility of index and stock options.
| Method Summary | |
double |
commodityChannelIndex(double[] high,
double[] low,
double[] close)
The Commodity Channel Index (CCI) developed by Donald Lambert, measures the variation of a security's price from its statistical mean. |
| Methods inherited from interface javax.ejb.EJBObject |
getEJBHome, getHandle, getPrimaryKey, isIdentical, remove |
| Method Detail |
public double commodityChannelIndex(double[] high,
double[] low,
double[] close)
throws RemoteException
Lambert originally commended that the CCI was designed to capture the trade cycle (i.e. low-to-low or high-to-high) turns in commodity markets. The system assumes that commodities move in cycles and uses 1/3 of the cycle period for the evaluation of the CCI. We allow the uses to specify the length of the calculation period used but we advise that you take the calculation cycle to be approximately one third of your estimate for the length of the trade cycle.
Calculation Period: the number of days used in the evaluation of the CCI. In Donald Lambert's original system this was taken to be one third of the estimate length of the trade cycle.
Remark: Within the evaluation procedure (step 2), we multiply the result by the constant 0.015. The constant was originally used in Lambert's system and has been found to ensure that around 70-80 percent of all the values given by the CCI lie the range [-100,+100]. Hence, the constant is just used to calibrate the indicator with respect to the range [-100,+100].
Interpretation
Significant signals are generated when either the CCI starts to diverge
from the price action which will signify a correlation in the price,
or when the CCI extended (typically above 100 or below -100) which
indicates oversold or over brought conditions.
Further details concerning the CCI can be found in an article by Donald Lambert that appeared in the October 1980 issue of Commodities (now known as Futures) Magazine.
Evaluation Procedure
We summaries our basic evaluation procedure by the following three steps:
high - an array of length equal to the number of periods considered in the
indicator evaluation where the first element is the high in the last trading
period, the second term is the high in the previous period and so on...low - an array of length equal to the number of periods considered in the
indicator evaluation where the first element is the low in the last trading
period, the second term is the low in the previous period and so on...close - an array of length equal to the number of periods considered in the
indicator evaluation where the first element is the closing price in the last
trading period, the second term is the closing price in the previous trading period
and so on...
IllegalArgumentException - thrown if any elements from the arrays high, low
or close are strictly negative, or if the length of the arrays is not equal.
RemoteException
|
WebCab Technical Analysis (J2EE Edition) |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||