Diagnostics
L008
negative collection/series capacity
L008
Collection and series capacities cannot be negative. Use zero only where the constructor permits it, otherwise use a positive capacity.
Failing example
script "conf"
data chart = subscribe(data.ohlcv)
plot out = plot.line(title: "out")
on chart.update {
let a = float[](-1)
out.plot(0.0)
}Corrected example
script "fixed"
data chart = subscribe(data.ohlcv)
on chart.update { let values = float[](0) }