0

I have a big brake with trying to make an Alert happen as I want since, I have not found a way to write that a series of conditions occur before a Cross. How to write that in Pine Script V5?

I know that with if it may be possible but it tells me that it is waiting for the end of the line, I am looking for something like:

long= k > d and shark > shark[1] (And that these conditions are before...) ta.crossover(maI, maII)

I already tried this:

long= k > d and shark > shark[1] ? ta.crossover(maI, maII) : false

long= ta.crossover(maI, maII) ? k > d and shark > shark[1] : false

I hope that the Script says that the conditions must occur before the Crossover and that if they are not before it is false so that the Alert does not occur

Dharman
  • 30,962
  • 25
  • 85
  • 135

0 Answers0