-= - Pine Script Operator
-=
Overview
Section titled “Overview”Subtraction assignment. Applicable to numerical expressions.
Syntax
Section titled “Syntax”expr1 -= expr2Returns
Section titled “Returns”Integer or float value, or series of values.
Example
Section titled “Example”//@version=6indicator("-=")// Equals to expr1 = expr1 - expr2.a = 2b = 3a -= b// Result: a = -1.plot(a)