MMTMMT Docs
Diagnostics

S025

input group cannot be assigned to a variable

S025

input.tab, input.group, and input.section only arrange the input panel and produce no value, so binding one to a name gives the name nothing to hold. Write the row as a bare call inside the input (...) group.

Failing example

script "conf"

data chart = subscribe(data.ohlcv)

input (
  general = input.tab(title: "General")
  fast = input.int(9, title: "Fast")
)

on chart.update { let n = fast }

Corrected example

script "fixed"
data chart = subscribe(data.ohlcv)
input (
  input.tab(title: "General")
  fast = input.int(9, title: "Fast")
)
on chart.update { let n = fast }

On this page