WebCab Technical Analysis
(J2EE Edition)

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

All Superinterfaces:
EJBLocalObject

public interface BollingerBandsLocal
extends EJBLocalObject

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

See Also:
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

bollingerBandsLower

public double bollingerBandsLower(double[] historicalPrices,
                                  double standardDeviationLevel)
Method bollingerBandsLower(double[], double) as defined in the BollingerBands remote interface.

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.

Parameters:
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
Throws:
IllegalArgumentException - thrown when the historicaPrices array in empty or the number of standard deviations considered (i.e. the parameters standardDeviationLevel) is not positive number.
See Also:
BollingerBands.bollingerBandsLower(double[], double)

bollingerBandsHigher

public double bollingerBandsHigher(double[] historicalPrices,
                                   double standardDeviationLevel)
Method bollingerBandsHigher(double[], double) as defined in the BollingerBands remote interface.

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.

Parameters:
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.
Throws:
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.
See Also:
BollingerBands.bollingerBandsHigher(double[], double)

WebCab Technical Analysis
(J2EE Edition)