I get this error on my code
Mismatched input 'alert' expecting 'end of line without line continuation'.
I want to make an alert when the price from 2 candles moves more than 1 ATR
my_atr = at(14)
if (close - open[1] > my_atr )
alert("bull case", alert.freq_once_per_bar_close)
else
alert("bear case", alert.freq_once_per_bar_close)
Aucun commentaire:
Enregistrer un commentaire