2-Line MACD for MT4: The Setup US Day Traders Actually Use (2026)

- The MACD built into MetaTrader 4 is not the classic MACD. Its histogram bars ARE the MACD line, and the only true line is the signal line. The classic 2-line version plots both lines and uses the histogram for the gap between them.
- MT4 also smooths the signal line with a simple moving average instead of the original exponential one, so the two versions fire on slightly different candles.
- On a 2-line MACD, a crossover is a clean intersection of two lines, echoed by the histogram flipping through zero. On the default MT4 version you have to spot a line slicing through bars, which is easy to misread.
- The standard settings are 12, 26, 9, still the right starting point in 2026. A free custom “2-line MACD” indicator gets you the classic display in about two minutes.
The 2-line MACD is a version of the Moving Average Convergence Divergence indicator that plots both the MACD line and the signal line as two separate, crossing lines, the way Gerald Appel originally designed it. The MACD built into MetaTrader 4 does not do this. It draws one line and a histogram, and the histogram is not what most tutorials say it is. That quiet difference is why so many traders search for a “2 line MACD indicator MT4”: the tool on their chart does not match the tool in their trading book. This guide explains what MT4 changed, how the signals differ, and how to get the classic version on your platform.
Why Does the Default MT4 MACD Only Show One Line?

Open a fresh MT4 chart, go to Insert, then Indicators, then Oscillators, and attach MACD. You get grey histogram bars and a single red dotted line. Most traders assume the bars are “the histogram” from the textbooks and the red line is the MACD line. Both assumptions are wrong.
In the MT4 version, the histogram bars are the MACD line itself, drawn as bars instead of a line. The MACD line is the 12-period exponential moving average of price minus the 26-period one. MT4 computes that number correctly, then renders it as a bar per candle. The red dotted line is the signal line, a 9-period average of those bars.
So the default indicator is not broken, and it is not missing data. It is missing a presentation. The classic display, the one you see in Investopedia’s MACD definition and on almost every other charting platform, shows both lines as lines, with the histogram reserved for the distance between them. MT4 collapsed that into one line plus bars back in the early 2000s and never changed it. MetaTrader 5 ships the same one-line style, so upgrading platforms does not fix it.
There is a second, sneakier difference. Appel’s original formula smooths the signal line with an exponential moving average. MT4 uses a simple moving average instead, which the platform’s own MetaTrader 4 documentation confirms. The two signal lines therefore sit at slightly different values and cross on slightly different candles. If a MACD strategy you tested on TradingView behaves differently on MT4, this is usually why.
What Is the Difference Between the MT4 MACD and the Classic 2-Line MACD?
Here is the full comparison. Read the histogram row twice, because it changes how you interpret every signal.
| Element | Default MT4 MACD | Classic 2-line MACD |
|---|---|---|
| MACD line (12 EMA minus 26 EMA) | Drawn as histogram bars | Drawn as a line |
| Signal line | 9-period SMA of the MACD value, drawn as a dotted line | 9-period EMA of the MACD line, drawn as a second line |
| Histogram | Does not exist as a separate element | MACD line minus signal line, drawn as bars |
| Crossover appearance | Dotted line cuts through the bars | Two lines visibly cross |
| Histogram reads zero when | MACD value itself is zero (the 12 and 26 EMAs are equal) | The two lines cross |
| Matches textbooks and TradingView | No | Yes |
The practical consequence sits in that fifth row. On the classic version, the histogram touching zero and the lines crossing are the same moment, so shrinking bars warn you a crossover is near. On MT4’s version, bars touching zero mean something entirely different: the two price EMAs are equal, a zero-line event, not a crossover. Traders who learned MACD from a book and apply the book’s histogram rules to MT4’s bars are reading the wrong signal without knowing it. For the broader picture of how oscillators fit into a chart, my plain-English guide to how Forex indicators actually work covers the four indicator families and where MACD sits among them.
How Do the Signals Change With Two Lines?
MACD gives three kinds of signals. The math barely changes between displays, but how quickly your eye catches each event changes a lot.
Signal line crossovers
This is the bread-and-butter MACD signal. When the MACD line crosses above the signal line, momentum is tilting up; below, it is tilting down. On a 2-line display this is an unmistakable X on the chart. On the default MT4 display the same event is the dotted line passing through the tops of the bars, which is genuinely hard to pinpoint when the two hover near each other for several candles.
Zero-line crossings
When the MACD line crosses zero, the 12 EMA has crossed the 26 EMA on the price chart, a slower trend-shift signal. Both displays show this fine: bars flipping across the zero line on MT4, the MACD line crossing the middle of the window on the classic version.
Histogram flips
Here the two versions genuinely part ways. On the classic display, the histogram measures the gap between the lines, so bars that peak and start shrinking tell you a crossover may be a few candles away. That “fading momentum” read is one of the most useful things MACD does, and the default MT4 indicator cannot show it, because its bars measure something else. This is the strongest argument for installing the 2-line version.
What Are the Right Settings for a 2-Line MACD in 2026?

The standard is 12, 26, 9: a 12-period fast EMA, a 26-period slow EMA, and a 9-period signal line. Those numbers come from Appel’s work in the late 1970s, when 12 and 26 approximated two weeks and one month of six-day trading. The market week changed, the settings never did, and they never needed to. They remain the defaults on every platform in 2026 because they balance responsiveness and noise about as well as any alternative.
Faster variants exist. Some intraday traders run 5, 35, 5 for earlier signals. Every step faster buys earlier entries and pays with more false crossovers. My advice after two decades of watching people fiddle: change the timeframe before you change the settings. A 12, 26, 9 MACD on the 1-hour chart is faster than the same MACD on the 4-hour, and you keep trading the numbers everyone else is watching. If you like pairing MACD with a second momentum gauge, my piece on RSI settings for Forex follows the same keep-it-standard logic.
How Do You Read Divergence With Two Lines?
Divergence is where the 2-line display earns its keep. The read: price makes a higher high, but the MACD line makes a lower high. Momentum did not confirm the new price extreme, which warns that the move is running on fumes. Bearish divergence is that pattern at highs; bullish divergence is the mirror image at lows, price printing a lower low while the MACD line prints a higher low.
Two lines make this read cleaner because you draw divergence on the MACD line’s swing points, and on the classic display those swings are sharp, connectable peaks. On the default MT4 display you are comparing the heights of bar clusters, which strains the eye, and borderline divergences get missed. The classic histogram also works as a second witness: divergence between price and the histogram peaks often shows up a little earlier than on the line itself, at the cost of more false alarms.
Two honest warnings. First, divergence is a warning, not an entry. A strong trend can print three or four consecutive divergences while the move keeps going, and traders who short every one get carried out. Wait for a confirming event, like the crossover that usually follows. Second, measure divergence on closed candles only, since the current bar’s MACD value moves until the candle closes. I wrote a full walkthrough, with chart examples and the tool I use to spot these automatically, in my MACD divergence indicator guide.
How Do You Get a 2-Line MACD on MT4?

MT4 will not draw the classic display out of the box, but the fix takes minutes. You have two routes.
The first route is a custom indicator. Search for a “2-line MACD” or “MACD True” file, free .mq4 or .ex4 downloads that recreate Appel’s original: two EMA-based lines plus a true histogram of their difference. Installation is the standard drill: File, then Open Data Folder, drop the file into MQL4 and then Indicators, restart the terminal, find it under Custom Indicators in the Navigator. If that sounds unfamiliar, my step-by-step on how to install an MT4 indicator covers every click, including the folder mistakes that make an indicator silently fail to appear.
The second route is building it from parts. Attach the default MACD, then drag a Moving Average onto the MACD subwindow, set it to apply to “First Indicator’s Data” with period 9 and method Exponential. You now have an EMA signal line over the bars, free, but still no true histogram, so I treat it as a stopgap.
Whichever route you take, test the file on a demo chart and confirm it does not repaint, meaning its plotted history stays fixed after candles close. A properly coded MACD never repaints, but sloppy custom files exist. For more vetted tools on this platform, my roundup of the best MT4 Forex indicators only includes indicators I have run myself.
Alan’s Settings I Actually Run
People ask, so here is the honest answer, not a menu of options.
- Settings: 12, 26, 9. I have tested faster combinations on and off since the early 2000s and always come back. The standard settings are what the crowd watches, and with momentum tools that matters.
- Timeframes: H4 and daily for the real decisions, H1 only for entry timing. I take no MACD signals below H1. On M5 and M15 the crossovers are mostly noise wearing a suit.
- What I act on: signal-line crossovers only when they agree with the higher-timeframe trend, and divergence only as a reason to tighten a stop or skip a late entry, never as a standalone reversal trade.
- What I ignore: zero-line crosses as entries. By the time the 12 EMA crosses the 26, the move is usually mature. The zero line is my filter instead: above it I prefer longs, below it shorts.
- The stack around it: MACD is my momentum read, one piece of a three-part stack with a trend filter and an ATR-based stop. If you want to see how those pieces fit together without doubling up, my guide to Forex indicator combinations that do not overlap lays out the logic.
Where the 2-Line MACD Fails
Every indicator page owes you this section, and most skip it. Here is where this tool will hurt you.
Ranging markets chew it up. MACD is built from moving averages, and moving averages hate sideways price. In a range, the two lines hug each other and cross back and forth constantly, each cross looking like a signal and meaning nothing. When the market goes sideways, the honest move is to stop taking MACD crossovers until it breaks out.
It lags, always. Both lines come from EMAs of past price, so every signal arrives after the move has started. On higher timeframes that is tolerable. On low timeframes the lag can be most of the move. No setting removes this; settings only trade lag for noise.
Divergence fails in strong trends. A trending market can print divergence after divergence while price grinds on. Divergence says momentum is fading, not that price must reverse, and the gap between those two statements is where accounts get damaged.
It says nothing about volatility or risk. MACD will not tell you where your stop belongs or whether the current swing makes the trade worth taking. It answers one question, momentum, and needs teammates for the rest.
Frequently Asked Questions
Why does the MT4 MACD only have one line?
Because MetaTrader 4 draws the MACD line itself as histogram bars, leaving the signal line as the only visible line. The data is all there, but the classic presentation, two crossing lines plus a histogram of their difference, was collapsed into one line plus bars. MT4 also smooths its signal line with a simple moving average rather than the original exponential one, so values differ slightly from other platforms.
Is the 2-line MACD better than the default MT4 version?
For readability, yes. The momentum math is nearly identical, but the 2-line display makes crossovers obvious, restores the true histogram so you can watch momentum fade before a cross, and makes divergence far easier to draw. The default version hides the crossover inside a line-through-bars picture, and its histogram measures something different from what the textbooks describe. Same engine, clearer dashboard.
What are the best settings for a 2-line MACD indicator?
Start with 12, 26, 9 and be slow to leave it. Those defaults have survived five decades because they balance signal speed against noise well, and they are the values most other traders watch. If you need faster signals, drop to a lower timeframe with the same settings before shrinking the numbers, and test any change on a demo account first.
Does the 2-line MACD repaint?
A correctly coded MACD never repaints, because every value is calculated from candles that have already closed. The only bar that moves is the current, unclosed one, which is normal for any indicator. Badly written custom files do exist, though, so test any download on a demo chart and confirm its plotted history stays fixed after candles close before trusting a signal from it.
Want a clean indicator to install right now?
It is my own enhanced DeMARK Trend Line indicator for MetaTrader 4 and 5. Non repaint, clean, and free.
{“@context”:”https://schema.org”,”@type”:”FAQPage”,”mainEntity”:[{“@type”:”Question”,”name”:”Why does the MT4 MACD only have one line?”,”acceptedAnswer”:{“@type”:”Answer”,”text”:”Because MetaTrader 4 draws the MACD line itself as histogram bars, leaving the signal line as the only visible line. The data is all there, but the classic presentation, two crossing lines plus a histogram of their difference, was collapsed into one line plus bars. MT4 also smooths its signal line with a simple moving average rather than the original exponential one, so values differ slightly from other platforms.”}},{“@type”:”Question”,”name”:”Is the 2-line MACD better than the default MT4 version?”,”acceptedAnswer”:{“@type”:”Answer”,”text”:”For readability, yes. The momentum math is nearly identical, but the 2-line display makes crossovers obvious, restores the true histogram so you can watch momentum fade before a cross, and makes divergence far easier to draw. The default version hides the crossover inside a line-through-bars picture, and its histogram measures something different from what the textbooks describe. Same engine, clearer dashboard.”}},{“@type”:”Question”,”name”:”What are the best settings for a 2-line MACD indicator?”,”acceptedAnswer”:{“@type”:”Answer”,”text”:”Start with 12, 26, 9 and be slow to leave it. Those defaults have survived five decades because they balance signal speed against noise well, and they are the values most other traders watch. If you need faster signals, drop to a lower timeframe with the same settings before shrinking the numbers, and test any change on a demo account first.”}},{“@type”:”Question”,”name”:”Does the 2-line MACD repaint?”,”acceptedAnswer”:{“@type”:”Answer”,”text”:”A correctly coded MACD never repaints, because every value is calculated from candles that have already closed. The only bar that moves is the current, unclosed one, which is normal for any indicator. Badly written custom files do exist, though, so test any download on a demo chart and confirm its plotted history stays fixed after candles close before trusting a signal from it.”}}]}


Installed a MACD True file after reading this and the crossovers are so much easier to see. Appreciate the folder walkthrough link.
Thanks for the honest section on where it fails. Most sites just pump the tool like it never gives a bad signal.
Does the moving average trick with First Indicator’s Data work on MT5 too? Cant find the option in my terminal.
Wow. I traded MACD on MT4 for two years and never knew the bars were the actual MACD line. Explains a lot of confusion with the youtube tutorials I watched.