Skip to content
Algo Trade Analytics Docs
Pine library page — review pending. This page is preserved for compatibility but is not part of the reviewed search index. Check the official Pine Script v6 reference before relying on its explanation, signature, or example.

!= - Pine Script Operator

Inequality operator. Returns true if the operands are considered not equal, and false otherwise. This operator is compatible with all value types, including “int”, “float”, “bool”, “color”, and “string”. The operator can also compare two line or label IDs.

expr1 != expr2

Boolean value, or series of boolean values.

  • This operator rounds “float” operands to nine fractional digits.