The Moving Average Convergence Divergence (MACD) indicator helps traders quickly identify short term trend directions and reversals in the forex markets. You can use the MACD indicator to determine a currency pair price trend’s severity and measure its price’s momentum and even identify the bearish and bullish movements in the currency pair prices.

In this article, we discuss everything you need to know about the MACD indicator and how you can make the most of it.

 

Understanding the MACD indicator


The Moving Average Convergence Divergence indicator depicts the relationship between two different moving averages of a currency pair’s price. It helps in analysing the currency pair’s price strength, weakness, direction and momentum in the forex market. The MACD indicator identifies the highest upward and lowest downward trends. With the highest upward trend, the ideal exit point can be identified and with the lowest downward trend, we can get the ideal entry point in the forex market.

 

How to read MACD indicator


The Moving Average Convergence Divergence (MACD) graph is represented right below the currency pair’s price chart so that each price movement can be easily compared with the movement in the MACD chart. Whenever the histogram is a positive sign, implying that it is above the baseline, it means that the MACD value is greater than its previous nine-day average, and there has been an incline in the uptrend.

At this point, you can place long orders. However, when the MACD value is lower than its previous nine-day average and the histogram is below its baseline, it indicates that there has been a decline in the market momentum. This signals you to place short orders.

Any peak in the histogram indicates a bearish momentum losing strength, and a trough represents a bullish momentum losing strength and results in a trend reversal. In the graph, the letter ‘T’ represents when there is a peak (or top) in the market. 

On the other hand, the letter ‘B’ represents when there is a trough (or bottom) in the market. The MACD graph shows either a convergence in the currency pair price momentum or a divergence. A convergence is identified when the MACD histogram shrinks due to a decline in the currency pair prices. A divergence is identified when the MACD histogram starts increasing in height due to an incline in the currency pair prices.

graph showing the MACD indicator


How to calculate MACD?

  1. Calculate the simple moving average (SMA) for the time period you are considering. The SMA will help you determine the exponential moving average (EMA).
  2. Calculate the weighted multiplier, also called smoothening, that will be used to calculate the MACD indicator through the given formula. Smoothening = 2/(number of period+1)
  3. Now, the EMA will be calculated for the number of periods considered by taking SMA as the first EMA or the previous day's EMA, followed by other EMAs. It will then be divided by the number of periods. EMA = currency pair closing price * smoothening + EMA of the previous day (also called the SMA calculated above) * (1-smoothening) To calculate the MACD indicator value, you will be determining a 12 period EMA (short-term moving average), 26 period EMA (long-term moving average) and a nine period EMA (signal line).
  4. The MACD indicator is calculated by subtracting the two exponential moving averages (EMA) belonging to the 26-period and 12-period. Hence, MACD indicator calculation formula = 12 period EMA – 26 period EMA, where EMA = [currency pair price value today * (smoothing/1+days)] + EMA of yesterday * [1– (smoothing/1+days)]


How is MACD calculated and how does it work?


The MACD indicator is calculated by subtracting the two exponential moving averages (EMA) belonging to the 26-period and 12-period. Hence,

MACD indicator calculation formula = 12 period EMA – 26 period EMA,

where EMA = [currency pair price value today * (smoothing/1+days)] + EMA of yesterday * [1 – (smoothing/1+days)] And smoothing = weight provided for the EMA calculation, generally assumed as  when the difference between the two exponential moving averages is found, it is referred to as the MACD line. Another 9-period EMA of the same MACD is called the signal line, which can be plotted on top of the MACD line.

  • You can buy more of the currency pairs when the MACD line crosses the signal line from above. This is also called a bearish signal.
  • You can sell more of the currency pairs when the MACD line crosses the signal line from below. This is also called a bullish signal.


MACD Histogram


The difference between the 12-day EMA and 26-day EMA is graphically plotted on the MACD histogram. It also consists of a zero line, which is a centerline dividing the positive chart area and the negative chart area. Bearish and bullish momentum in the forex market can be identified by the MACD line’s movement above and below this line.

graph showing buy and sell signals


How to use MACD to confirm a trend


Understand the components

There are three main components in an MACD pattern –

  • MACD line: Calculated by subtracting the 26-period exponential moving average (EMA) from the 12-period EMA.
  • Signal line: A 9-period EMA of the MACD line.
  • Histogram: The difference between the MACD line and the signal line.


Identify a trend

Traders can identify an uptrend when both are positive and the MACD line is above the signal line. They can place long orders during an uptrend to gain from the rising prices. A downtrend is identified when both are negative and the MACD line is below the signal line. Traders can place a short order at this point to gain from the falling prices.


Confirming the trend

After identifying a trend, the trader must confirm if the trend is temporary or weak -


Bullish confirmation

  • Positive crossover: When the MACD line crosses above the signal line while both are positive, it confirms an uptrend
  • Histogram positives: A series of positive histogram bars can also strengthen the bullish confirmation


Bearish confirmation

  • Negative crossover: When the MACD line crosses below the signal line while both are negative, it confirms a downtrend.
  • Histogram negatives: A series of negative histogram bars can also strengthen the bearish confirmation.


If the trend confirmation does not take place in the above step, there is likely a divergence in the pattern –

  • Bullish divergence: When the price makes a new low, but the MACD line makes a higher low, it suggests a potential bullish reversal, signaling traders to place long orders
  • Bearish divergence: When the price makes a new high, but the MACD line makes a lower high, it suggests a potential bearish reversal, signaling traders to place short orders

graph showing a bullish crossover

image source

Trading the MACD divergence


Divergences with MACD can be traded by identifying the currency pair price swing highs and lows, but no highs or lows in the MACD histogram. This creates a divergence between the currency pair price and momentum, allowing traders to trade with MACD. Here are four easy steps in which you can trade divergences with the MACD indicator –


1. Identify the existing trend’s direction

You can use the moving averages to identify the existing direction of the trend. If the current trend direction is in an uptrend, you can place long orders, and if the current direction of the trend is downwards, you can place a short order.


2. Confirm the trend signal through the MACD histogram

The existing trend signal can be confirmed by looking at the MACD signals. If the histogram is above the baseline during an uptrend, it means that the uptrend is confirmed. If it is below the baseline during a downtrend, it means that the downtrend is confirmed. If the current trend and the histogram value do not align, it sends a trend reversal signal.

MACD trend signals


3. Use the MACD crossover to place orders in the trend’s direction

After identifying the confirmed current trend, you can look for ideal entry signals to trade along with the direction of the trend. The MACD crossover provides ideal entry signals when the currency pair price is above the moving average. The MACD line must also be above the signal or red line in order to place a successful entry order.


4. Use the MACD’S zero line for risk management

In order to protect yourself from trading risks, use the MACD indicator’s zero line to exit a trend before it ends. During an uptrend, if a bearish crossover occurs where the moving average line crosses the MACD line from above, you can exit your long position at this point. However, during a downtrend, if a bullish crossover occurs where the moving average line crosses the MACD line from below, you can exit your short position and place a long order.


How to use the MACD indicator for entry and exit signals


The MACD indicator provides strong entry signals when the MACD line crosses the signal line in the same direction as the existing trend. If the MACD line crosses the signal line from above, it sends bullish signals and provides traders with a long entry position by confirming an uptrend. However, if the MACD line crosses the signal line from below, it sends bearish signals and provides traders with a short entry position by confirming a downtrend.

MACD entry and exit signals


You also receive exit signals with the MACD indicator. If the MACD histogram shows a new swing high, it sends you a signal to exit their short entry positions due to an expected uptrend. However, if you have opened a long position and the MACD histogram shows that there has recently been a new swing low, it signals you to exit the long trade position due to an expected downtrend.

MACD trend signals

 

Top MACD trading strategies


Crossovers

A crossover is a point in the chart where the currency pair prices and the indicator intersect. Crossovers help in estimating the currency pair’s performance in the forex market and forecasting future prices as well as trends. You can use the MACD indicator to identify entry points in the market when it crosses the slower line, also called the signal line from above. The crossover strategy is one of the most common MACD trading strategies, and it can be used by beginner traders easily, as well. Profitable entry points are always identified at the crossover, highlighted as vertical green lines in the picture below. However, when trading with the MACD indicator, you must be aware of the false signals as well, highlighted in red. The ideal way to avoid any false signals is to wait for a price movement to occur before you take any decision, but not keep waiting for too long. If you wait for too long after the price movement occurs, the currency pair price could reach its reversal point and send you a false buying signal.

MACD crossover strategy


Histogram reversals

The MACD histogram increases in height during a strong market direction and shrinks in height during a slow market movement. The histogram reversal trading strategy can help you place successful trades even before the actual market movement takes place. When two counter-trend moves (first an upward trend, then a downward trend or vice versa) occur in the histogram, it ensures that there is going to be a trend reversal. If you place your trades in the direction of the market, you can earn significant profits. This is because once the price goes through a counter-trend, it remains in the same trend for a while. This situation can be used in your favor by either moving along with the trend or exiting the market at the right time to mitigate losses.

  • If you see the price movement of a currency pair in the MACD histogram first increasing and then decreasing, it sends you an exit signal in the market to protect you against losses.
  • If you see the price movement of a currency pair in the MACD histogram first decreasing and then increasing, it sends you an entry signal in the market to maximize your profits.


Zero crosses

The zero-cross trading strategy with the MACD histogram refers to either of the two exponential moving averages crossing the zero line at some point in time. Whenever the MACD line crosses the zero line from above, it is an uptrend that sends you buy signals. Whenever the MACD line crosses the zero line from below, it is a downtrend that sends you to sell signals. In this particular strategy, you also see several trendline breaks, which signals you to exit the trade immediately if you want to minimize your losses.

  • You can use a break below the last swing low during an uptrend to exit a trade.
  • You can use a break above the last swing high during a downtrend to exit the trade.


How to identify bullish and bearish MACD crossovers


Bullish crossover

A bullish crossover occurs when the MACD line crosses above the signal line. This indicates a potential shift from a downtrend to an uptrend.


To confirm a bullish crossover, the following conditions should be met –

  • MACD line above signal line: The MACD line should be positioned above the signal line
  • Upward cross: The MACD line should be crossing upward, indicating a bullish momentum
  • Positive histogram: The histogram bars, which represent the difference between the MACD line and the signal line, should be positive, confirming the bullish trend

graph showing a bullish MACD crossover

image source


Bearish crossover

A bearish crossover occurs when the MACD line crosses below the signal line. This indicates a potential shift from an uptrend to a downtrend.


To confirm a bearish crossover, the following conditions should be met –

  • MACD line below signal line: The MACD line should be positioned below the signal line
  • Downward cross: The MACD line should be crossing downward, indicating a bearish momentum
  • Negative histogram: The histogram bars should be negative, confirming the bearish trend

MACD line crossing below the signal line

image source


What is an MACD histogram?


The MACD histogram visually represents the difference between the MACD and signal lines. It provides a more immediate indication of the strength and direction of the trend. The MACD histogram is plotted directly beneath the MACD line and signal line.

  • Positive histogram: When the MACD line is above the signal line, the histogram bars are positive, indicating a bullish trend and suggesting a potential upward movement in the price.
  • Negative histogram: When the MACD line is below the signal line, the histogram bars are negative, indicating a bearish trend and suggesting a potential downward movement in the price.
  • Height of the bars: The height of the histogram bars represents the magnitude of the difference between the MACD line and the signal line. A larger bar indicates a greater divergence


Apart from positive and negative, there are two more types of histogram bars –

  • Increasing histogram bars: Show an accelerating trend, either bullish or bearish
  • Decreasing histogram bars: Show a decelerating trend, either bullish or bearish

graph showing MACD signal lines

image source


The MACD histogram provides traders with valuable insights into the strength and direction of a trend: A positive histogram during a bullish crossover strengthens the bullish signal, and vice versa for a bearish crossover. 

Also, the divergence between the histogram and the price can signal potential reversals. For example, a bullish divergence occurs when the price makes a new low, but the histogram makes a higher low.


Using MACD histogram for forex trading


Here's how to use the MACD histogram for forex trading –

  1. Identify trend: Determine the overall trend by analyzing the position of the MACD line relative to the signal line.
  2. Confirm trend: Look for a crossover between the MACD line and the signal line in the direction of the trend.
  3. Analyze histogram: Evaluate the histogram bars to gauge the strength and momentum of the trend.
  4. Watch for divergence: Monitor for potential divergence between the histogram and the price to identify potential reversals.
  5. Combine with other indicators: For a more accurate analysis, consider using the MACD histogram in conjunction with other technical indicators.

MACD histogram with other signals

image source


For example, let's assume that a trader is analyzing the EUR/USD pair on a 4-hour chart. The MACD line is currently below the signal line, indicating a bearish trend. However, the histogram bars are starting to shorten and are nearing the zero line. The interpretation from the histogram would be –

  • Bearish trend: The overall trend is bearish, as confirmed by the MACD line being below the signal line
  • Weakening bearish momentum: The shortening histogram bars suggest that the bearish momentum is weakening. This could be a sign of a potential reversal


The trader would initially wait for a bullish crossover, which occurs when the MACD line moves above the signal line. This suggests a potential reversal from a bearish trend to a bullish one. To strengthen this signal, the trader would also observe the histogram bars. If these bars turn positive and increase in height after the bullish crossover, it would further confirm the bullish trend.

Once the trader is confident in the bullish reversal based on these indicators, they could enter a long position in the EUR/USD pair, expecting its value to increase. To manage risk, it's essential to set a stop-loss order at a level below the entry price to limit potential losses if the trade moves against the trader. A take-profit order can also be set at a predetermined level to lock gains when the target is reached.


*This is an example only to enhance a consumer's understanding of the strategy being described above and is not to be taken as Blueberry providing personal advice.


Trade with the MACD indicator to identify favourable trend reversals


Trading with the MACD indicator helps you detect any change in the currency pair price’s fluctuation in the stock market. It enables you to identify the right entry and exit points to make profitable trades. Since it is based on historical data, it can also be used to predict trend changes and take further positions accordingly. With our platform, you can combine the MACD indicator with several other indicators to make sure that you always place successful trades. Sign up for a live account today or try a risk-free demo account.


Trade smarter with low spreads and lightning-fast executions. Open a live account today and experience unparalleled support from our dedicated customer service team. Blueberry is here to help every step of the way!

Trade Now Open a Demo Account