MMTMMT Docs
Diagnostics

S001

live value used in setup

S001

A setup expression reads a value that exists only while a handler runs, such as subscription data or state. Move the expression into a handler, or use setup data instead.

Failing example

script "example"
data chart = 1

Corrected example

script "fixed"
data chart = subscribe(data.ohlcv)

On this page