MACD controller