Diagnostics
T406
duplicate handler
T406
The same handler identity is declared more than once. Merge the bodies or remove the duplicate.
Failing example
script "conf"
setup fam = for tf in [tf("2m"), tf("5m")] {
subscribe(data.ohlcv, timeframe: tf)
}
plot out = plot.line(title: "out")
on fam.close(k, s) { out.plot(1.0) }
on fam.close(k, s) { out.plot(2.0) }Corrected example
script "fixed"
data chart = subscribe(data.ohlcv)
on chart.update { }