OPEN-SOURCE SCRIPT

MACD Histogram/Area

It´s just the histogram of the MACD. (Actually it´s not a histogram, I like the Area visualisation more. But you can switch.)

When I´m using the MACD, I´m just searching for a divergence between Price and the MACD-histogram. I´m not interested in the MACD-signalline or the MACD-line in any way. As you can see, The omission of them leads to better visualisation. It´s much easier to spot a divergence. On the one hand because that way the histogram scales bigger, on the other hand becauce the lines can´t overdraw the histogram.
Rules bullish Divergence: Price makes a lower low, oscillator makes higher low.
Rules bearish Divergence: Price makes a higher high, oscillator makes lower high.
Centered Oscillatorsmacddivergence

Open-source script

In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in publication is governed by House rules. You can favorite it to use it on a chart.

Want to use this script on a chart?

Disclaimer