Skip to content
Algo Trade Analytics Docs

matrix.is_square() - Pine Script Function

The function determines if the matrix is square (it has the same number of rows and columns).

matrix.is_square(id) → series bool
NameTypeDescription
idany matrix typeMatrix object to test.

Returns true if the id matrix is square, false otherwise.