removed dupe ema function in movingaverages