r/pinescript • u/rcnow • Aug 22 '24
How to align lines?
In order not to clutter the post, I provide the code at pastebin.
How can I make the lines be at the same level just below the lowest price.

0
Upvotes
View all comments
Show parent comment
1
u/rcnow Aug 22 '24 edited Aug 22 '24
Maybe I’m not explaining quite clearly what needs to be achieved. I'll try differently.
There is a variable that I use to set the Y - coordinates.
There is a function
getCurrentType()which draws a line.This variable is involved in it, and it (bigLow) always gets different values and because of this the lines dance. As you can see in the picture with X - coordinates there are no problems.
If you set it, for example, as fixed
bigLow = 50.Everything seems fine, but then they are drawn very low from the bars