= - Pine Script Operator
=
Overview
Section titled “Overview”Assignment operator. Assigns an initial value or reference to a declared variable. It means this is a new variable, and it starts with this value.
Syntax
Section titled “Syntax”<var_name> := <initial_value>Example
Section titled “Example”//@version=6indicator("`=` showcase")// The following are all valid variable declarations.i = 1MS_IN_ONE_MINUTE = 1000 * 60showPlotInput = input.bool(true, "Show plots")pHi = ta.pivothigh(5, 5)plotColor = color.greenplot(pHi, color = plotColor, display = showPlotInput ? display.all : display.none, precision = i)