MACD with a four-colour histogram

MACD Enhanced
Indicator

MomentumSeparate panelFree on ChartLabs

MACD Enhanced is the 12-bar average of the close minus the 26-bar average, a 9-bar signal, and a four-colour histogram of the gap.

Created by Gerald Appel, 1979. Reviewed by the ChartLabs team, updated Nov 2026.

Example market1hIndicatorsAtlas AIMACD Enhancedchartlabs.co/charts
Atlas reads it

MACD is below Signal (-1290.915).

MACD -1290.915 · Signal -1040.141 · Histogram -250.774

Atlas reads it

MACD is below Signal (-1290.915).

MACD -1290.915 · Signal -1040.141 · Histogram -250.774

Illustration on simulated data.

MACD with a four-colour histogramWhat is the MACD Enhanced indicator?

Gerald Appel's MACD is the 12-bar exponential average of the close minus the 26-bar average. A 9-bar average of that gap is the signal, and the histogram is the gap minus the signal. He set out the method in The Moving Average Convergence-Divergence Trading Method (1979).

The 12-bar length is fixed. You can change the slow length (26) and the signal length (9). Every average is seeded with the first value, so on record 0 the two price averages equal the close, MACD is 0, the signal is 0 and the histogram is 0. A close of 10 then 12 gives a MACD of about 0.1595, a signal of about 0.0319 and a histogram of about 0.1276. At the panel's 3 decimals those read 0.160, 0.032 and 0.128.

The MACD line is #2196F3 at 2 px and the signal is #FF9800 at 1 px. The histogram's base swatch is #26a69a. Each column then takes one of four colours: #00897b above zero and rising, #80cbc4 above zero and not rising, #c62828 at or below zero and falling, #ef9a9a at or below zero and not falling. A missing previous column counts as 0, so the second bar of the example, rising through zero, is #00897b.

Fast length stays 12

There is no input for it. Changing the slow length does not change the 12.

Record 0 is zero

Both price averages start at the first close, so their gap is 0 and the signal of that 0 is 0.

MACD Enhanced signalsFive patterns to know.

1Bullish lean

MACD above the signal

The histogram is positive. The gap is wider than its own average, on the up side.

2Bearish lean

MACD under the signal

The histogram is negative.

3Inconclusive

MACD crossing the signal

The histogram has just changed sign. One cross is not a completed trend.

4Bullish lean

Histogram rising above zero

The column is #00897b. The gap is positive and larger than the column before it.

5Bearish lean

Histogram falling below zero

The column is #c62828. The gap is at or below zero and lower than the column before it.

MACD Enhanced formulaHow it is calculated.

MACD=EMA(12)−EMA(26)
STEP 1

Subtract the averages

EMA 12 of the close minus EMA 26 of the close. Both seed on the first close. The 12 does not change.

STEP 2

Smooth the gap

The signal is an EMA 9 of that MACD, also seeded with its first value. Record 0 is 0, 0 and 0.

STEP 3

Colour the difference

The histogram is MACD minus the signal. From a close of 10 to a close of 12 it is about 0.1276, and that rising positive column is #00897b.

MACD Enhanced settingsEvery setting, explained.

SettingDefaultRangeWhat it changes
Slow length261 to 5,000The longer price average. The Signal lens changes this.
Signal length91 to 5,000The average of the MACD line.
SourceCloseAny price, or volumeThe series both price averages use.
Fast length12FixedThe shorter price average. It is not an input.
LinesMACD #2196F3 at 2 px, signal #FF9800 at 1 pxFixedOwn panel, 3 decimals.
Histogram#26a69a, then #00897b, #80cbc4, #c62828, #ef9a9aFixedBase swatch, then rising above zero, not rising above zero, falling at or below zero, not falling at or below zero.
Setting
Slow length
Default
26
Range
1 to 5,000
What it changes
The longer price average. The Signal lens changes this.
Setting
Signal length
Default
9
Range
1 to 5,000
What it changes
The average of the MACD line.
Setting
Source
Default
Close
Range
Any price, or volume
What it changes
The series both price averages use.
Setting
Fast length
Default
12
Range
Fixed
What it changes
The shorter price average. It is not an input.
Setting
Lines
Default
MACD #2196F3 at 2 px, signal #FF9800 at 1 px
Range
Fixed
What it changes
Own panel, 3 decimals.
Setting
Histogram
Default
#26a69a, then #00897b, #80cbc4, #c62828, #ef9a9a
Range
Fixed
What it changes
Base swatch, then rising above zero, not rising above zero, falling at or below zero, not falling at or below zero.
2610 bars in the slow average
70,20866,82563,44360,06164,803.7

Drag to see how the setting changes the lines and how many signals you get. Illustration on simulated data.

MACD Enhanced strategiesUse it in 3 setups.

MACD crossing above the signal

IfMACDcrosses abovethe signal

The histogram has turned positive. Traders often want that cross above zero as well, which is a stronger stretch of the same gap. The cross is still a description of the two averages.

MACD crossing under the signal

IfMACDcrosses underthe signal

The histogram has turned negative. It does not name a price target.

A rising positive column

Whilethe column is#00897b

The gap is above zero and wider than the bar before. A #80cbc4 column is still positive, but it is no longer growing.

Test a rule in the Strategy TesterFree with 1 year of history. Past results do not guarantee future results.

MACD Enhanced mistakesCommon mistakes.

Looking for a fast-length input

The 12 is fixed. The inputs are the slow length, the signal length and the source.

Reading the histogram as MACD

The histogram is the gap between MACD and the signal. MACD itself is the blue line.

Treating record 0 as a cross

All three values are 0 because both averages equal the first close. It is a seed, not a signal cross.

MACD Enhanced combinationsPair it with these.

MACD Enhanced FAQQuestions traders ask.

What are the MACD Enhanced settings?

Slow length 26, signal length 9, source close. The fast length is 12 and it is not an input.

What is the two-bar example?

Close 10, then 12. Record 0 is 0, 0 and 0. The second bar is a MACD of about 0.1595, a signal of about 0.0319 and a histogram of about 0.1276. At 3 decimals: 0.160, 0.032 and 0.128.

Why is the second histogram #00897b?

It is above zero and higher than the previous column, which counts as 0. That is the rising-above-zero colour.

What are the four histogram colours?

#00897b above zero and rising, #80cbc4 above zero and not rising, #c62828 at or below zero and falling, #ef9a9a at or below zero and not falling. The column's base swatch is #26a69a.

How is this different from the MACD indicator?

Same 12, 26 and 9 construction. This one seeds every average with the first value, so it plots from the first bar. The MACD page waits for a simple-average seed, and its histogram colours differ.

Can I change the 12?

No. Only the slow length, the signal length and the source are inputs.

Does it repaint?

No. A closed bar's source stays. The live bar can still move all three plots until it closes.

Who created MACD?

Gerald Appel, The Moving Average Convergence-Divergence Trading Method (1979).

Related indicatorsMore momentum tools.

All momentum indicators

Try MACD Enhanced on a live chart.
Free. No download.

Works in your browser and on iPhone too.

Example market1h
MACD+