MACD in Crypto Trading: What It Is and How to Read It

MACD shows the gap between a fast and a slow average of price. Learn how traders read crossovers, the zero line, the histogram and divergence, how MACD is calculated with a worked example, and how to use MACD and RSI together.

Cryptathon app on a phone showing a Solana perpetual futures chart and order book, next to the words Practice crypto. Get confident.

MACD, short for Moving Average Convergence Divergence, measures the gap between a fast and a slow average of price. When the fast average is above the slow one, MACD is above zero. When it is below, MACD is below zero. Traders use it to read the direction and strength of a move, but MACD is built from past closing prices, so it follows price. It does not tell you where price will go next.

This guide shows how traders read MACD's three parts, how it is calculated with a worked example, how to use MACD and RSI together, where it fails, and how to practise without risking money.

What does MACD mean in crypto trading?

MACD is a momentum indicator that also follows the trend, shown in a pane below the price. Gerald Appel developed it in the late 1970s, and Thomas Aspray added the histogram in 1986. The math only needs closing prices, so it is calculated the same way on Bitcoin, Ethereum and Solana charts as on any other market.

  • The MACD line. The 12-period exponential moving average (EMA) of the close minus the 26-period EMA. An EMA is an average that gives more weight to recent candles.
  • The signal line. A 9-period EMA of the MACD line. It trails the MACD line and makes its turns easier to see.
  • The histogram. The MACD line minus the signal line, drawn as bars above or below zero.

Unlike RSI, MACD has no fixed top or bottom. Its value is a price gap in the coin's own price units, so StockCharts points out that you cannot compare MACD values between assets with very different prices. A bigger MACD number on Bitcoin than on Solana does not mean Bitcoin has stronger momentum.

How to read MACD on a crypto chart

Signal line crossovers

StockCharts calls these the most common MACD signals. A bullish crossover is when the MACD line crosses above the signal line. A bearish crossover is when it crosses below. Fidelity adds that a bullish cross further below zero, or a bearish cross further above zero, is read as a stronger signal. StockCharts warns that after a strong move, momentum often slows and the lines cross even while the move goes on.

Zero line crossovers

Above zero, the 12-period EMA is above the 26-period EMA; below zero, it is below. StockCharts notes that MACD stays positive during a sustained uptrend and negative during a sustained downtrend, and that a zero line cross can suggest a change in the overall trend.

The histogram

When the bars grow, the MACD line is moving away from its signal line. When they shrink toward zero, the two lines are getting closer. Aspray designed the histogram to anticipate signal line crossovers, because moving averages lag price and crossovers can come late. A shrinking histogram can be the first sign of a crossover. It is not a promise of one.

Divergence

A bearish divergence is when price makes a higher high but the MACD line makes a lower high. A bullish divergence is when price makes a lower low but MACD makes a higher low. Traders read it as momentum getting weaker. StockCharts warns that bearish divergences are common in strong uptrends and bullish ones in strong downtrends, so in a strong trend a divergence can show up while the trend carries on.

How is MACD calculated?

MACD takes a few steps: two averages of price, the gap between them, and a smoothed copy of that gap.

  1. Find the EMA multiplier. For a length of N candles it is 2 / (N + 1): 2/13 for 12, 2/27 for 26, and 2/10 = 0.2 for 9.
  2. Start each EMA from a simple average. The first EMA value is the plain average of the first N closes.
  3. Update with every new candle. New EMA = previous EMA + (close - previous EMA) x multiplier.
  4. Subtract. MACD line = 12-period EMA - 26-period EMA.
  5. Smooth. Signal line = 9-period EMA of the MACD line.
  6. Take the gap. Histogram = MACD line - signal line.

A worked example

These are example numbers, not real market data, rounded to two decimals at each step. Say a coin's chart shows a 12-period EMA of 100.00 and a 26-period EMA of 98.00. The MACD line is 2.00, the signal line is 1.20, and the histogram is 0.80.

The next candle closes at 101.

  • Fast EMA = 100.00 + (101 - 100.00) x 2/13 = 100.15. Slow EMA = 98.00 + (101 - 98.00) x 2/27 = 98.22.
  • MACD = 100.15 - 98.22 = 1.93. Signal = 1.20 + (1.93 - 1.20) x 0.2 = 1.35. Histogram = 0.58.

The next candle closes at 97.

  • Fast EMA = 100.15 + (97 - 100.15) x 2/13 = 99.67. Slow EMA = 98.22 + (97 - 98.22) x 2/27 = 98.13.
  • MACD = 99.67 - 98.13 = 1.54. Signal = 1.35 + (1.54 - 1.35) x 0.2 = 1.39. Histogram = 0.15.

The candle after that closes at 95.

  • Fast EMA = 99.67 + (95 - 99.67) x 2/13 = 98.95. Slow EMA = 98.13 + (95 - 98.13) x 2/27 = 97.90.
  • MACD = 98.95 - 97.90 = 1.05. Signal = 1.39 + (1.05 - 1.39) x 0.2 = 1.32. Histogram = -0.27.

The first candle closed above both averages, yet MACD fell: the close was only 1.00 above the fast EMA but 3.00 above the slow EMA, so the slow EMA rose more (0.22) than the fast one (0.15). The histogram shrank from 0.80 to 0.15 before the lines crossed, which is the early warning Aspray built it for. And the bearish crossover came only after price had dropped from 101 to 95, while MACD was still above zero. That is the lag in practice.

How to use MACD and RSI together

StockCharts suggests using two or three indicators that complement each other, not ones that give the same signal. Its example of a redundant pair is RSI and Stochastics, which both measure momentum with overbought and oversold levels. MACD and RSI differ more:

  • RSI is a banded oscillator that stays between 0 and 100, with 70 and 30 as the usual overbought and oversold lines. StockCharts groups it with the leading indicators, which give earlier signals and more false ones.
  • MACD is a centered oscillator with no limits. StockCharts calls it both lagging and leading: the moving averages lag, while the gap between them measures momentum.

Three ways traders combine them:

  1. MACD for trend context, RSI inside it. Use the MACD zero line as a rough trend read, then read RSI within that trend. StockCharts cites the analyst Constance Brown: RSI tends to stay between 40 and 90 in an uptrend and between 10 and 60 in a downtrend.
  2. Look for agreement. StockCharts notes that some traders use an RSI cross of its 50 line to confirm a divergence or an overbought or oversold signal. A similar idea is to check whether RSI is above 50 when MACD makes a bullish crossover. That is our example, not a StockCharts rule. In a MACD example, StockCharts also says that waiting for a series of signals can help avoid whipsaws and false signals, but the entry comes later.
  3. Check divergences on both. A new price high with lower highs on both MACD and RSI shows slowing momentum on both.

Both indicators come from the same closing prices. When they agree, that is the same price history read two ways, not two independent pieces of evidence. For the RSI side, see our guide to RSI in crypto trading.

MACD settings for day trading and swing trading

There is no separate official setting for day trading or swing trading. 12, 26 and 9 are the typical settings, and the lengths count candles, not hours, so pick a candle size first and then see how much time 26 candles cover. A 26-period EMA spans about two hours of 5-minute candles, about four days of 4-hour candles, and 26 days of daily candles.

StockCharts describes the trade-off when you change the lengths. Shorter lengths give earlier signals and more false ones. Longer lengths give fewer false signals, but later. As one example, StockCharts says MACD(5,35,5) is more sensitive than MACD(12,26,9) and might suit weekly charts.

Where does MACD fail?

  • It lags. MACD is built from moving averages, and StockCharts notes that moving averages lag price. By the time a crossover appears, part of the move has often happened, as in the example above.
  • Sideways markets. Fidelity warns that MACD whipsaws during trading ranges, with the MACD line crossing its signal line again and again.
  • No overbought or oversold levels. MACD has no upper or lower limit, and StockCharts notes that during sharp moves it can go past its past extremes.
  • Numbers differ between apps. StockCharts explains that each EMA value depends on all the candles before it, so the values depend on how much history the app starts from. TradingView also lets you switch MACD's averages from EMA to simple moving averages.

MACD can be one input, with price, the trend and your own exit plan. It is not a trading system on its own.

How can you practise reading MACD without risking money?

  1. Watch before you act. Scroll back on a chart and mark every signal line crossover. Count how many were followed by a real move and how many reversed within a few candles, in a trend and in a sideways stretch.
  2. Put RSI next to it. Note when MACD and RSI agreed, when they did not, and what price did next.
  3. Test it with virtual money. To see how it feels to act on a MACD signal, use a paper trading account. Our guide on whether paper trading is realistic explains what practice can and cannot teach you.

How to use MACD on Cryptathon

Cryptathon is our app: a crypto futures paper trading game on Android and in the browser. All money is virtual and nothing can be withdrawn. New players start with 10,000 virtual USDT and trade BTC, ETH and SOL perpetual futures.

  • Where to find it. Open the chart, tap the Indicators button and add MACD under "Below price". It shows in a strip under the chart with the MACD line, the signal line, the histogram and a guide line at 0.
  • Settings. The defaults are fast 12, slow 26 and signal 9, and each length can be set from 2 to 200. If you set fast equal to or above slow, the app puts both back to 12 and 26.
  • Saved for each coin. Indicator settings are saved per coin, so your BTC chart can keep different settings from your SOL chart.
  • MACD alerts. Set an alert for when MACD "Crosses above signal" or "Crosses below signal" on 5m, 15m, 30m, 1h, 4h or 1d candles. The check runs when a candle closes, and the alert fires once. You can have up to 10 active alerts at a time, price and indicator alerts together.
  • Other indicators. The same menu has RSI, so you can put MACD and RSI on one chart, plus Moving average, Exponential MA, Bollinger Bands, SuperTrend, Ichimoku Cloud, Stochastic and ATR.

Try it in Cryptathon on Google Play or in your browser. Set a MACD crossover alert on a 1h chart, and when it fires, check RSI and watch what price does over the next few candles.

Sources

Frequently asked questions

What is MACD in crypto?

MACD, Moving Average Convergence Divergence, is a momentum indicator that shows the gap between the 12-period and 26-period exponential moving averages of the closing price, with a 9-period signal line and a histogram. Gerald Appel developed it in the late 1970s, and it is calculated on crypto charts the same way as on any other market.

What do MACD crossovers mean?

A bullish crossover is when the MACD line crosses above its signal line and a bearish crossover is when it crosses below, which traders read as momentum turning up or down. Neither is a promise, and crossovers give many false signals in sideways markets.

What are the best MACD settings for crypto?

There is no single best setting. 12, 26 and 9 are the typical settings; shorter lengths give earlier signals and more false ones, and longer lengths give fewer false signals that come later.

Is MACD better than RSI?

Neither is better; they measure different things. RSI scores recent up and down moves on a fixed 0 to 100 scale with overbought and oversold levels, while MACD shows the gap between two moving averages with no fixed limits and is not built to show overbought or oversold levels.

Does MACD lag?

Yes. MACD is built from moving averages of past closing prices, so its crossovers often come after part of the move has happened, which is why Thomas Aspray added the histogram to help anticipate them.

Can I practise MACD without real money?

Yes. In Cryptathon you can add MACD and RSI to BTC, ETH and SOL charts, set MACD crossover alerts, and trade with virtual USDT. All money in Cryptathon is virtual and nothing can be withdrawn.

Ask an AI about Cryptathon

Read it here.
Try it there.

Try what you learned on a live order book,
with virtual money and zero risk.