PipCircle app icon

Install PipCircle

Add the app to your device - fast access, full screen, and it works offline.

Important Disclaimer

PipCircle is the social network for traders. We connect forex, stock, crypto, and prop firm traders with broker reviews, community insights, and real-time trading discussions.

The information on this platform, including user posts, broker reviews, and discussions, is for informational and educational purposes only. It does not constitute financial advice, investment recommendations, or an endorsement of any broker or trading strategy.

Risk Warning: Trading in financial markets involves substantial risk of loss and is not suitable for every investor. Past performance is not indicative of future results. You should carefully consider your investment objectives, level of experience, and risk appetite before trading.

Users are solely responsible for their own trading decisions.

MACD

MACD is the gap between a fast and a slow exponential moving average, drawn below the chart with a signal line and a histogram. It shows the direction of a trend and whether it is gaining or losing pace.

  • Level 5 Indicators
  • Lección 7 de 19
  • 6 min de lectura
  • 2 preguntas

MACD stands for moving average convergence divergence. It is the distance between a 12-period and a 26-period exponential moving average of the close, drawn as a line below the chart. A 9-period EMA of that line, called the signal line, is drawn with it, and a histogram shows the gap between the two. Gerald Appel created it in the late 1970s. It turns a pair of moving averages into a reading of momentum.

Closing prices with their 12 and 26-period exponential averages, and the MACD beneath. In the sideways market the MACD line winds around zero and crosses its signal line 6 times. At the break upward it crosses above zero and stays above its signal line for 26 candles.Closing prices with their 12 and 26-period exponential averages, and the MACD beneath. In the sideways market the MACD line winds around zero and crosses its signal line 6 times. At the break upward it crosses above zero and stays above its signal line for 26 candles.
Figure 1. Closing prices with their 12 and 26-period EMAs, and the MACD (12, 26, 9) beneath. Example prices, not market data.

The three parts

MACD line = 12-period EMA − 26-period EMA

Signal line = 9-period EMA of the MACD line

Histogram = MACD line − signal line

Level 3 covered the EMA and the crossover of two averages. The MACD line shows that pair from another angle: it is above zero when the fast average is above the slow one, and it crosses zero at the moment the two averages cross.

Fourteen candles into the rise in the figure, the 12-period EMA was 1.10846 and the 26-period EMA 1.10264. The MACD line is the difference, 0.00582, or 58.2 pips. The signal line stood at 47.3 pips, so the histogram was about 11 pips.

MACD is measured in price, so its values cannot be compared between pairs or time frames, and it has no fixed level that counts as high.

Reading it

What you seeUsual reading
MACD line above zeroThe fast average is above the slow one: the trend is up
MACD line crossing above the signal lineMomentum is turning up
MACD line crossing below the signal lineMomentum is turning down
Histogram shrinkingThe move is losing pace, though it may go on

The example

  • The range. The MACD line wound around zero, never more than 14 pips from it, and crossed its signal line six times. Buying each cross upward and selling each cross downward made three round trips. Measured on closing prices they lost 45, 79 and 61 pips.
  • The rise. On the candle that broke upward, at 1.0954, the MACD line crossed above its signal line and above zero. It stayed above the signal line for 26 candles. The cross back down came at 1.1225, which is 271 pips higher.
  • The top. The MACD line made its highest point sixteen candles before the highest close. Price rose another 102 pips after that while the MACD line drifted lower. A higher price with a lower indicator is called divergence, which Level 8 covers.
  • The fall. The MACD line crossed below zero eleven candles after the highest close, 194 pips beneath it.

These prices were made up to show a range and a trend. They are not evidence of what the indicator earns.

Where it misleads

  • Ranges. With no trend the two averages stay close together, the MACD line hovers at zero and every small swing produces a crossing.
  • Turns. MACD is built from two averages and then averaged again. It cannot turn before price does.
  • Divergence is not a timer. Here it lasted sixteen candles before price turned.

How traders use it

Many use the zero line as a filter for direction and the signal line for timing within it: for example, taking only upward crosses while the MACD line is above zero. Each use depends on the market trending.

Key points

  • The MACD line is the 12-period EMA minus the 26-period EMA. The signal line is a 9-period EMA of it, and the histogram is the gap between them.
  • A cross of the zero line is the same event as the two EMAs crossing.
  • In the example the signal line was crossed six times in the range, with three losing round trips, and once in the rise, holding for 26 candles.
  • MACD is measured in price, has no overbought level and lags at turns.

Comprobación rápida

Estas preguntas no cuentan para tu puntuación del cuestionario.

1. The 12-period EMA is 1.2540 and the 26-period EMA is 1.2500. What is the MACD line?
2. The MACD line is at 0.0030 and the signal line is at 0.0042. What is the histogram?

Common mistakes

  • Trading every cross of the signal line. In a range the crosses come one after another and each reverses the last.
  • Comparing MACD values between pairs or time frames. The line is measured in price, so 0.0020 on EUR/USD and 0.20 on USD/JPY cannot be set side by side.
  • Calling a high MACD overbought. The line has no ceiling. A large value says the fast average is far above the slow one, which is what a strong trend looks like.
  • Treating divergence as a signal to act now. It shows a move losing pace and can last for many candles.

Another example

On a daily chart of USD/JPY the 12-period EMA is 151.20 and the 26-period EMA is 150.60, so the MACD line is +0.60, or 60 pips. The signal line is at 0.75, which puts the histogram at −0.15. The line is above zero and below its signal: the trend is up and it has been slowing. The next day the MACD line slips to 0.50. A 9-period EMA has a multiplier of 0.2, so the signal becomes 0.50 × 0.2 + 0.75 × 0.8 = 0.70, and the histogram widens to −0.20.

Questions people ask

What do the MACD settings 12, 26 and 9 mean?

They are the periods of the three exponential moving averages. Twelve and 26 are the fast and slow averages of the close, whose difference is the MACD line, and 9 is the average of that line which forms the signal line. They are the settings its creator used and the default on most platforms.

What is the MACD histogram?

It is a set of bars showing the MACD line minus the signal line. The bars are above zero when the MACD line is above its signal and below zero when it is under it, and they cross zero exactly when the two lines cross. Shrinking bars show the gap closing.

Is MACD a leading or lagging indicator?

It is lagging. Every part of it is a moving average of past closes, so it can only report what price has already done. Traders sometimes call the histogram leading because it turns before the MACD line does, but it still turns after price.

What does it mean when MACD crosses the zero line?

It means the 12-period EMA has crossed the 26-period EMA. Above zero the faster average is on top, which is read as an uptrend, and below zero the slower one is. It is the same event as a moving average crossover, shown on a separate panel.

SiguienteRSI

Las lecciones se pueden leer gratis sin cuenta. Inicia sesión y PipCircle recuerda dónde lo dejaste, guarda tus puntuaciones y te otorga tus insignias. Iniciar sesión gratis

Trading foreign exchange and CFDs carries a high risk of losing money. PipCircle Learn is education and is not investment advice.

ES flag

Showing PipCircle in Español. Prefer another language?

We use cookies

Necessary cookies keep PipCircle working. Optional cookies (analytics, marketing, preferences) help us improve the product. You can change this any time from Settings → Privacy & Data. Read our Privacy Policy.