Learn R Programming

QuantTools (version 0.5.7.1)

ema: Exponential Moving Average

Description

Exponentially weighted moving average aka EMA is exponentially weighted SMA. EMAs have faster response to recent value changes than SMAs.

Usage

ema(x, n)

Arguments

x

numeric vectors

n

window size

See Also

Other technical indicators: bbands, crossover, roll_lm, roll_percent_rank, roll_range, roll_sd, roll_volume_profile, rsi, sma, stochastic