OPEN-SOURCE SCRIPT
MACD Divergence with alerts

I got chat gpt to make the default MACD indicator visualy show when a divergence occurs on the chart. And you can have alerts when this happens.
The way it works is it just checks to see if the high/low (green candle followed by red candle) histogram is higher or lower then current price histogram.
Although not 100 percent accurate. I've been using without any problems for awhile and thought i should share it.
Have fun...
The way it works is it just checks to see if the high/low (green candle followed by red candle) histogram is higher or lower then current price histogram.
Although not 100 percent accurate. I've been using without any problems for awhile and thought i should share it.
Have fun...
Script open-source
Dans l'esprit TradingView, le créateur de ce script l'a rendu open source afin que les traders puissent examiner et vérifier ses fonctionnalités. Bravo à l'auteur! Bien que vous puissiez l'utiliser gratuitement, n'oubliez pas que la republication du code est soumise à nos Règles.
Clause de non-responsabilité
Les informations et publications ne sont pas destinées à être, et ne constituent pas, des conseils ou recommandations financiers, d'investissement, de trading ou autres fournis ou approuvés par TradingView. Pour en savoir plus, consultez les Conditions d'utilisation.
Script open-source
Dans l'esprit TradingView, le créateur de ce script l'a rendu open source afin que les traders puissent examiner et vérifier ses fonctionnalités. Bravo à l'auteur! Bien que vous puissiez l'utiliser gratuitement, n'oubliez pas que la republication du code est soumise à nos Règles.
Clause de non-responsabilité
Les informations et publications ne sont pas destinées à être, et ne constituent pas, des conseils ou recommandations financiers, d'investissement, de trading ou autres fournis ou approuvés par TradingView. Pour en savoir plus, consultez les Conditions d'utilisation.