OPEN-SOURCE SCRIPT

MACD Divergence H/R

7166
Here's a fun script we been working on, let us know what you add!

Short-Forms Used
histogram(hist)--> value of macd Histogram
Low-Price--------> Candle's Low Price
High-Price-------> Candle's High Price
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
-Regular_bulls =====> Lowest(red hist) in Previous red hists is > Lowest(red hist) in Current red hists
and Lowest(Low-price) in Previous red hists is < Lowest(Low-price) in Current red hists
and Lowest(red hist) in Previous red hists is < -Histograms Minimum Value Required
and Lowest(red hist) in Current red hists is < -Histograms Minimum Value Required

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
-Hidden_bulls =====> Lowest(red hist) in Previous red hists is < Lowest(red hist) in Current red hists
and Lowest(Low-price) in Previous red hists is > Lowest(Low-price) in Current red hists
and Lowest(red hist) in Previous red hists is < -Histograms Minimum Value Required
and Lowest(red hist) in Current red hists is < -Histograms Minimum Value Required


-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

-Regular_Bears =====> Highest(Green hist) in Previous Green hists is < Highest(Green hist) in Current Green hists
and Highest(High-price) in Previous Green hists is > Highest(High-price) in Current Green hists
and Highest(Green hist) in Previous Green hists is > Histograms Minimum Value Required
and Highest(Green hist) in Current Green hists is > Histograms Minimum Value Required

--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
-Hidden_Bears =====> Highest(Green hist) in Previous Green hists is > Highest(Green hist) in Current Green hists
and Highest(High-price) in Previous Green hists is < Highest(High-price) in Current Green hists
and Highest(Green hist) in Previous Green hists is > Histograms Minimum Value Required
and Highest(Green hist) in Current Green hists is > Histograms Minimum Value Required

Please drop a like and comment :)

-Angel Algo

Disclaimer

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.