Skip to main content

Operators in Condition Builder

What are Operators?

Operators define how two values or data points are compared in a condition.
They determine whether the condition will evaluate as true or false, triggering the linked actions.


Types of Operators

1. Cross Above / Cross Below

Used to check if one value crosses over or under another value.

OperatorDescription
cross aboveTrue if the previous value was below and the current value is above the comparison value.
cross belowTrue if the previous value was above and the current value is below the comparison value.

📌 Example:
spot_cs close current cross above 12405
True when:

  1. Previous candle close was below 12405.
  2. Current candle close is above 12405.

2. Is Above / Is Below

Checks if the LHS value is greater or smaller than the RHS value.

OperatorDescription
is above (>)True if LHS is strictly greater than RHS.
is below (<)True if LHS is strictly less than RHS.

📌 Example:
spot_cs close current is above EMA_50
True when the current closing price is greater than the 50 EMA.


3. Equal (==)

Checks if two values are exactly the same.

OperatorDescription
equal (==)True if LHS is exactly equal to RHS.

📌 Example:
spot_cs close current equal 12405
True if the closing price is exactly 12405.


4. Above or Equal / Below or Equal

Checks if the LHS is greater/less than or equal to RHS.

OperatorDescription
above or equal (>=)True if LHS is greater than or equal to RHS.
below or equal (<=)True if LHS is less than or equal to RHS.

📌 Example:
spot_cs close current above or equal 12405
True if the closing price is 12405 or higher.


Comparison Possibilities

OperatorCan be Compared With
cross above / cross belowCandle Data, Indicators
is above / is belowCandle Data, Indicators, DTE, MTM, Fixed Values
equal (==)Candle Data, Indicators, DTE, MTM, Time, Fixed Values, Action.is_open
above or equal / below or equalCandle Data, Indicators, DTE, MTM, Time, Fixed Values

Next Steps

✅ Use Operators to define entry and exit conditions
✅ Combine Candle Data, Indicators, and DTE values
✅ Test operators using Backtesting