Learn R Programming

quantmod (version 0.3-0)

addBBands: Add Bollinger Bands to Chart

Description

Add Bollinger Bands to current chart.

Usage

addBBands(n = 20, ma = "SMA", sd = 2, on = 1)

Arguments

n
number of moving average periods
ma
type of moving average to be used
sd
number of standard deviations
on
which figure area of chart to apply to

Value

  • Bollinger Bands will be drawn, or scheduled to be drawn, on the current chart. A chobTA object will be returned silently.

Details

See bollingerBands in TTR for specific details as to implementation and references.

References

See bollingerBands in TTR written by Josh Ulrich

See Also

addTA

Examples

Run this code
addBBands()

Run the code above in your browser using DataLab