|
WebCab Technical Analysis (J2EE Edition) |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Local interface of BollingerBands. This interface provides the same functionality as the BollingerBands remote interface.
BollingerBands| Method Summary | |
double |
bollingerBandsHigher(double[] historicalPrices,
double standardDeviationLevel)
Method bollingerBandsHigher(double[], double) as defined in the BollingerBands remote interface. |
double |
bollingerBandsLower(double[] historicalPrices,
double standardDeviationLevel)
Method bollingerBandsLower(double[], double) as defined in the BollingerBands remote interface. |
| Methods inherited from interface javax.ejb.EJBLocalObject |
getEJBLocalHome, getPrimaryKey, isIdentical, remove |
| Method Detail |
public double bollingerBandsLower(double[] historicalPrices,
double standardDeviationLevel)
Description copied from the BollingerBands interface:
Evaluates the position of the Lower Bollinger Band for a given standard deviation level. Please note that by standard deviation level we not only refer to the number of standard deviations shifts away from the moving average at which the Higher Bollinger Band is drawn but also the number of time series points which are used in the evaluation of the standard deviation and the moving average.
historicalPrices - an array of doubles where the first term correspond the latest periods price and the previous element is the value of the element before that and so on... The length of this array is equal to the number of periods used in the evaluation of the standard deviation and the moving average.standardDeviationLevel - the number of standard deviation which the lower band in shifted from the moving average
IllegalArgumentException - thrown when the historicaPrices array
in empty or the number of standard deviations considered (i.e. the
parameters standardDeviationLevel) is not positive number.BollingerBands.bollingerBandsLower(double[], double)
public double bollingerBandsHigher(double[] historicalPrices,
double standardDeviationLevel)
Description copied from the BollingerBands interface:
Evaluates the position of the Upper Bollinger Band for a given standard deviation level. Please note that by standard deviation level we not only refer to the number of standard deviations shifts away from the moving average at which the Higher Bollinger Band is drawn but also the number of time series points which are used in the evaluation of the standard deviation and the moving average.
historicalPrices - an array of doubles where the first term correspond the latest periods price and the previous element is the value of the element before that and so on... The length of this array is equal to the number of periods used in the evaluation of the standard deviation.standardDeviationLevel - the (positive) number of standard deviations which the lower band in shifted from the moving average.
IllegalArgumentException - throw if the array historicalPrices is
empty or if the number of standard deviations given (i.e. the parameter
standardDeviationsLevel) is a negative number.BollingerBands.bollingerBandsHigher(double[], double)
|
WebCab Technical Analysis (J2EE Edition) |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||