Welcome to the BEST forum for traders

Did you know we're sharing tons of exclusive content here?
Our community is growing quickly. Take a look around and say "Hello".

Is this impossible to do in tradingview?

Nov 3, 2022 - 12:20 PM

Viewed 357 times

https://best-trading-indicator.com/community/bti/forums/4180/topics/1465647 COPY
  • 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.

    0
  • Hi there

    Yes usually, they don't answer when what people are looking for is in the reference manual :(
    https://www.tradingview.com/pine-script-reference/v5/#fun_line{dot}new

    0
CONTENTS