Diagnostics
T421
fill boundaries belong to different panes
T421
Fill or line-fill endpoints belong to different panes. Put both endpoint plots/entities in the same pane.
Failing example
script "conf"
data px = subscribe(data.ohlcv)
pane wt = pane(title: "WT", height: 0.3)
plot a = plot.line(title: "A", on: wt)
plot b = plot.line(title: "B")
fill f = fill.between(a, b, color: color.rgb(0, 0, 255, 40))
state la = entities.linePool(max: 4, on: wt)
state lb = entities.linePool(max: 4)
state lf = entities.lineFillPool(max: 4, on: wt)
on px.close {
a.plot(px.close)
b.plot(px.close)
lf.get(1).set(la.get(1), lb.get(2))
}Corrected example
script "fixed"
data chart = subscribe(data.ohlcv)
plot low = plot.line(title: "Low")
plot high = plot.line(title: "High")
fill band = fill.between(low, high)
on chart.update { low.plot(chart.low)
high.plot(chart.high) }