OPEN-SOURCE SCRIPT
Pivot Points High Low Duo

Here is the Pivot High Low Duo script for Tradingview.
This is just an extension of the built-in Pivot Points High Low script.
Here it plots both 10-period & 20-period pivots in one script. All 20-period pivots will be 10-period pivots, so it avoids some clutter. Additionally, there is an option to show only the 10-period, or the 20-period pivots.
The basic concept is that if the high (or the low) is not crossed for next 20 bars, then the 20-period (or the 10-period) pivot high (or low) is formed.
I found these helpful in determining major price points, swing highs, & drawing horizontal lines for base counting.
This is just an extension of the built-in Pivot Points High Low script.
Here it plots both 10-period & 20-period pivots in one script. All 20-period pivots will be 10-period pivots, so it avoids some clutter. Additionally, there is an option to show only the 10-period, or the 20-period pivots.
The basic concept is that if the high (or the low) is not crossed for next 20 bars, then the 20-period (or the 10-period) pivot high (or low) is formed.
I found these helpful in determining major price points, swing highs, & drawing horizontal lines for base counting.
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.