Skip to Content

MACD

MACD (Moving Average Convergence Divergence) shows the difference between a fast and a slow exponential moving average of the price, together with its smoothed version. Scalpers watch MACD to judge the direction and acceleration of a move: whether the averages are moving apart or closer together.

MACD is drawn in a separate area below the chart.

How it is calculated

  1. The fast and slow EMAs of the price are exponential averages with a factor of 2 / (period + 1). The starting value of each EMA is the simple average of the first bars of its period.
  2. The MACD line = fast EMA − slow EMA.
  3. The signal line (Signal) = EMA of the MACD line over Signal period.
  4. The histogram (Histogram) = MACD − Signal. Columns above zero mean MACD is above the signal line; below zero, under it.

The MACD line appears once the larger of the two average periods has passed; the signal line and the histogram appear once Signal period MACD values have accumulated (on the 34th bar by default).

Parameters

ParameterDescriptionDefault
Slow periodThe period of the slow EMA.26
Fast periodThe period of the fast EMA.12
Signal periodThe EMA period of the signal line.9
SourceThe bar price used in the calculation: Close — the close, Median — (High + Low) / 2, Typical — (High + Low + Close) / 3.Close

Plots

ParameterDescriptionDefault
MACDThe MACD line.Orange, solid, width 1
SignalThe signal line.Blue, solid, width 1
HistogramThe histogram of the difference between MACD and Signal.Purple

Style

The MACD and Signal lines have the Plot (show the line), Label (show the last value on the right scale), Color, Width (1–5) and Style (Solid, Dashes, Dots) fields.

The Histogram plot has the Plot, Label and Color fields; all columns are drawn in one color.

How to add an indicator to the chart is described in Adding an indicator; parameters are changed in the indicator manager.

Last updated on