MMTMMT Docs
Diagnostics

T415

plot method does not match the panel

T415

Use plot for values along subscribed bars and set(key, ...) for values on a panel with an explicit axis. Choose a plot type supported by that panel.

Failing example

script "conf"

data px = subscribe(data.ohlcv)

plot ma = plot.line(title: "MA")

on px.update {
  ma.set(0, 1.0)
}

Corrected example

script "fixed"
plot out = plot.line(title: "Out")
data chart = subscribe(data.ohlcv)
on chart.update { out.plot(chart.close) }

On this page