EMA and SMA added

EMA and SMA support added.