Diagnostics
S010
setup value uses a built-in that cannot run in setup
S010
This built-in function cannot be computed while the script is compiled. Call it inside a handler rather than in a setup declaration or setup condition.
Failing example
script "example"
setup start = time.monthStart(time.fromUnixSeconds(0))Corrected example
script "fixed"
data chart = subscribe(data.ohlcv)
on chart.update { let _ = time.monthStart(time.fromUnixSeconds(0)) }