MMTMMT Docs
Diagnostics

T112

zero-valued timeframe literal

T112

A timeframe has a positive period, so a unit literal with a zero magnitude cannot be a timeframe. Use a positive timeframe. A zero duration such as 0s is valid wherever a duration is expected.

Failing example

script "example"
data chart = subscribe(data.ohlcv, timeframe: 0m)

Corrected example

script "fixed"
data chart = subscribe(data.ohlcv, timeframe: 1m)

On this page