MACD charts consist of two lines: MACD Line and Signal Line.
MACD Line Formula
MACD Line = Short EMA – Long EMA
Short EMA = exponential moving average of closing price with a shorter period length
Long EMA = exponential moving average of closing price with a longer period length
Signal Line Formula
Signal Line = exponential moving average of MACD Line