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 -
开源脚本

本着真正的TradingView精神,该脚本的作者将其开源发布,以便交易者可以理解和验证它。为作者喝彩!您可以免费使用它,但在出版物中重复使用此代码受网站规则的约束。 您可以收藏它以在图表上使用。

免责声明

这些信息和出版物并不意味着也不构成TradingView提供或认可的金融、投资、交易或其它类型的建议或背书。请在使用条款阅读更多信息。

想在图表上使用此脚本?