Diagnostics
S017
series history depth must be known before the script runs
S017
Computed-series depth must be fixed during setup. Use a literal, constant expression, or input.
Failing example
script "conf"
data chart = subscribe(data.ohlcv)
state values = series<float>(time.count(time.fromUnixSeconds(0), time.fromUnixSeconds(100000), 1D))
on chart.update {
let _ = values
}Corrected example
script "fixed"
state values = series<float>(4)