OPEN-SOURCE SCRIPT
Updated Support/Resistance V2 Indicator

With this support and resistance indicator, if you want more levels just change the timeframe it looks at in the settings. It will pull the SR levels off the timeframe specified in the settings. Note: SR1 and SR2 timeframe should match.
Release Notes
Updated to Pinescript V4 and added the ability to select the timeframe for support and resistance levels. Default is 15 min levels.Release Notes
Updated script with the ability to extend lines to the right and added the ability to add an alert when a new SR level is created. Setting higher timeframe levels now scales the chart correctly. It is recommended to set the timeframe on "Same as Symbol". The best way to add price alerts are to click on the chart at the level and manually add the price alert. Extending lines manually also works well by dropping a horizontal line at the level if you want to continue to monitor that level after the line ends.Release Notes
Fixed issue with repainting when viewing higher timeframe levels.Release Notes
Fixed zoom issueRelease Notes
Chart zoom adjustmentRelease Notes
Updated with line color change options. Higher timeframe levels has been moved from alpha to beta testing for with trend breakout levels. Release Notes
Code updated to pine V5 and repainting eliminated by christofferkaRelease Notes
Publishing correctionOpen-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.