Logical expressions with indicators and values can be created using logical operators such >, >=, <, <=, and =. They are used to compare indicator levels, values, and price levels.
In this example Commodity Channel Index (CCI) is compared against a level along while checking the presence of a green candlestick (Close > Open):
Rule:
CCI 20 greater than 100 value (delimited by the green region).
OHLC Close greater than Open (corresponds to green candlesticks in the delimited region).
Legend:
Source: Dukascopy
The equivalent logic using the Strategy Designer can be defined as follows: