Lipi Reference
Lipi

Keywords

and

True when both of its operands are true. It has a symbol spelling as well, and the two are the same token to the lexer. There is no difference in behaviour to weigh up, so pick one spelling for a script and keep to it.

Syntax

                expr0 && expr1 | expr0 and expr1
              

Example


          //@lipi=2
indicator("and Example", overlay=true)
// Both conditions must hold: an up bar on above-average volume
strongUp = close > open and volume > talib.sma(volume, 20)
bgcolor(strongUp ? color.new(color.green, 0.2) : na)