input.text_area() - Pine Script Function
input.text_area()
Section titled “input.text_area()”Overview
Section titled “Overview”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.
Syntax
Section titled “Syntax”input.text_area(defval, title, tooltip, group, confirm, display, active) → input stringParameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| defval | const string | Determines the default value of the input variable proposed in the script’s “Settings/Inputs” tab |
| from | — | where the user can change it. |
Returns
Section titled “Returns”Value of input variable.
Remarks
Section titled “Remarks”- Result of input.text_area function always should be assigned to a variable, see examples above.
Examples
Section titled “Examples”Example 1
Section titled “Example 1”//@version=6indicator("input.text_area")i_text = input.text_area(defval = "Hello \nWorld!", title = "Message")plot(close)