input.int
Integer input shown in the settings dialog, or a dropdown of numbers when options is given. Returns an input int.
input.int(defval: const int, title: const string = na, minval: const int = na, maxval: const int = na, step: const int = na, options: const int = na, tooltip: const string = na, group: const string = na, inline: const string = na, confirm: const bool = false, display: const string = na, active: const bool = true) -> int
Parameters
defvalconst int: The starting value, a whole number literal.titleconst string: The setting's name in the indicator settings.minvalconst int: The smallest number the setting accepts (default: none). A defval below it does not compile.maxvalconst int: The largest number the setting accepts (default: none). A defval above it does not compile.stepconst int: How much one click on the arrows changes the value (default 1).optionsconst int: a list of numbers shown as a dropdown, e.g. [5, 15, 30]tooltipconst string: Text shown when the pointer rests on the setting.groupconst string: The settings section it goes in; inputs with the same group share a section (default: Inputs).inlineconst string: Inputs next to each other with the same inline name share one row.confirmconst bool: Accepted for compatibility; it has no effect yet.displayconst string: Accepted for compatibility; it has no effect yet.activeconst bool: Accepted for scripts from Pine and ignored: it changes nothing on PROLYNT.
Example
len = input.int(14, "Length", minval=1)