The MACD indicator (moving average convergence divergence) is the gap between a fast and a slow moving average of the price, drawn as a line that swings above and below zero, with a slower signal line and a histogram beside it. It shows the direction of a trend and whether its momentum is growing or fading. Crossovers and divergences are its main signals, but because it is built from past prices it often reacts late and gives false signals in sideways markets, so it works better inside a plan with a stop loss than on its own.
In brief
- The MACD indicator subtracts a 26-period exponential moving average from a 12-period one, and a 9-period average of that line forms the signal line.
- A MACD line crossing above its signal line is often read as bullish, and a cross below as bearish, while the zero line shows which average is on top.
- The histogram shows the distance between the two lines, so shrinking bars suggest a move is losing momentum before the lines actually cross.
- In a Bitcoin backtest from December 2018 to November 2025, a plain hourly MACD rule returned 4.6% a year, against an average of over 60% for simply holding Bitcoin.
- Because the MACD follows the price with a delay, it tends to work better as a trend filter inside a tested plan than as a buy or sell signal on its own.

In this article · 12 min read
- What the MACD indicator is
- How to read the MACD indicator, step by step
- What the evidence says about MACD trading
- Using the MACD in crypto
- Advantages and limits of the MACD
- Where this fits: indicators, plans and automation
- How to start with the MACD indicator
- Checklist before acting on a MACD signal
- Who it is for
- Key terms
- Frequently asked questions
- Sources
What the MACD indicator is
StockCharts' ChartSchool sums it up in one line: the MACD turns two trend-following indicators, moving averages, into a momentum oscillator. It was developed by Gerald Appel in the late 1970s, and IG's glossary describes it as a technical analysis indicator that aims to identify changes in an asset's momentum.
A few words come up again and again:
- A moving average is the average closing price over the last few periods, recalculated at every new candle so that it "moves" with the chart.
- An exponential moving average (EMA) gives more weight to the most recent prices, so it reacts faster than a simple average.
- Momentum is the speed of a price move: a market that rises faster and faster has growing upward momentum.
The three parts and how they are calculated
You will rarely need to calculate the MACD by hand, because charting tools do it, but knowing the recipe explains how it behaves. With the standard settings of 12, 26 and 9:
- MACD line = 12-period EMA − 26-period EMA. When the fast average is above the slow one, the line is positive; when it is below, negative.
- Signal line = a 9-period EMA of the MACD line itself. It is smoother and slower.
- Histogram = MACD line − signal line, drawn as bars around zero.
A quick example with round numbers: if the 12-period EMA of a coin is 105 and the 26-period EMA is 102, the MACD line is 3. If the signal line is 2.4, the histogram bar is 0.6. If, over the next days, the MACD line slips to 2.6 while the signal line climbs to 2.5, the bar shrinks to 0.1: the two lines are converging and upward momentum is fading.
One detail matters for crypto. ChartSchool points out that the MACD is unbounded and expressed in the price of the asset, so it is not useful for spotting overbought or oversold levels, and its values cannot be compared between assets with different prices.
How to read the MACD indicator, step by step

- Start from the trend and the zero line. Above zero, the fast average is over the slow one, which many traders read as an uptrend; below zero, a downtrend. A crossing of the zero line is called a centreline crossover. Our guide to moving average trading explains the averages behind it.
- Watch the signal line crossovers. ChartSchool describes a bullish crossover as the MACD turning up and crossing above the signal line, and a bearish one as the opposite. Many traders take crossovers only in the direction of the larger trend.
- Read the histogram. Growing bars mean the gap between the lines is widening and momentum is building; shrinking bars mean it is fading. The histogram often turns before the lines cross, which gives an early warning, and also more false alarms.
- Look for divergences. A bearish divergence is a higher high in the price with a lower high in the MACD; a bullish one is a lower low in the price with a higher low in the MACD. Both suggest the move is losing strength, without saying when, or whether, it will turn.
- Plan the exit before the entry. Decide where the stop loss goes, where you would take profit and how much of your account is at risk on the trade.
| Signal | What happens on the chart | How it is often read | What to keep in mind |
|---|---|---|---|
| Signal line crossover | MACD line crosses its 9-period average | Above: bullish; below: bearish | Frequent, and many are false in a sideways market |
| Zero line crossover | MACD line changes sign | The fast average has crossed the slow one | Comes later than the signal line crossover |
| Histogram turning | Bars stop growing and shrink | Momentum is fading | An early warning, not a reversal |
| Divergence | Price and MACD disagree at a high or low | The move may be running out of steam | Can last a long time in a strong trend |
The MACD and the RSI indicator are often used together, because they look at momentum in different ways: the RSI moves on a fixed scale from 0 to 100, while the MACD has no upper or lower limit and is better at showing the direction and age of a trend.

What the evidence says about MACD trading
A peer-reviewed study by Terence Tai-Leung Chong, Wing-Kam Ng and Venus Khim-Sen Liew, Revisiting the Performance of MACD and RSI Oscillators, published in the Journal of Risk and Financial Management in 2014, tested MACD rules on daily data of five large stock market indices from January 1976 to December 2002. The zero line rule, called MACD(12,26,0), beat buy and hold in two of the five indices, even after a 1% round-trip transaction cost. The classic signal line rule, MACD(12,26,9), showed no predictive power in most of them and lost money in one. The authors advise checking such rules on historical data before using them.
For crypto, a backtest published by Quantpedia on 13 November 2025, How to Design a Simple Multi-Timeframe Trend Strategy on Bitcoin, tested the MACD on Bitcoin from December 2018 to November 2025. A plain MACD rule on the hourly chart made 2,262 trades and returned 4.6% a year, with a Sharpe ratio (return per unit of risk) of 0.33 and a maximum drawdown, the largest fall from a peak, of 23.9%. Taking hourly trades only in the direction of the daily MACD trend cut the trades to about 1,000, lifted the annual return to 6.6% and the Sharpe ratio to 0.80, and reduced the maximum drawdown to 12.4%. Over the same period, holding Bitcoin returned an average of over 60% a year, with a maximum drawdown of nearly 80%.

These figures describe the past and one set of rules; other periods, coins or settings can give very different numbers. They do suggest that the raw signal is noisy and that a trend filter helped. In our experience, the most common mistake with this indicator is to act on every crossover on a short timeframe; in a sideways market the lines cross back and forth, and fees and small losses add up quickly.
In a press release dated 27 March 2018, the European Securities and Markets Authority (ESMA) reported that 74% to 89% of retail accounts typically lose money on contracts for difference (CFDs), which are leveraged products. CFDs are not spot crypto, but the figure is a reminder of how often frequent traders lose.
MACD Crossovers: Why Most Traders Get It Wrong (Joe Rabil, StockCharts TV) (in English)
Using the MACD in crypto
Crypto trades around the clock, so the 12, 26 and 9 periods of a daily MACD are calendar days, weekends included.
John Bax's view
In Lazy Investor, Smart Investor (see the book on Amazon), John Bax notes that large coins such as Bitcoin and Ethereum, with high trading volumes, tend to form more consistent price patterns, so technical analysis means more there. Small, thinly traded altcoins move erratically and chart indicators tell you little about them; for those he points to a different method, on-chain analysis of blockchain data.
For the MACD this is a practical filter: a crossover on a large, liquid coin is at least drawn from real, heavy trading, while the same pattern on a coin that trades a few thousand dollars a day can be pushed around by a few large orders. He also insists that a stop loss is always set, and that preset orders alone do not make a strategy work: position size, stops and realistic targets still decide the result.
Advantages and limits of the MACD
What the MACD does well
- Trend and momentum in one view. The side of zero shows the direction, the histogram shows whether the move is accelerating or slowing down.
- Clear, testable rules. Crossovers of the signal line or the zero line can be written as exact conditions and tested on past data.
- Works as a filter. As the Bitcoin backtest above suggests, a MACD on a longer timeframe can keep you on the side of the main trend while you time entries on a shorter one.
Where it falls short
- It lags. Every part of it is built from moving averages of past prices, so its signals arrive after the move has started, and sometimes when it is nearly over.
- False signals in sideways markets. When the price moves in a range, the lines cross repeatedly and each crossover can mean a small loss plus fees.
- No fixed scale. It cannot mark overbought or oversold levels, and its values cannot be compared between assets.
- Risk. A signal is not a promise. Trading on MACD crossovers can lose money quickly, especially with leverage, which multiplies losses as well as gains.
Where this fits: indicators, plans and automation
The MACD belongs inside a plan with a stop loss and a fixed risk per trade. Our guide to backtesting a trading strategy shows how to test a MACD rule on past data, fees included, before using real money.
Many automated tools use indicators such as the MACD; our page on how a crypto trading bot works explains the main families. Crypto Go Bot, which we built, takes another route: it follows the Smart Money on-chain rather than price indicators, runs on your own server and trades your own Kraken account, with the take profit and the stop loss placed as real orders on the exchange. Trading always carries risk, and past results do not guarantee future ones.
How to start with the MACD indicator
- Open a daily chart of a large, liquid coin such as Bitcoin and add the MACD with the default settings of 12, 26 and 9.
- Mark the past year: every signal line crossover, every zero line crossover and every clear divergence, then note what the price did in the following days, good signals and bad ones.
- Add one filter, for example taking signals only in the direction of the weekly MACD or of a long moving average.
- Write one rule with its entry, exit, stop loss and position size, and test it on past data with fees.
- If you go further, follow it on paper for a few weeks, then use a small amount you can afford to lose and record every trade.
Checklist before acting on a MACD signal
- I know the trend on a higher timeframe, and whether the market is trending or moving sideways.
- The crossover or divergence is confirmed on a closed candle, not in the middle of one.
- I know where my stop loss goes and how much I lose if it is hit.
- The amount is one I can afford to lose, because crypto is volatile and past results do not guarantee future ones.
Who it is for
The MACD suits many people who look at charts, in different ways.
- Beginner learning technical analysis: built from moving averages, it is a natural second indicator that shows trend and momentum in one panel.
- Swing trader holding positions for days or weeks: crossovers on the daily chart, filtered by the weekly trend, can help time entries within a plan with a stop loss and a fixed risk per trade.
- Long-term investor who buys regularly: a weekly MACD can put a sharp rise or fall into perspective, provided it does not turn a steady plan into frequent trading.
- User of an automated tool: knowing what a MACD rule does, and how often it misfires, helps you judge the strategies you read about, even if you never place a trade by hand.
Key terms
- Moving average convergence divergence (MACD): the gap between a 12-period and a 26-period exponential moving average, used to read trend and momentum.
- Signal line: a 9-period exponential moving average of the MACD line, used for crossovers.
- Histogram: bars showing the distance between the MACD line and the signal line.
- Exponential moving average (EMA): an average of past prices that gives more weight to the most recent ones.
- Divergence: a new high or low in the price that the indicator does not confirm, read as a sign of fading momentum.
- Maximum drawdown: the largest fall of an account or strategy from a peak to a later low.
Frequently asked questions
What are the best MACD indicator settings?
The standard 12, 26 and 9 are by far the most common, and they are what most traders watch. Faster settings give earlier signals and more false ones, slower settings fewer and later signals; any change should be tested on the asset you trade.
Is a MACD crossover a buy signal?
Not on its own. A crossover above the signal line shows that short-term momentum has turned up, but in a sideways market many crossovers fail, so traders usually check the larger trend, the price level and the risk before acting.
What does the MACD histogram show?
It shows the distance between the MACD line and the signal line. Growing bars mean momentum is increasing, shrinking bars that it is fading, often a little before the two lines cross.
Does the MACD work for crypto?
It can help on large, liquid coins, more in clear trends than in ranges. In a Bitcoin backtest from 2018 to 2025, a plain hourly MACD rule returned 4.6% a year, far less than holding Bitcoin over the same period.
Can I automate a MACD strategy?
Yes, because crossovers of the signal line and the zero line can be written as exact rules. Test the rule on past data with fees first, and remember that past results do not guarantee future ones.
Sources
- StockCharts ChartSchool, MACD (Moving Average Convergence/Divergence Oscillator)
- IG, What is MACD? Moving average convergence divergence
- Chong, Ng and Liew, Revisiting the Performance of MACD and RSI Oscillators, Journal of Risk and Financial Management 7(1), 2014
- Quantpedia, How to Design a Simple Multi-Timeframe Trend Strategy on Bitcoin, 13 November 2025
- ESMA, ESMA agrees to prohibit binary options and restrict CFDs to protect retail investors, 27 March 2018
- StockCharts TV, MACD Crossovers: Why Most Traders Get It Wrong, 2 July 2025
- Wikipedia, MACD



