Skip to main content

Booleans - And and Or in the same strategy

Understanding how Boolean logic works in strategy conditions and what’s coming next.

Josh avatar
Written by Josh
Updated over 2 weeks ago

When building a strategy, you may want to use multiple conditions to trigger an action - for example, combining both AND and OR logic in the same trigger. This kind of flexibility allows for more complex and refined trading logic, such as:

  • Buy AAPL if the price is above the 50-day moving average AND RSI is below 30 OR MACD crosses above the signal line.

Currently, our platform supports using all AND conditions or all OR conditions within a single trigger. However, mixing both (AND and OR) in the same line of logic - like (Condition A AND Condition B) OR Condition C—is not yet supported.

This feature is high on our development roadmap, and we’re actively working to make it possible. Once released, you’ll be able to create more nuanced strategies using grouped conditions with both Boolean operators.


Did this answer your question?