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 issue
Release Notes: Chart zoom adjustment
Release Notes: Updated with line color change options. Higher timeframe levels has been moved from alpha to beta testing for with trend breakout levels.
Open-source script

In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in a publication is governed by House Rules. You can favorite it to use it on a chart.

Want to use this script on a chart?


100 coins
Can I use this on cryto charts to locate bases (levels of support and resistance)? I need it for 1 hour charts-5 min charts?
+106 Reply
hey, where is the line to change the SR timeframe?, idk how to code here, sorry
+43 Reply
Alexius-great suicideplays
+4 Reply
martinweb suicideplays
@suicideplays, line number 9. sr_tf = input("xx", type = input.resolution, title="SR Timeframe (Beta)"). just replace xx with some minute value. 60 for 1h or 1440 for a day. you can also enter 1D or 2D etc.
how to change it to daily timeframe. what is ''30'' time frame?
+34 Reply
what is the difference between v2 and v1 sir?
+21 Reply
BarsStallone thitganuong
@thitganuong, Use V2 its much better
+5 Reply
Can I use this indicator for Forex pairs? If yes how do I install it?
+14 Reply
BarsStallone S_Brauner
@S_Brauner, yes
+1 Reply