Note

When Alpha = 'e', the
value of the moving average depends on all previous data points (due
to the iterative calculation). In this case, the Lead and Lag parameters
are used to calculate the weighting factor for their respective averages
(which is different from the number of samples).