What is MACD? Trading with the MACD indicator

Discover what MACD is, how it is calculated, and how to apply MACD consistently in your trading.

Charts (5)

If you’re a trader applying technical analysis to help with opening and closing your positions, chances are you will encounter the much-used MACD indicator. Discover here what MACD is, how it is calculated, and how to apply MACD in the markets.

What is MACD?

MACD is a popular technical indicator used by traders to help with their analysis. It shows the relationship between two moving averages of a security’s price and can help make more sense of trends and momentum, combining a MACD line, signal line and histogram to give bullish and bearish signals. 

MACD line with signal line and histogram

What does MACD stand for?

MACD stands for Moving Average Convergence Divergence. The name refers to the difference between two exponentially-levelled moving averages of a security’s price, and how this resulting line (the MACD line) diverges from and converges with its signal line (an exponentially-smoothed average of the MACD line).

What are moving averages?

Moving averages refer to lines representing the value of prior data over an average period, to give traders a measure of momentum, as well as to grade trends. For example, a 50-day moving average will show the average price of a security over the past 50 days, while a 200-day moving average will show the price over the past 200 days.

Traders can refer to multiple moving averages to gain better information about short and long-term trends. They will often use crossovers for bullish or bearish signals. When the short-term average crosses above the longer-term average, this is known as a ‘golden cross’ and is seen as a bullish signal. When the shorter-term average crosses below the longer-term, this is known as a ‘death cross’ and is seen as a bearish signal.

However, moving average crossovers may not be sufficient to use by themselves as they are often lagging (meaning they trail the current price) and can give off false signals in range-bound, as opposed to trending, markets.

With these downsides in mind, MACD gives more information on the relationship between two given moving average values to offer more insight for traders to consider before making entries and exits.

How to read MACD

When it comes to how to read MACD, you need to be aware of the MACD line, the signal line, and the histogram, and how they interact to create signals. 

The MACD line is the value calculated by subtracting the shorter period exponential moving average from the longer period. It will grade the deviation between these values. Often, the respective time periods of these EMAs is 12 and 26.

As the divergence between the moving averages increases, the value of the MACD line becomes stronger.

MACD input values and time frames

Meanwhile, the signal line is a moving average applied on the MACD line, and adds depth to the indicator. The signal line generally shows a 9-period smoothed average of the MACD line.

Finally, the histogram shows the relationship between the MACD line and the signal line.

When the MACD line crosses above the signal line, the value of the histogram goes above the zero line, and this is usually seen as a bullish signal. The further the MACD line diverges above the signal line, the more the histogram value will increase. When the MACD line crosses below the signal line, the value of the histogram will go below the zero line, and this is seen as bearish. The further the MACD line diverges below the signal line, the more the histogram value will decrease.

How to use MACD

When it comes to how to use MACD, traders should be aware, that the MACD line crossing above the signal line is generally seen as a bullish signal. This means that – depending on other technicals and fundamental analysis – they may want to consider opening a long position when this happens.

Conversely, when the MACD line drops below the signal line, this is generally seen as a bearish signal, and may prompt traders to consider a short position. 

MACD bullish and bearish signals

The MACD histogram can be tracked as its bars grow larger and the MACD line diverges from the signal line. When the histogram produces a smaller bar, traders can consider an entry in the direction of the histogram’s decline, whether below the zero line (long) or above the zero line (short).

MACD step by step guide

To get started using MACD, take a look at our step-by-step guide for easy application to your charts.

  1. Open the MACD indicator on your chart.
  2. Adjust the values of the short and long-period EMAs, and the signal line, as necessary. The default is usually 12 and 26-day periods, but those looking for more sensitivity may try shorter short-term and a longer long-term (for example, 5,35,5).
  3. In conjunction with other technical and fundamental strategies outlined in your trading plan, identify long or short opportunities based on the activity of the MACD line, signal line and histogram. For example, the MACD line moving above the signal line may influence an entry long.
  4. Exit trades based on the same criteria, again in conjunction with your strategy. For example, the MACD line moving below the signal line may be an exit (short).


一站式参与交易全球场外金融市场,涵盖外汇、贵金属、大宗商品、股指、美港股、ETF等。有竞争力的点差、快速和精准的报价、高质量执行,嘉盛为客户提供优秀的交易体验。
开立真实账户

更多相关主题文章 MACD

本文所含内容及观点仅为一般信息,并无任何意图被视为买卖任何货币或差价合约的建议或请求。文中所 含内容及观点匀可能在不被通知的情况下更改。本文并未考虑任何特定用户的特定投资目标、财务状况和 需求。任何引用历史价格波动或价位水平的信息均基于我们的分析,并不表示或证明此类波动或价位水平 有可能在未来重新发生。本文所载信息之来源虽被认为可靠,但作者不保证它的准确性和完整性,同时作者也不对任何可能因参考本文内容及观点而产生的任何直接或间接的损失承担责任。

期货、期货期权、外汇和其他产品交易存在高风险,不适合所有投资者。亏损可能超出您的账户注资。减低安全资金要求意味着增加风险。黄金、白银现货交易不受《美国商品交易法案》的监管。差价合约(CFDs) 不对美国居民提供。在决定交易外汇之前,您需仔细考虑您的财务目标、经验水平和风险承受能力。文中所含任何意见、 新闻、研究、分析、报价或其他信息等都仅作与本文所含主题相关的一般类信息,同时嘉盛全球市场有限公司不提供任何投资、法律或税务的建议。您需要合适的顾问征询所有关于投资、法律或税务方面的事宜。有关FOREX.com或嘉盛集团请参考嘉盛集团股份有限公司 (GAIN Capital Holdings Inc.) 以及旗下子公司相关信息。