Using Pine v6, I get an error on line 2 that I don't understand.
float bar_hh = ta.highest(2) float bar_h1 = ta.dev(bar_hh, 2) ? na : bar_hh bar_hh is float.
Still, the error I get is complaining about some boolean that doesn't exist : "Cannot call "operator ?:" with argument "expr0"="call "ta.dev" (series float)". An argument of "series float" type was used but a "simple bool" is expected."
The Pine doc says that ta.dev expects a float as parameter.
Please, what am I doing wrong?
?operator. It expects a Boolean, but the result ofta.devis a series of floats.