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が提供または保証する金融、投資、取引、またはその他の種類のアドバイスや推奨を意図したものではなく、またそのようなものでもありません。詳しくは利用規約をご覧ください。

チャートでこのスクリプトを利用したいですか?