and

Syntax

<condition1> and <condition2>

Description

The and logical operator is used to define complex conditions. For a complex condition to be true it is required that each condition from it is true. In order to define the operator you can also use &&. This reserved word is also used to define an interval in the between expression.

Example

plot InsideBar = high <high[1] and low > low[1];
InsideBar.SetPaintingStrategy(PaintingStrategy.BOOLEAN_POINTS);

Draws a dot near each inside price bar.