Financial Toolbox
  Go to function:
    Search    Help Desk 
bolling    Examples   See Also

Bollinger band chart.

Syntax

Description

bolling(asset, samples, alpha) plots Bollinger bands for given asset data. samples specifies the number of samples to use in computing the moving average. alpha is the exponent used to compute the element weights of the moving average. This form of the function does not return any data.

[mav, uband, lband] = bolling(asset, samples, alpha) returns mav with the moving average of the asset data, uband with the upper band data, and lband with the lower band data. This form of the function does not plot any data.

Examples

If asset is an N-by-1 vector of closing stock prices:

plots linear 20-day moving average Bollinger bands based on the stock prices.

returns mav, uband, and lband as (N-19)-by-1 vectors containing the moving average, upper band, and lower band data, without plotting the data.

See Also

candle, dateaxis, highlow, movavg, pointfig



[ Previous | Help Desk | Next ]