The MACD indicator is calculated by subtracting the long-term EMA (Exponential Moving Average) indicator from the short-term EMA.