I created a simple script in tradingview which create a line using building function line.new(). Now I want to set alert when a price crossed below my line.
In case this is not possible. I also tried to paint my line using plot(). My line is based on pivotlow() and I know how to get x,y. Since pivotlow is based on past events I need to extend it. I'm not sure how to do it.
line.new(plx1,ply1,plx2,ply2, xloc.bar_time, style=line.style_dotted, width=1)
I'm using code version 4.
