Applying The MACD Indicator With MetaTrader 4: Moving Average Convergence Divergence
  1. Applying The MACD Indicator With MetaTrader 4: Introduction
  2. Applying The MACD Indicator With MetaTrader 4: Moving Average Convergence Divergence
  3. Applying The MACD Indicator With MetaTrader 4: Using The MACD
  4. Applying The MACD Indicator With MetaTrader 4: Customizing The MACD
  5. Applying The MACD Indicator With MetaTrader 4: Editing and Deleting The MACD
  6. Applying The MACD Indicator With MetaTrader 4: Conclusion

Applying The MACD Indicator With MetaTrader 4: Moving Average Convergence Divergence

The moving average convergence divergence, commonly called the MACD or "Mac D," is a technical indicator developed by Gerald Appel in 1979. Shown in Figure 1, the MACD is a popular and versatile tool used to recognize and follow strong trends, and to spot trend reversals.

A MACD applied to a 4-hour chart of the GBPUSD currency pair.
Figure 1: A MACD applied to a four-hour chart of the GBP/USD currency pair.


The MACD is based on the difference between two moving averages (MAs): a faster one (to reflect shorter-term market trends) minus a slower one (to reflect longer-term trends). Typically, a 12-period exponential moving average (the faster MA) is paired with a 26-period exponential moving average (the slower MA); both moving averages use closing prices for calculations. Other MA lengths can be used, such as a 19-period exponential moving average (EMA) paired with a 39-period EMA, or an 8-period EMA paired with a 17-period EMA. The examples in this tutorial will reflect the 12-26 period MACD, as it is one of the most widely used. The 12-26 period MACD is calculated as:

MACD = 12-period EMA minus 26-period EMA


In 1986, Thomas Aspray added a histogram (a series of vertical lines, shown in Figure 1 in dark blue) to the MACD indicator. The histogram is positive (above the zero line) when the MACD (12-period EMA minus the 26-period EMA) is above its 9-period EMA; it is negative (below the zero line) when the MACD is below its 9-period EMA. The histogram grows larger as the speed of price movement accelerates. Conversely, as price movement slows down, the histogram contracts. The histogram actually represents the difference (or divergence) between the MACD and the signal line (the bright pink curving line in Figure 1):

Histogram = MACD minus Signal


The signal line is a 9-period EMA of the MACD itself that is plotted on top of the MACD:

Signal = 9-period EMA of MACD

Some traders use this "signal line" as a trigger for buy and sell signals: for example, a buy signal may exist when the MACD moves above its own 9-period EMA, and a sell signal might occur when the MACD moves below its 9-period EMA, as shown in Figure 2. Because the MACD is such a versatile tool with a variety of possible uses, traders may wish to research the many other possible interpretations.

One interpretation of the MACD: sell as the histogram drops below the signal line, and buy when the histogram rises above the signal line.
Figure 2: One interpretation of the MACD: sell as the histogram drops below the signal line, and buy when the histogram rises above the signal line.


The name of an indicator appears at the top of the price chart to which the indicator is attached. When the MACD indicator is applied to a price chart, "MACD" appears at the top and its EMA lengths appear in parentheses next to its name. Each EMA length is separated by a comma, as shown in Figure 3. For example, the 12-26 MACD with a 9-period EMA signal line will appear as MACD (12, 26, 9).

The name of an indicator appears at the top of the chart to which the indicator is attached.
Figure 3: The name of an indicator appears at the top of the chart to which the indicator is attached. Here, MACD is shown with its settings in parentheses (12, 26, 9).


Applying The MACD Indicator With MetaTrader 4: Using The MACD

  1. Applying The MACD Indicator With MetaTrader 4: Introduction
  2. Applying The MACD Indicator With MetaTrader 4: Moving Average Convergence Divergence
  3. Applying The MACD Indicator With MetaTrader 4: Using The MACD
  4. Applying The MACD Indicator With MetaTrader 4: Customizing The MACD
  5. Applying The MACD Indicator With MetaTrader 4: Editing and Deleting The MACD
  6. Applying The MACD Indicator With MetaTrader 4: Conclusion
RELATED TERMS
  1. MACD Technical Indicator

    Moving Average Convergence Divergence (or MACD) is a trend-following ...
  2. Trigger Line

    A moving-average line found in the moving average convergence ...
  3. Histogram

    1. A graphical representation, similar to a bar chart in structure, ...
  4. Exponential Moving Average - EMA

    A type of moving average that is similar to a simple moving average, ...
  5. European Medicines Agency (EMA)

    A centralized government body whose goal is to promote and protect ...
  6. OsMA

    An abbreviation for Oscillator - Moving Average. OsMA is used ...
RELATED FAQS
  1. Why is divergence of the Moving Average Convergence Divergence (MACD) important for ...

    Learn the importance of the moving average convergence divergence, or MACD, and understand why traders consider it an important ... Read Answer >>
  2. What are the main differences between Moving Average Convergence Divergence (MACD) ...

    Understand the exponential moving average, or EMA, and the moving average convergence divergence, or MACD, and their respective ... Read Answer >>
  3. What are the main differences between Moving Average Convergence Divergence (MACD) ...

    Learn the differences between the moving average convergence divergence (MACD) and the relative strength index (RSI), and ... Read Answer >>
  4. What are the best technical indicators to complement the Moving Average Convergence ...

    Learn the best technical indicators to use as part of a trading strategy in conjunction with the moving average convergence ... Read Answer >>
  5. How do I use Moving Average Convergence Divergence (MACD) for creating a forex trading ...

    Consider some forex trading strategies that can be designed using the exponential moving average (EMA) lines on the moving ... Read Answer >>
  6. What are the most common momentum oscillators used in forex trading?

    Explore two frequently used momentum indicators in forex trading, the moving average convergence divergence, or MACD, and ... Read Answer >>

You May Also Like

Hot Definitions
  1. Law Of Demand

    A microeconomic law that states that, all other factors being equal, as the price of a good or service increases, consumer ...
  2. Cost Of Debt

    The effective rate that a company pays on its current debt. This can be measured in either before- or after-tax returns; ...
  3. Yield Curve

    A line that plots the interest rates, at a set point in time, of bonds having equal credit quality, but differing maturity ...
  4. Stop-Limit Order

    An order placed with a broker that combines the features of stop order with those of a limit order. A stop-limit order will ...
  5. Keynesian Economics

    An economic theory of total spending in the economy and its effects on output and inflation. Keynesian economics was developed ...
  6. Society for Worldwide Interbank Financial Telecommunications ...

    A member-owned cooperative that provides safe and secure financial transactions for its members. Established in 1973, the ...
Trading Center