OPEN-SOURCE SCRIPT
Updated Support Resistance - Dynamic v2 w/ Timeframe option

This script is a modification from the awesome "Support Resistance - Dynamic v2" by LonesomeTheBlue
https://tradingview.sweetlogin.com/script/va09eWAp-Support-Resistance-Dynamic-v2/
This script is very similar to the original indicator mentioned above, but with a modification that, in my opinion, would be very useful for many traders. It enables the option to choose different timeframe to calculate the S/R levels. Very often, traders would like to use higher timeframes to define S/R levels, rather than using the same timeframe that they are trading at. For example, if trading at 5min, we often use 15min, 30min or 1hr timeframe to define our S/R levels.
For example, below shows S/R levels from three different timeframes:
https://tradingview.sweetlogin.com/x/HPFHcBty/
Hope you find value in this indicator~ Enjoy~
https://tradingview.sweetlogin.com/script/va09eWAp-Support-Resistance-Dynamic-v2/
This script is very similar to the original indicator mentioned above, but with a modification that, in my opinion, would be very useful for many traders. It enables the option to choose different timeframe to calculate the S/R levels. Very often, traders would like to use higher timeframes to define S/R levels, rather than using the same timeframe that they are trading at. For example, if trading at 5min, we often use 15min, 30min or 1hr timeframe to define our S/R levels.
For example, below shows S/R levels from three different timeframes:
https://tradingview.sweetlogin.com/x/HPFHcBty/
Hope you find value in this indicator~ Enjoy~
Release Notes
Updated with additional display settings:- toggle display for labels
- Customizable label and text colors
Fixed bug on displaying 'H' and 'L' pivots
Attempted to fix the observation that S/R lines of the same timeframe are inconsistent on different chart timeframes. Improved slightly, but not completely fixed.
Release Notes
Minor correction to typo in setting.Release Notes
removed max limit on 'Pivot Period' and 'Maximum Number of Pivot' settingsRelease Notes
fixed bug from last update:- bug fixed: "Study Error - Error on bar 0. The study references too many candles in history" on non-intraday charts
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.
Purchases / Subscriptions / Support - buymeacoffee.com/ptgambler
PayPal - paypal.me/PtGambler
You can reach me privately through my Discord Channel: discord.gg/WMQfaVGyQC
PayPal - paypal.me/PtGambler
You can reach me privately through my Discord Channel: discord.gg/WMQfaVGyQC
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.
Purchases / Subscriptions / Support - buymeacoffee.com/ptgambler
PayPal - paypal.me/PtGambler
You can reach me privately through my Discord Channel: discord.gg/WMQfaVGyQC
PayPal - paypal.me/PtGambler
You can reach me privately through my Discord Channel: discord.gg/WMQfaVGyQC
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.