SMA {matiming}R Documentation

Computes the Simple Moving Average (SMA)

Description

This function computes the SMA of prices

Usage

SMA(price, n)

Arguments

price

the vector of prices

n

the length of the averaging window (a scalar)

Value

the SMA of prices (a vector)

See Also

Other moving average functions: DMA(), EMA(), HMA(), LMA(), ZMA()


[Package matiming version 1.0 Index]