EMA: SMA

View source: R/moving_averages.R

EMAR Documentation

SMA

Description

compute the Exponential Moving Average of a vector.

Usage

EMA(x = NULL, n = 10, smooth = 2, na.rm = TRUE)

Arguments

x

numeric vector.

n

integer, the number of length of the moving average.

smooth

numeric, a parameter to use for smoothing the moving average.

na.rm

logical,

Value

a vector of the same length of x.


beniamino98/cryptocompareR documentation built on June 19, 2024, 12:37 a.m.