Learn R Programming

QuantTools (version 0.5.7.1)

Sma: C++ Simple Moving Average class

Description

C++ class documentation

Arguments

n

indicator period

Usage

Sma( int n )

Public Members and Methods

Name Return Type Description
Add( double value ) void update indicator
GetValue() double return value
Reset() void reset to initial state
IsFormed() bool is indicator value valid?

Details

R function sma.

See Also

Other C++ indicators: BBands, Crossover, Ema, Indicator, RollLinReg, RollPercentRank, RollRange, RollSd, RollVolumeProfile, Rsi, Stochastic

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