Fixed critical depth bug with MACD.