Lipi Reference
Lipi

Keywords

not

Negates the expression that follows it. The third of the three logical operators with two spellings, and the only one that takes a single operand rather than two.

Syntax

                !expr0 | not expr0
              

Example


          //@lipi=2
indicator("not Example", overlay=true)
aboveMA = close > talib.sma(close, 50)
// not inverts the condition
bgcolor(not aboveMA ? color.new(color.red, 0.15) : na)