EWMA method to calculate volatility