OPEN-SOURCE SCRIPT

MacD Convergence/Divergence

Updated
I made this script to get a line (or histogram) of the macd and the signal (macd + signal), the principle remains the same as with a standard macd. You can notice that the divergences are present, and that the interpretation does not change, personally, I use ema band, which helps me to confirm the tendencies and to detect divergences!
Release Notes
Update from version 3 to 11, the others were only tests
Addition: 4 distinct colors when the indicator passes above or below line 0
Moving Average Convergence / Divergence (MACD)

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