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