Hi all,
I know how to calculate the EMA:
EMA_t = a*EMA_{t-1} + (1-a)*P_t
but how to calculate the EMVol (exponential moving volatility or standard deviation)?
It cannot be:
EMVol_t^2 = a*EMVol_{t-1}^2 + (1-a)*P_t^2,
because this is assuming the mean is zero.
I was thinking about the following:
EMVariance_t^2 = a*EMVariance_{t-1}^2 + (1-a)*P_t^2,
EMA_t = a*EMA_{t-1} + (1-a)*P_t,
then
EMVol_t^2 = EMVariance_t^2 - EMA_t^2
then we obtain EMVol_t.
Any comments?
I know how to calculate the EMA:
EMA_t = a*EMA_{t-1} + (1-a)*P_t
but how to calculate the EMVol (exponential moving volatility or standard deviation)?
It cannot be:
EMVol_t^2 = a*EMVol_{t-1}^2 + (1-a)*P_t^2,
because this is assuming the mean is zero.
I was thinking about the following:
EMVariance_t^2 = a*EMVariance_{t-1}^2 + (1-a)*P_t^2,
EMA_t = a*EMA_{t-1} + (1-a)*P_t,
then
EMVol_t^2 = EMVariance_t^2 - EMA_t^2
then we obtain EMVol_t.
Any comments?