Diagnostics
P027
second statement on the same line
P027
Statements end at a newline and nothing else: there is no ; and no other separator, so two statements cannot share a line. Put the second statement on its own line (the attached fix inserts the newline).
Failing example
script "example"
data chart = subscribe(data.ohlcv)
alert up = alert(title: "Up")
state fired = false
on chart.update {
if !fired { up.trigger() fired = true }
}Corrected example
script "fixed"
data chart = subscribe(data.ohlcv)
alert up = alert(title: "Up")
state fired = false
on chart.update {
if !fired {
up.trigger()
fired = true
}
}