MACD as a type