I try to get alerts for some conditions but nothing happens. Manual didn't help.
This test code doesn't trigger any error message but no alerts displayed.
alert(close[1] < open[1] ? "Close was lower than Open" : na, alert.freq_once_per_bar)
alert(close[1] > open[1] ? "Close was higher than Open" : na, alert.freq_once_per_bar)
In the Manual, there's an IF
cycle but it also do nothing:
if close[1] < open[1]
alert("Close was lower than Open", alert.freq_once_per_bar)
if close[1] > open[1]
alert("Close was higher than Open", alert.freq_once_per_bar)
So I'm confused. What do I wrong?