Diagnostics
P008
`?.` is not supported
P008
Optional chaining with ?. is not supported. Check the value for null with if x != null before reading its members.
Failing example
script "example"
data chart = subscribe(data.ohlcv)
on chart.update { let value = chart?.close }Corrected example
script "fixed"
data chart = subscribe(data.ohlcv)
on chart.update { let close = chart.close
if close != null { let value = close } }