input.float
Decimal input shown in the settings dialog, or a dropdown of numbers when options is given. Returns an input float.
input.float(defval: const float, title: const string = na, minval: const float = na, maxval: const float = na, step: const float = na, options: const float = 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) -> float
Parameters
defvalconst float: The starting value, a number literal.titleconst string: The setting's name in the indicator settings.minvalconst float: The smallest number the setting accepts (default: none). A defval below it does not compile.maxvalconst float: The largest number the setting accepts (default: none). A defval above it does not compile.stepconst float: How much one click on the arrows changes the value (default 0.1).optionsconst float: a list of numbers shown as a dropdown, e.g. [0.5, 1.0, 2.0]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
mult = input.float(2.0, "Multiplier", step=0.1)