How do “Any/All” Conditions Work in the Symphony Editor?
The symphony editor now supports “Any/All” conditions, which means you can combine multiple conditions within your if/else statements using “Any of” or “All of” logic:
- Any: If any of the conditions you set is true, the action executes.
- All: If all conditions are true, the action executes.
This opens up much more possibilities for your symphonies and allows for more advanced trading logic.
How It Works
In the Symphony Editor, add an If/Else block and you'll notice an Any/All button.

Example 1: Simple “Any of” Condition

- Add an If statement block.
- Click the pencil icon to edit the conditional.
- Set up your condition: For example, if the Cumulative Return of NVDA, TSLA, AAPL over 10 days is greater than a fixed value of 10%.
- Click the Any of/All of tab and select “Any of” inside the branch. (i.e., Any Of (NVDA, TSLA, AAPL)
- Set the action. For example, Invest in QQQ.
Result: If any of the selected stocks has a 10-day cumulative return greater than 10%, the symphony invests in QQQ.
Example 2: Simple “All of” Condition

Using the same setup, select “All of” instead of “Any of”.
Result: Only if all the selected stocks (in this case, that would be NVDA, TSLA, AAPL) have a 10-day cumulative return greater than 10% then the symphony will invest.
Example 3: Nested “Any/All” Conditions

You can continue to nest If conditions within your Any/All conditions. This allows for more sophisticated multi-level logic in your symphonies.
- Using the previous examples above, you can create a main Any/All branch first (e.g., 10d cumulative return of any of NVDA, TSLA, AAP greater than 10%).
- Add a second If condition inside that branch and turn it into an Any/All condition.
- Set additional Any/All criteria by toggling the Any of or All of at the top of the logic tree (e.g., 10d cumulative return of TSLA is greater than that of QQQ and 20d max drawdown of AAPL is less than that of QQQ.)
Overall, the Any/All condition gives you much more creative control over your symphonies. Whether you're building simple single-condition strategies or complex multi-factor algorithms, this feature lets you express sophisticated trading logic directly.
Already have symphonies with nested If/Else logic?

Look for the "clean up" icon in the editor. It lets you convert single If conditions into cleaner Any/All blocks in one click. And it preserves your out-of-sample (OOS) date, so your backtest stays intact.