BollingerBands: Calculate Bollinger Bands

Description Usage Arguments Value Examples

View source: R/BollingerBands.R

Description

Bollinger bands are calculated based on moving averages and moving standard deviations of time-series.

Usage

1
BollingerBands(y, lookback = 20, std = 2)

Arguments

y

Vector to be tested for a unit root.

lookback

number of perioed to look back for testing

std

number of standard deviations to calculate BB bands

Value

A data.frame with raw time-series and BB bands

Examples

1
2
3
getFX("AUD/USD")
getFX("CAD/USD")
BollingerBands(AUDUSD/CADUSD, lookback = 20, std = 2)

ivanliu1989/RQuantTrader documentation built on Sept. 13, 2019, 11:54 a.m.