Skip to Content

Logic Groups (AND/OR)

Logic Groups are the secret weapon that transforms simple indicator rules into institutional-grade decision trees. They let you combine multiple conditions using AND/OR operators and nest them infinitely for complex composite logic.


The Two Operators

Require All (AND Logic)

Every condition in the group must be true simultaneously for the group to pass.

Require ALL of: │ RSI > 60? YES ✅ ├── RSI(14) > 60 │ VWAP < Close? YES ✅ ├── VWAP < Close │ ADX >= 25? YES ✅ └── ADX(14) >= 25 │ │ Result: ALL true → GROUP PASSES ✅

Use When: You want confluence — multiple independent confirmations must align. Prevents you from entering on a single indicator’s false signal.

Require Any (OR Logic)

At least one condition in the group must be true for the group to pass.

Require ANY of: │ RSI < 30? NO ❌ ├── RSI(14) < 30 │ Price < BB? YES ✅ └── Close < Bollinger Lower Band │ │ Result: One is true → GROUP PASSES ✅

Use When: You want flexibility — you have multiple alternative entry setups that are equally valid, and you’ll enter if any of them fires.


Nesting: Building Complex Decision Trees

The real power comes from nesting groups inside groups. You can build multi-layered logic that mirrors how institutional traders evaluate setups:

Example: Professional Trend + Momentum Strategy

Require ALL of: (Everything below must be true) ├── SMA(200) < Close (Long-term trend is bullish) ├── ADX(14) >= 25 (Market is trending) └── Require ANY of: (Need at least ONE momentum trigger) ├── Require ALL of: (RSI-based entry path) │ ├── RSI(14) crosses above 50 │ └── RSI(14) Rising for 2 bars └── Require ALL of: (MACD-based entry path) ├── MACD crosses above Signal └── MACD Histogram > 0

What this says in plain English:

“Enter only when the market is in a long-term uptrend (above 200 SMA) AND the trend is strong (ADX above 25). For the actual entry timing, accept EITHER an RSI momentum confirmation OR a MACD momentum confirmation — whichever fires first.”


The Trading Edge

Why This Matters

Relying on a single indicator is dangerous — any one indicator can fail. But demanding perfect alignment of every indicator is too restrictive and you’ll never enter.

Logic Groups let you find the sweet spot:

  • Use AND for conditions that must always be true (trend direction, market regime)
  • Use OR for flexible entry triggers where any valid momentum signal is acceptable

This mimics how professional quant funds build their signal pipelines — a hard filter layer followed by a flexible trigger layer.


Common Patterns

Pattern 1: Trend + Any Trigger

Require ALL of: ├── Close > SMA(200) (Mandatory trend filter) └── Require ANY of: (Flexible momentum entry) ├── EMA(9) crosses above EMA(21) ├── RSI(14) crosses above 50 └── MACD crosses above Signal

Pattern 2: Multi-Indicator Confluence

Require ALL of: ├── RSI(14) > 55 (Momentum positive) ├── VWAP < Close (Above institutional average) ├── ADX(14) >= 25 (Trending market) └── Supertrend < Close (Supertrend bullish)

Pattern 3: Dual-Timeframe Confirmation

Require ALL of: ├── SMA(200) Rising for 3 bars (Timeframe: 1d — macro trend) └── EMA(9) crosses above EMA(21) (Timeframe: 5m — micro trigger)

Configuration Steps

  1. Create a new rule group in the Entry Conditions tab
  2. Toggle between “Require All” and “Require Any” at the group level
  3. Add individual rules to the group (Comparison, Crossover, Trend, Time)
  4. To nest: Add a sub-group inside an existing group and set its own AND/OR operator
  5. Continue nesting as deeply as needed

Best Practice

Keep your nesting to 3 levels maximum for readability. Even the most sophisticated strategies rarely need more than:

  • Level 1: Core market regime filter (AND)
  • Level 2: Multiple entry paths (OR)
  • Level 3: Per-path confluence conditions (AND)

Next Steps

Explore the full list of technical indicators available for your rules:

→ Next: Indicator Reference

Last updated on