Relational operators

Relational operators compare two pieces of information. The eight relational operators are as follow:

Relational Operator Comparison Performed
> Greater than
< Less than
= Equal to
<> Not equal to
>= Greater than or equal to
<= Less than or equal to
Crosses over (above) Greater than on the current bar but less than or equal to on the previous bar (crosses above can also be used)
Crosses under (below) Less than on the current bar but greater than or equal to on the previous bar (crosses below can also be used)

Examples

Close > Open

(High + L) /2 > Close

If CurrentBar > 1 and Close > HighestFC(High,Length)[1] then Buy on Close;