Horizontal Lines Closest to Open Price
-
If there are multiple horizontal lines then how can i find that which horizontal line is more closest to the Open Price?
-
@sjthetechguy Do you mean manually drawn lines or those created by a custom indicator?
-
Drawn Lines
-
@l-andorrà Manually Drawn Lines
-
@sjthetechguy Well, you will need a loop, I'm afraid. This is the block searching for all horizontal lines on your chart:

On the loop necessary to find the closest one I would like to ask for help from thelocal loop¡s expert, mr. roar.
Could you please illuminate us?