In this monthly special technical analysis feature, CMC Markets will bring you trading guides and strategies to help you develop and enhance your trading skills.
The MACD is a simple, yet effective indicator. This article will explain how to interpret and use the MACD for technical trading. The MACD can provide a visual snapshot to analyse trends, which allows traders to scan charts rapidly. That makes it an invaluable tool of technical analysis, especially in today’s global village with myriad financial instruments being available to traders at the click of a mouse, as in the CMC Markets NextGen platform.
What Is MACD?
However appetizing it may sound, the MACD has absolutely nothing to do with fast-food. The acronym stands for Moving Average Convergence Divergence. It is a trend-following momentum indicator/oscillator that was developed by Gerald Appel in the late 1970s. The MACD is a tool that is used in technical analysis to determine the strength and momentum of a trend. It is calculated on price data which is plotted as a time series.
The idea behind the MACD is simple. The degree/magnitude of separation between a shorter and a longer term Moving Average (MA) denotes the strength of a trend. It also indicates the momentum of that trend. The underlying logic is that a shorter-term MA reflects current price action; whereas a longer-term MA reflects earlier price action, in addition to the current price action. If there is a good separation between these two MAs, then this means that current price action is moving away from earlier price action. This indicates that the market is trending either up or down.
This is a good point to clarify and define two terms and concepts involved in the MACD, namely time series and MAs. A time series is simply a set of data plotted over time. An example of a time series is temperature data (high, low, average) plotted every day. Financial Instruments traded in the market are plotted as price data that is continuously recorded is relevant to us. Prices may be plotted for a certain number of transactions (ticks). They may also be plotted in time periods, of usually one second and upwards. They are plotted on a chart as the open-high-low-close for that period; either as an Open-High-Low-Close (OHLC bar), or as a candlestick.
An MA is an average of time series data calculated over a certain number of time periods. As we progress through time, the latest period factors into the calculation and the earliest period from the previous calculation drops off. Another thing to note is that a faster MA is defined as one that is calculated over a smaller number of periods. Conversely, a slower MA is one calculated over a larger number of periods. Calculated MAs are consequently plotted on the charts and are usually overlaid on top of the price action.
MAs come in various flavours; but a few of them may be more relevant in understanding the MACD. A Simple Moving Average or SMA is an average of data plotted over a certain number of periods. A Weighted Moving Average or WMA is a moving average with greater emphasis (or weight) being placed on certain (or few) periods.
Flowing on from the WMA, we have what is known as the Exponential Moving Average or the EMA. This is where more recent periods have a higher weight in the calculation, compared to earlier periods. This is done using a weighting multiplier calculated as 2/(time period + 1). Therefore, for a 9 period time series, it is 2/(9 + 1) which is 0.2 or 20 percent. Given that the logic behind the MACD is to compare recent versus earlier price-action; an EMA is more applicable and is therefore used in its calculation.
MACD Indicator Explained
Interpreting MACD on charts has been the focus of traders seeking to identify a market’s trend and momentum since the MACD indicator’s inception. It is easy to use and can, at a glance, give a myriad of information to the astute trader.
How To Use MACD Indicator
Prices of all financial instruments do not move in a straight line, but rather in a jagged up and down fashion with a series of sharp peaks and troughs. Examples of financial instruments are the foreign exchange market, equities, indices, commodities, exchange-traded funds (ETFs), debt instruments (bonds), futures and options. These fluctuations and oscillations are filtered out by low-pass filters. MAs present a smoother profile, which allows for ease of analysis. The MACD formula seeks to harness the benefits of two low-pass filters; a fast EMA and a slow EMA. The standard or “box” setting for the fast EMA is 12 periods, i.e. an EMA calculated over 12 periods. The standard or “box” setting for the slow EMA is 26 periods, i.e. an EMA calculated over 26 periods.
The MACD indicator consists of signal lines and a histogram. The histogram displays the difference between the MACD line (more commonly referred to simply as MACD) and the signal line plotted as a bar chart over time.
The MACD can be used in several ways by traders. At a very basic level, it is used to generate buy and/or sell signals using crossovers. When the MACD crosses the signal line from under it and goes over; this generates a buy signal. Such a crossover is often known as the “golden cross”. Conversely, when the MACD crosses the signal line from above and goes under it, this generates a sell signal; and is often known as the “death cross”.
The MACD histograms oscillate above and below a “zero line”, where the MACD and the signal line intersect. The shape of the histogram is important, for example, a rising histogram profile indicates an uptrend. The shape of the histogram with respect to the zero line also has a bearing on the trend as a strong downtrend would be indicated by a falling profile below the zero line.
The MACD is one of the earliest indicators developed and yet it still remains effective in today’s modern markets. For instance, it can be used as a leading indicator to predict the potential market direction in conjunction with price action.
The way to do this is by using the concepts of convergence and divergence. The MACD is said to be convergent with price action if both prices and the MACD are moving in the same direction. In other words, if prices are making higher highs (in an uptrend) with the MACD makes correspondingly higher highs then we have convergence. Convergence of the MACD with price action confirms the strength, direction, and momentum of a trend.
If the MACD moves in the opposite direction, making lower highs as the price is making higher highs, then we have negative divergence. Divergence with price action indicates the potential weakening or possible reversal of a trend.
What is the Trigger Line
The MACD trigger line is also known as the MACD signal line.
The mathematics behind MACD is relatively simple and powerful when used effectively. The MACD is calculated by subtracting the slow EMA from the fast EMA. IN the example below, the fast EMA (12) has a value of 6,151.99 and the slow EMA (26) has a value of 5554.52. The resultant MACD value is 597.16.
What Is MACD Signal Line
The MACD signal line is the second component of the MACD indicator. It is an EMA of the MACD over a certain number of periods. The standard or “box” setting for this is nine i.e. an EMA of the MACD calculated over nine periods. It is used to generate buy and sell signals as the MACD line crosses.
As the MACD and MACD signal line are derived from two EMAs, their value will thus be dependent on the underlying security. As such, it is not possible to compare these values for a group of currencies or across markets such as between the SPX 500 and an exchange-traded fund.
Benefits Of MACD
The MACD is a relatively simple indicator, is easy to comprehend, appeals to one’s intuitive logic, and therefore resonates well with most traders. Its simplicity notwithstanding, it is can be a powerful tool if used effectively, especially for assessing the strength and momentum of trends, and consequently to predict their continuance and potential reversal.
CMC Markets is an execution-only service provider. The material (whether or not it states any opinions) is for general information purposes only and does not take into account your personal circumstances or objectives. Nothing in this material is (or should be considered to be) financial, investment or other advice on which reliance should be placed. No opinion given in the material constitutes a recommendation by CMC Markets or the author that any particular investment, security, transaction or investment strategy is suitable for any specific person.
CMC Markets does not endorse or offer opinions on the trading strategies used by the author. Their trading strategies do not guarantee any return and CMC Markets shall not be held responsible for any loss that you may incur, either directly or indirectly, arising from any investment based on any information contained herein.