DocsLogic

Logic

5 nodes — Signal gating, comparison, and boolean algebra

Logic nodes operate on boolean and numeric signal arrays to produce new binary signals. They sit between your indicator nodes and your strategy nodes, letting you combine, filter, gate, and invert signals before they trigger actions.

Where logic nodes fit in a strategy

  1. 1.Indicator nodes produce numeric arrays — RSI, MACD, EMA, etc.
  2. 2.Compare or Crossover turns those arrays into binary signals (0/1 or −1/0/+1).
  3. 3.Boolean combines multiple signals with AND/OR logic — e.g. RSI oversold AND price above SMA.
  4. 4.Not inverts a signal to produce its complement — e.g. "not in downtrend".
  5. 5.Wait requires a confirmation event within N bars before allowing the combined signal to fire.