Diagnostics
L001
too many separate stateful calculations
L001
After loops over families are expanded, the script has more stateful calls (ta.* and other calls that keep history) than allowed. Use fewer family members or fewer stateful calls.
Failing example
script "too many stateful calls"
data chart = subscribe(data.ohlcv)
on chart.update {
// repeat-stateful-call
}Corrected example
script "fixed"
data chart = subscribe(data.ohlcv)
on chart.update { let value = ta.ema(chart.close, 3) }