OPEN-SOURCE SCRIPT

Moving Average Convergence Divergence

A MACD with option for logarithmic or regular scale.

This indicator presents bullish or bearish 'flags' based on the most recent signal cross and asset price divergence. If the price moves up and the macd continues trending down, a bearish divergence is flagged. if the price moves down and the macd continues moving up, a bullish divergence is flagged.
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