SMA {matiming} | R Documentation |
This function computes the SMA of prices
SMA(price, n)
price |
the vector of prices |
n |
the length of the averaging window (a scalar) |
the SMA of prices (a vector)
Other moving average functions:
DMA()
,
EMA()
,
HMA()
,
LMA()
,
ZMA()