%= - Pine Script Operator
%=
Overview
Section titled “Overview”Modulo 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 = 3b = 3a %= b// Result: a = 0.plot(a)