Skip to main content

Condition Builder

What is Condition Builder?

The Condition Builder is a feature within the Conditions section that allows users to create custom trading conditions.

  • Users can define conditions using AND / OR logic.
  • Users can group conditions to create complex logic.
  • Each condition consists of three parts:
    • LHS (Left Hand Side) – The variable being checked.
    • Operator – The comparison operation (e.g., is above, equal, cross above).
    • RHS (Right Hand Side) – The value or another data point being compared.

📌 Example:
For the condition candleTime >= 15:15:

  • candleTime is the LHS.
  • >= is the Operator.
  • 15:15 is the RHS.

Condition Grouping

Users can group conditions together to create more advanced logic.

Example:

Assume:
a = 1, b = 0, c = 2

We can create conditions like:
if (a > b AND b = 0) OR (c > a)

  • Group 1: (a > b AND b = 0)
  • Group 2: (c > a)

Since the groups are joined by OR, the condition will be true if either group evaluates to true.

📌 Using AND/OR:

  • AND requires both conditions to be true.
  • OR requires at least one condition to be true.