NSDT Auto Support / Resistance Levels

Simple script that automatically plots support and resistance lines based on the pivot points of the number of candles you choose to look back upon.

All options are editable.
Release Notes: Updated script to plot the resistance line at the high of the pivot candle and the support line at the low of the pivot candle.
Release Notes: Added 2 additional levels of support and resistance. You can adjust the how many candles to "look back" for each zone. Also added the ability to create alerts for zone/levels breakouts.
Release Notes: Shortened the name of the Support and Resistance lines per request.
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?
Custom indicators, trading coach -


@NorthStarDayTrading What period would you recommend for 4h and daily?
+8 Svara
NorthStarDayTrading mikiahroberson
@mikiahroberson, It depends on market sentiment at that time. Adjust until it looks good for the current timeframe and use from that point.
It works. Great job and thanks.
+1 Svara
@cukamalu, Thanks. Enjoy!
Thank you
good job
+1 Svara
@dxbyali, You're welcome!
This may be a dumb question but how can i make the lines straight without the small circles?
Nice Indicator btw!
@Tozey, That's a good question. I honestly don't know. I'm using the PLOT command to display the line, but for some reason it doesn't allow it to be modified in this indicator. It probably has something to do with the use of the IFF statement to track the price. I've even set the code to use different types of lines, but it keeps wanting to use those dashes. The code is open source so you can play with it if you want.
I love it!!! Btw, is it possible to shorten the Support and Resistance labels? Its taking so much room on the chart. Im just curious if I can change the script to label S1, S2 and S3 for Support and R1 R2 and R3 for Resistance.
@Brileyx, Good idea. I changed the names. Remove, refresh and re-add for updates.
Hem Aktie-screener Forex-screener Krypto-screener Ekonomisk kalender Om Diagramfunktioner Priser Tipsa en vän Ordningsregler Hjälpcenter Webbsidor och mäklarlösningar Widgets Diagramlösningar Lightweight Charting Library Blogg och nyheter Twitter