EMA and SMA revisited