impl macd.