MA.n: Moving average

View source: R/func.dataproc.R

MA.nR Documentation

Moving average

Description

function to calculate moving average

Usage

MA.n(x, periods = 5)

Arguments

x

A data frame contain the variable for calculation

periods

An odd number of the periods in MA. The default is 5, i.e., 2 lags and 2 leads

Value

A data frame


realxinzhao/tradecast documentation built on June 1, 2024, 3:37 a.m.