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.
Boolean
Element-wise logic gate between two signal arrays. Supports AND, OR, XOR, NAND, NOR, and XNOR operations. Input B can be a fixed constant.
Binary · 2 inputsCompare
Compares two numeric arrays bar by bar using >, <, >=, <=, ==, or !=. Outputs a 0/1 signal and tracks transition points for event-driven pipelines.
Binary · 2 inputsCrossover
Detects when series A crosses above (+1) or below (−1) series B. The canonical node for moving-average crossover strategies.
Ternary · 2 inputsNot
Logical NOT — inverts every element in a boolean signal array. Zero becomes one, non-zero becomes zero, null stays null.
Unary · 1 inputWait
Confirmation gate. Fires 1 when a confirmation signal (B) arrives within a configurable candle window after a trigger signal (A).
Gate · 2 inputsWhere logic nodes fit in a strategy
- 1.Indicator nodes produce numeric arrays — RSI, MACD, EMA, etc.
- 2.Compare or Crossover turns those arrays into binary signals (0/1 or −1/0/+1).
- 3.Boolean combines multiple signals with AND/OR logic — e.g. RSI oversold AND price above SMA.
- 4.Not inverts a signal to produce its complement — e.g. "not in downtrend".
- 5.Wait requires a confirmation event within N bars before allowing the combined signal to fire.