Skip to content
Algo Trade Analytics Docs

matrix.is_zero() - Pine Script Function

The function determines if all elements of the matrix are zero.

matrix.is_zero(id) → series bool
NameTypeDescription
idmatrix<int/float>Matrix object to check.

Returns true if all elements of the id matrix are zero, false otherwise.