Learn R Programming

QuantTools (version 0.5.3)

BBands: c++ Bollinger Bands class

Description

c++ class documentation

Arguments

n
indicator period
k
number of standard deviations
x
numeric vectors
n
window size
k
number of standard deviations

Usage

BBands( int n, double k )

Public Members and Methods

Name
Return Type Description
Add( InputType value ) void
update indicator Reset()
void reset to initial state
IsFormed() bool
is indicator value valid? GetValue()
BBandsValue has members double upper, lower, sma
GetUpperHistory() std::vector< double >
return upper band history GetLowerHistory()
std::vector< double > return lower history
GetSmaHistory() std::vector< double >
return sma history

Details

R function bbands.

See Also

Other c++ classes: Candle, Cost, Crossover, Ema, Indicator, Order, Processor, RollLinReg, RollPercentRank, RollRange, RollSd, RollVolumeProfile, Rsi, Sma, Stochastic, Tick

Other c++ indicators: Crossover, Ema, Indicator, RollLinReg, RollPercentRank, RollRange, RollSd, RollVolumeProfile, Rsi, Sma, Stochastic