This script is inspired (published with approval) by "All Lines" ,
Many thanks and gratitude to the original creator!

The difference is that here, you can choose how many Support/Resistance lines you want to see. (0-15, perhaps more in the future)

The script will always show the closest S/R levels, if for example the 'M.P level'
becomes closest to the price while before '1h.ema20' was closer, the line/label will automatically change to the 'M.P level'.

For me, this was a nice practise for my 'array' skills :)

Cheers!

LuxAlgo Dev: www.luxalgo.com
PineCoder: www.pinecoders.com

- We cannot control our emotions,
but we can control our keyboard -
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.

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.

Want to use this script on a chart?