sma: Simple Moving Average

Description Usage Arguments See Also

View source: R/RcppExports.R

Description

Simple moving average also called SMA is the most popular indicator. It shows the average of n past values. Can be used for time series smoothing.

Usage

1
sma(x, n)

Arguments

x

numeric vectors

n

window size

See Also

Other technical indicators: bbands, crossover, ema, roll_lm, roll_percent_rank, roll_range, roll_sd, roll_volume_profile, rsi, stochastic


QuantTools documentation built on Oct. 23, 2020, 7:54 p.m.