Functions
input.float()
The decimal counterpart of `input.int`, with the same nine arguments and `const float` in place of `const int`. Its `step` carries the same restriction: positional only.
Syntax
input.float(const float defval, const string title, const float minval, const float maxval, const float step, const string tooltip, const string inline, const string group, const bool confirm) → input float
Arguments
defval required const float The number the control starts at. Required. title const string The label shown beside the control. minval const float The lowest value accepted. May be `na` to mean unbounded. maxval const float The highest value accepted. May be `na` to mean unbounded. step const float The size of one increment. May be `na` to mean unstepped. Positional only, because `step` is reserved by the grammar. tooltip const string Help text for the control. inline const string A key that puts several controls on one row. group const string A heading the control sits under. confirm const bool Asks the reader to confirm the value. Return Type
input float Example
indicator("float")
multiplier = input.float(2.0, title="Multiplier")
atr = talib.atr(14) * multiplier
plot(atr, color=color.blue, title="ATR Multiplied")