Single Exponential Smoothing
The Exponential Moving Average is a weighted average whose weights are exponentially decreasing from more recent historical samples to older historical values.
MA(t) = α X(t) + (1-α) MA(t-1)
where α is the smoothing factor. To compute an α factor that is roughly equivalent to the simple moving average window we can use the simple formula:
α = 2 / (k + 1)
where k is the window length.