MMTMMT Docs
Diagnostics

S007

incorrect declaration

S007

The function after = does not match this declaration. For example, use subscribe(...) after data and plot.line(...) after plot.

Failing example

script "conf"

data chart = subscribe(data.ohlcv)

setup fam = for ex in input.exchanges(["binancef", "bybitf"]) { subscribe(data.ohlcv, exchange: ex) }

Corrected example

script "fixed"
plot out = plot.line(title: "Out")

On this page