% - Pine Script Operator
%
Overview
Section titled “Overview”Modulo (integer remainder). Applicable to numerical expressions.
Syntax
Section titled “Syntax”expr1 % expr2Returns
Section titled “Returns”Integer or float value, or series of values.
Remarks
Section titled “Remarks”- In Pine Script®, when the integer remainder is calculated, the quotient is truncated, i.e. rounded towards the lowest absolute value. The resulting value will have the same sign as the dividend.