Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

sma

Simple Moving Average


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

sma(x, n)

Arguments

x

numeric vectors

n

window size

See Also


QuantTools

Enhanced Quantitative Trading Modelling

v0.5.7.1
GPL-3
Authors
Stanislav Kovalevsky
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.