fixed serious bug in EMA calc for MACD/PPO, see #161