Learn R Programming

QuantTools (version 0.5.7.1)

BBands: C++ Bollinger Bands class

Description

C++ class documentation

Arguments

n

indicator period

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++ indicators: Crossover, Ema, Indicator, RollLinReg, RollPercentRank, RollRange, RollSd, RollVolumeProfile, Rsi, Sma, Stochastic

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