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...
开源脚本
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
免责声明
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.
开源脚本
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
免责声明
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.