Keywords
static
var is the keyword used for assigning and one-time initializing of the variable.
Syntax
static <data_type> <variable_name> = <expression>
Example
indicator("var Example - First Close", overlay=true)
// Store the first close price only once
static float firstClose = close
// Plot the first close price as a horizontal line
plot(firstClose, "First Close", color=color.blue)