Skip to main content
Every input function takes the same layout arguments after its value and title: group, inline, tooltip and confirm. Give two inputs the same group string and they sit under one heading; give them the same inline string and they share a row. The strings are const: they cannot be built from series values (see const, input, simple and series).
input.int and input.float also take minval, maxval and step; step may be named like any other argument. The text of tooltip shows on hover, and the inline string itself is never displayed. With confirm=true the reader is asked to confirm the value before the script is added to the chart (default false).

Choose from a list

input.string, input.int and input.float take options, a bracketed list of the allowed values. The default must be one of them, whatever its type.

The mistake to avoid

Building a layout string from a series value. The compiler says: Cannot call input.int with argument group=str.tostring(bar_index). An argument of series string type was used but a const string is expected.
The editor’s check reports it. See Inputs.