OPEN-SOURCE SCRIPT
Updated Pullback by Candle Body

The Pullback Indicator version 0.2
Identifies pullbacks by checking if the current candle's body is lower than the previous candle's low for a bearish pullback or higher than the previous candle's high for a bullish pullback. Once a pullback has been identified, the Indicator marks the lowest low or highest high of the trend with a circle.
NOTE it's not fully working as expected as it lacks trend analysis in its code, resulting in it indicating pullbacks in the opposite direction of the trend, such as bullish pullbacks in a bullish trend or bearish pullbacks in a bearish trend. This is a work in progress, maybe it will be "improved" in the future.
Identifies pullbacks by checking if the current candle's body is lower than the previous candle's low for a bearish pullback or higher than the previous candle's high for a bullish pullback. Once a pullback has been identified, the Indicator marks the lowest low or highest high of the trend with a circle.
NOTE it's not fully working as expected as it lacks trend analysis in its code, resulting in it indicating pullbacks in the opposite direction of the trend, such as bullish pullbacks in a bullish trend or bearish pullbacks in a bearish trend. This is a work in progress, maybe it will be "improved" in the future.
Release Notes
TODO comments and name updateOpen-source script
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.
For quick access on a chart, add this script to your favorites — learn more here.
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.
Open-source script
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.
For quick access on a chart, add this script to your favorites — learn more here.
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.