matrix.is_zero() - Pine Script Function
matrix.is_zero()
Section titled “matrix.is_zero()”Overview
Section titled “Overview”The function determines if all elements of the matrix are zero.
Syntax
Section titled “Syntax”matrix.is_zero(id) → series boolParameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| id | matrix<int/float> | Matrix object to check. |
Returns
Section titled “Returns”Returns true if all elements of the id matrix are zero, false otherwise.