WebCab Technical Analysis for Delphi (COM) v1.1

BollingerBands.UpperBollingerBand Method 

Evaluates the value of the Upper Bollinger Band for a given standard deviation level for a given interval.

public double UpperBollingerBand(
   double[] prices,
   double standardDeviationLevel
);

Parameters

prices
An array of doubles where the k-th term correspond the k-th previous periods price. 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.

Return Value

A double equal to the value of the Upper Bollinger Band over the period considered.

Exceptions

Exception TypeCondition
ArgumentExceptionThrow 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 Class | WebCab.COM.Finance.Trading.Indicators Namespace | lowerBollingerBands(double[], double, int) - Evaluates the Lower Bollinger Band over all sub-intervals of a given number of periods rather than a single interval.