input.string

Text input, or a dropdown when options is given. Returns an input string.

input.string(defval: const string, title: const string = na, options: const string = 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) -> string

Parameters

Example

maType = input.string("EMA", "Type", options=["SMA", "EMA", "WMA"])