MMTMMT Docs
Diagnostics

S024

alert handle re-bound in setup

S024

An alert handle exists only as its declaration's binding; setup declarations cannot alias or wrap it. Use the alert declaration's own binding at the trigger site.

Failing example

script "conf"

alert up = alert(title: "Up")

setup other = up

Corrected example

script "fixed"
alert up = alert(title: "Up")
data chart = subscribe(data.ohlcv)
on chart.update { up.trigger() }

On this page