movingAverage.Rd
Using moving average method to profile stock data
movingAverage(data, window, newColname)
xts a time series object
numeric
character
quantmod::getSymbols("AAPL") #> [1] "AAPL"moving_avg_AAPL <- movingAverage(AAPL, 300, paste("movingAverage", colnames(AAPL), sep="_"))