Skip to content
Algo Trade Analytics Docs

input.text_area() - Pine Script Function

Adds an input to the Inputs tab of your script’s Settings, which allows you to provide configuration options to script users. This function adds a field for a multiline text input.

input.text_area(defval, title, tooltip, group, confirm, display, active) → input string
NameTypeDescription
defvalconst stringDetermines the default value of the input variable proposed in the script’s “Settings/Inputs” tab
fromwhere the user can change it.

Value of input variable.

  • Result of input.text_area function always should be assigned to a variable, see examples above.
//@version=6
indicator("input.text_area")
i_text = input.text_area(defval = "Hello \nWorld!", title = "Message")
plot(close)