Skip to content

Or

Signals · Logic

Or node on the canvas

True when at least one input signal is true.

Or is the "any of these" gate. It takes multiple boolean signals and outputs true when at least one of them is true on a bar. Where And narrows a strategy down to confluence, Or broadens it — letting you fire on any of several alternative setups, or combine multiple exit reasons into a single exit.

How it works

The block accepts a multi-input of boolean signals and outputs true on each bar where one or more are true; it's false only when every input is false. Wire in the outputs of comparisons, crossovers, or other gates.

When to use it

Use Or to merge alternatives. The most common case is exits: "exit if the stop is hit OR momentum reverses OR the session ends" — wire all the exit conditions into one Or feeding an Exit Long. It's also handy for entries when you have several valid setups and want to take any of them. The caution is the opposite of And's: Or widens the net, so it increases trade frequency and can let lower-quality signals through — keep each branch genuinely valid on its own.

Example

A multi-reason exit: combine an RSI-overbought condition, a Crosses Below of the fast MA, and a Session Filter end-of-session flag — wire all three into Or, then into an Exit Long, so the trade closes on whichever happens first. Backtest in the Tester.

Tips & gotchas

  • Widens, doesn't narrow. Each branch can fire the result — great for "any of these," risky if a branch is weak.
  • Perfect for exits — combine every reason-to-leave into one gate.
  • Each input should stand alone — a bad branch pollutes every signal.
  • Opposite of And — use And for confluence, Or for alternatives.

Inputs

Socket Type What to wire in
Inputs signal Boolean signals to combine

Outputs

Output Type Plots as Description
Result signal Signal arrows Combined boolean signal

Reference auto-generated from the block catalog · category Signals.