MACD Indicator

MACD uses a 12/26-period EMA crossover and a 9-period signal line to measure trend momentum. How to read bullish and bearish crossovers, histogram shifts

BASICS5 min readBy AlgoSys Editorial TeamPublished Apr 25, 2026Updated Jun 24, 2026
Contents

The Moving Average Convergence Divergence (MACD) indicator remains one of the most popular technical analysis tools, used across all markets from stocks to cryptocurrencies. It helps assess market momentum (the strength and speed of price movement) and spot changes in trends early. At its core is a simple idea: the indicator compares two exponential moving averages and, based on their interaction, generates signals that traders use for their decisions.

You can find MACD in almost any charting platform. It appears as a set of lines and a histogram below the price chart, and this visual clarity makes it convenient: momentum is visible at a glance, without mental calculations. For the intermediate trader looking to see the market more deeply than just by watching the price, understanding MACD becomes an important step.

The indicator's value lies in translating the feeling of "the price is moving fast" into concrete numbers. This allows for a more objective market assessment and helps select better entry and exit points. And since so many traders use MACD, it has become a sort of common trader language: when they say "MACD gave a bullish crossover," everyone understands what is meant.

KEY CONCEPTS

MACD is composed of several parts, each contributing to the overall picture:

  • MACD Line: The main line, derived by subtracting the longer-term exponential moving average (EMA) from the shorter-term EMA.
  • Signal Line: An EMA of the MACD line itself over a shorter period. It acts as a trigger for buy and sell signals.
  • Histogram: Bars that show the difference between the MACD line and the Signal line, representing the strength and direction of momentum.
  • Exponential Moving Average (EMA): A type of moving average that gives more weight to recent prices, making it more responsive to changes than a simple moving average.
  • Convergence: The point where the MACD line and the Signal line move closer together. This often signals that momentum is weakening.
  • Divergence: A situation where the price moves in one direction, but the MACD moves in the opposite direction. This behavior often warns of a trend reversal.

HOW IT WORKS

The calculation of MACD is based on specific EMA periods. In the classic setting, the 26-period EMA is subtracted from the 12-period EMA, and this difference forms the MACD line. The Signal line is then calculated as a 9-period EMA of the MACD line itself, essentially smoothing it further.

Let's break it down with an example. Suppose the price of Bitcoin is steadily rising. In this case, the faster 12-period EMA will almost certainly be above the slower 26-period EMA, meaning the MACD line will be positive. As long as the rise continues, the MACD line will also increase, indicating bullish momentum.

The opposite scenario looks like this. When the price of Bitcoin starts to fall, the shorter-term EMA drops faster than the longer-term EMA because it is closer to recent prices. The MACD line moves downward, and if it crosses the Signal line from above to below, a bearish signal is generated, hinting at a potential downtrend.

To make it clearer, let's summarize both states in a table.

State What's Happening with the Lines What it Indicates
Bullish Momentum 12-EMA above 26-EMA, MACD line is positive and rising Buyers are stronger, uptrend
Bearish Momentum 12-EMA below 26-EMA, MACD line is falling below the Signal line Sellers are stronger, downtrend

USAGE EXAMPLES

MACD is most often used to catch trend reversals through line crossovers. A bullish crossover, where the MACD line crosses the Signal line from bottom to top, can signify the start of an upward movement. A bearish crossover, where the MACD line crosses below the Signal line from top to bottom, conversely, hints at the beginning of a downtrend.

A second important application is identifying divergences, which is particularly valuable because it provides advance warning. Bullish divergence occurs when the price makes lower lows, but the MACD forms higher lows: selling pressure is weakening, even if the price doesn't yet reflect it. Bearish divergence works in reverse, when the price makes higher highs, but the MACD makes lower highs, indicating a fading buying momentum.

The histogram also provides many clues. When its bars rise upward and stay above zero, it confirms bullish momentum. When the bars shorten and move below zero, the bearish side strengthens. Such hints help to fine-tune entries and exits more accurately.

To see all this together, let's imagine a simple scenario on the daily Bitcoin chart. The price has been declining for several days and makes a new low, but the MACD line forms a higher low than the previous one: this is bullish divergence. Subsequently, the MACD line crosses the Signal line from bottom to top, and the histogram bars move from below zero to above and start to grow. Three clues align and point in the same direction, providing a much stronger argument for an upward scenario than any single signal alone.

How to distinguish a real signal from a false one: in sideways or highly choppy markets, MACD lines often cross back and forth without follow-through. Crossovers are more trustworthy when they coincide with other confirmations, such as divergence or a histogram reversal, and occur on a timeframe consistent with your strategy, rather than on a random short spike.

FREQUENTLY ASKED QUESTIONS

It's important to remember that MACD is a lagging indicator: it's calculated based on past prices. Therefore, it performs best when used in conjunction with other analysis tools. Relying solely on its signals can lead to missing good opportunities or exiting trades too early.

The timeframe also matters. A MACD crossover on an hourly chart indicates a short-term move, while the same crossover on a daily chart might signal a more significant trend shift. Choose the timeframe that suits your trading style and avoid mixing signals from different scales.

Despite its strengths, MACD is not infallible. False signals are particularly common in volatile and sideways markets where prices fluctuate without a clear direction. Therefore, always prioritize risk management and weigh multiple factors before entering a trade based solely on an indicator's signal.

FAQ

What MACD settings are considered standard?

The classic combination is: 12 for the fast EMA, 26 for the slow EMA, and 9 for the Signal line EMA. These numbers became established because they offer a reasonable balance between responsiveness and reliability of signals in a wide variety of trading situations. If you are trading very short timeframes, the periods are sometimes reduced to make the indicator react faster, but for most tasks, the classic settings are sufficient.

Can MACD be applied to any cryptocurrency?

Yes, MACD is built on price, so it works on the chart of any asset regardless of its capitalization or trading volume. In practice, its effectiveness depends on how volatile the instrument is: signals on a liquid coin like Bitcoin are usually cleaner than on a low-liquidity coin with sharp, erratic jumps, where there will be more false crossovers.

How to read MACD divergence?

Divergence occurs when the price and the indicator move in opposite directions. Bullish divergence: the price makes a lower low, while the MACD forms a higher low, hinting at weakening sellers and a possible upward reversal. Bearish divergence works mirror-image: the price makes a higher high, while the MACD makes a lower high, suggesting buyers are running out of steam.

Why is MACD called a lagging indicator?

Because it is calculated based on moving averages, which average past prices. The signal arrives after the move has begun, not before. This is not a flaw, but a characteristic: MACD is good for confirming a trend, but not for predicting the exact bottom or top, which is why it is combined with other tools.

Does the timeframe affect MACD signals?

Yes, and very significantly. A crossover on an hourly chart indicates a short-term move, while the same crossover on a daily chart suggests a larger trend shift. The same asset can simultaneously give a bullish signal on the daily and a bearish signal on the hourly. Therefore, choose a timeframe that suits your strategy and do not mix signals from different scales.

Put this to work in the terminal

Live charts, derivatives, on-chain and macro data, free.

Open terminal →