Diagnostics
T217
invalid assignment target
T217
The left side of an assignment is not an assignable name/member/index target. Bind the computed expression first or assign to its storage.
Failing example
script "conf"
data chart = subscribe(data.ohlcv)
plot out = plot.line(title: "out")
state x = 0.0
on chart.update {
state = 1.0
out.plot(x)
}Corrected example
script "fixed"
state count = 0
data chart = subscribe(data.ohlcv)
on chart.update { count = 1 }