Logic

The Logic rule acts as a central checkpoint in your strategy, evaluating multiple conditions at once to decide if the strategy should proceed. It functions as a gatekeeper — waiting for all dependent rules to complete successfully before allowing downstream rules to execute, ensuring that every prerequisite condition is met before any action is taken.

How It Works

The Logic rule does not perform any calculations or actions on its own. Instead, it waits for signals from other rules that are configured as its dependencies. These dependencies are rules elsewhere in your strategy that monitor market data, account status, trade conditions, or any other criteria relevant to your trading logic.

When all of its dependent rules have successfully completed their tasks, they signal the Logic rule. Once the Logic rule has received the go-ahead from every one of its dependencies, it activates and allows the strategy to proceed to the next step.

For example, a strategy might have three prerequisite conditions before placing a trade: the price must be above a certain level, the trading volume must exceed a threshold, and a technical indicator must confirm the direction. Each of these conditions would be monitored by a separate rule. The Logic rule would be configured to depend on all three. Only when all three conditions are met simultaneously will the Logic rule trigger, in turn activating the next action in the strategy such as placing a trade.

In essence, the Logic rule helps orchestrate a series of checks and ensures that all required conditions are met before any action is taken. It is the simplest form of multi-condition gating available in the strategy builder.

Inputs

Parameter Description Required Default
This rule has no configurable inputs. Its behaviour is determined entirely by the dependency connections you create on the canvas. Connect the rules that represent your prerequisite conditions as dependencies of this Logic rule.

Outputs

Output Description
This rule has no explicit outputs. When all dependencies are satisfied, the Logic rule activates and triggers any downstream rules connected to it on the canvas.

Tips

The Logic rule requires all of its dependencies to succeed before it activates. If you need a more flexible approach where only some conditions need to be met (for example, three out of five indicators), use the Logic Count rule instead. The Logic rule is best suited for hard prerequisites where every condition is mandatory.

Was this helpful? Let us know