string

Syntax

input <input name>="<string_value_used_by_default>";

Description

Defines a string input. Note that in order to have this input defined you need to specify double quotes in its default value.

Example

input symbol = "SPX";

plot Comparison = close(symbol);

Draws the comparison plot based on the closing price. The symbol for the comparison plot can be adjusted using the correspondent input, which is set to "SPX" by default.