MACD

Momentum following and trend relationship indicator.

MACD measures the relationship between two Exponential Moving Averages. It is a versatile tool for trend following and momentum reversal detection.

Parameters

Fast EMA
12 periods
Slow EMA
26 periods
Signal line
9-period EMA of MACD
Timeframes
M5 to D1

Module alerts

Cross MACD / signal

The MACD line crosses above or below the signal line (momentum shift).

Cross zero

MACD crosses the zero line, indicating a shift in short-term vs long-term bias.

Histogram reversal

The histogram reverses its direction (fading positive momentum or weakening negative momentum).

Calculation

MACD = EMA(12) − EMA(26). Signal = EMA(9) of MACD. Histogram = MACD − Signal. All crossover logic is evaluated on the finalized candle close.

Notes

  • Alerts trigger once per state change to prevent repetition.
  • After a histogram reversal, the alert re-arms as soon as a closed histogram candle moves back in the opposite direction.