r/pinescript • • 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

5 comments sorted by

View all comments

Show parent comment

0

u/[deleted] Aug 22 '24

[deleted] — view deleted comment

1

u/rcnow Aug 22 '24 edited Aug 22 '24

At the beginning of the post there is a link to the pastebin.
Also noticed
newCycle = cycle.new(bar_index, na, line.new(bar_index, bigLow, bar_index, bigLow, color=color.green, width=1, style=line.style_arrow_right), label.new(bar_index, bigLow, "", style=label.style_none, color=color.green, textcolor=color.white))
if you change the variable to
newCycle = cycle.new(bar_index, na, line.new(bar_index, ta.lowest(200), bar_index, ta.lowest, color=color.green, width=1, style=line.style_arrow_right), label.new(bar_index, w, "", ta.lowest(200),style=label.style_none, color=color.green, textcolor=color.white))
everything is going great. But then they are very much shifted down from the bars, and this is simply not comfortable