powered by
n.periods
trdsma(y, n.periods, trim = FALSE)
FALSE
NA
y
filter
trdbilson
trdbinary
trdhp
trdwma
capser
trdes
data(StockIndex) y <- StockIndex[, "SP500"] sma <- trdsma(y, n.periods = 24) head(sma, 30)
Run the code above in your browser using DataLab