Operators
!=
Not equal to. Applicable to expressions of any type. True when its two operands differ.
Syntax
expr0 != expr1
Example
//@lipi=2
indicator("Not Equal Example", overlay=true)
// Mark bars whose close differs from the previous close
changed = close != close[1]
bgcolor(changed ? na : color.new(color.gray, 0.3))