Hello,
I'm trying to find a way to draw a line in the tradingview chart, then tell pinescript to alert me when the price closes below that line..
I know the code for alerting when the price closes below something, like:
Alert = Ta.crossunder(close, x)[1]
Where (x) is the thing, then alert condition it.. but how can I make that (x) the line I draw?
I tried to ask this in couple of forums, but none answered. Is this impossible to do?
Thanks.