MMTMMT Docs
Diagnostics

T412

parameter list on a handler for one subscription

T412

Only handlers on a family of subscriptions take parameters ((key, member)). Remove the parameter list from a handler on a single subscription.

Failing example

script "example"
data chart = subscribe(data.ohlcv)
on chart.update(bar) { }

Corrected example

script "fixed"
data chart = subscribe(data.ohlcv)
on chart.update { }

On this page