OPEN-SOURCE SCRIPT
Strong Pivots

This finds pivots based on your inputs (number of candles back and forward that are above or below the range of the potential pivot points) and then optionally changes the color to help you visually identify the pivot. You can also specify pivots as strong pivots if they reverse in 1 time segment beyond a certain percentage (wick % of full candle range).
For example, if the pivot is at a high point but has a green body candle and a wick > 35% of the candle, it will change the body color to red to help visually understand that the candle can be considered a strong part of the downtrend, regardless of it closing green. This will help your mind interpret the top pivot candle as part of the potential trend reversal for the following candles and could even be used as part of your strategy ruleset.
For example, if the pivot is at a high point but has a green body candle and a wick > 35% of the candle, it will change the body color to red to help visually understand that the candle can be considered a strong part of the downtrend, regardless of it closing green. This will help your mind interpret the top pivot candle as part of the potential trend reversal for the following candles and could even be used as part of your strategy ruleset.
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.
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.
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.