MMTMMT Docs
Diagnostics

S027

the chart subscription cannot be live only

S027

An ohlcv subscription that inherits the chart's exchange, symbol, and timeframe defines the chart's bars and its history replay, so it cannot ask for live data only. Drop history: from it, or give the live-only subscription its own timeframe.

Failing example

script "conf"

data chart = subscribe(data.ohlcv, history: 0s)

Corrected example

script "fixed"
data chart = subscribe(data.ohlcv)
data clock = subscribe(data.ohlcv, timeframe: 1s, history: 0s)

On this page