Skip to contents

Bollinger Bands

Usage

bb(price, n, sd = 2L)

Arguments

price

A numeric vector of prices

n

The period for the moving average

sd

The number of standard deviations for the bands

Value

A list containing the lower band, moving average, upper band, and percentage B