Systemicbeta

OR

systemic:core-orLogic

Inputs

NameTypeDescription
First FlagTrue/false seriesThe first true/false series to combine.
Second FlagTrue/false seriesThe second true/false series to combine.

Outputs

NameTypeDescription
ORTrue/false series`true` on each bar where at least one of the two flags is `true`.

Cost

6
credits per run
1,000
bars

0.2 + 0.00493·n credits for n bars, rounded up. The marks are each plan's limit of bars.

A∨B={trueif A=true or B=truefalseif A=false and B=falseA \lor B = \begin{cases} \text{true} & \text{if } A = \text{true or } B = \text{true} \\ \text{false} & \text{if } A = \text{false and } B = \text{false} \end{cases}

The OR module combines two boolean series bar by bar. It returns true if at least one of the inputs is true.

ABA OR B
falsefalsefalse
falsetruetrue
truefalsetrue
truetruetrue

Missing Data

OR uses three-valued logic: an empty (null) input makes the result empty only when the outcome depends on it. One true decides the result on its own, even if the other flag is empty. A false decides nothing on its own, because the missing flag could have been true, so the result is empty.

ABA OR B
trueemptytrue
emptytruetrue
falseemptyempty
emptyfalseempty
emptyemptyempty

An empty flag is never treated as false: a gap in your data, such as a closed market or an indicator warm-up, stays a gap in the signal on the same bar. Every bar where both flags are present gives a real true or false.


Numeric Interpretation

⚠️ Important: When inputs are numeric rather than boolean, the OR module converts each value before combining:

ValueInterpreted As
0false
0.0false
1true
-5true
0.001true

Rule: Zero is false. Any non-zero value is true. This applies to each input separately.


Input Alignment

When inputs have different lengths or periods, Systemic matches them by time:

ScenarioBehavior
Different lengthsThe result starts at the first bar where both inputs have data
Different periodsThe series with the longer period repeats its latest value on each bar of the other

Practical Example

Multiple entry signals: Raise a buy signal when either RSI is oversold or MACD crosses above its signal line. This strategy reacts to any bullish indicator, while AND requires all conditions at once.


Comparison: OR vs AND

OperatorBehaviorUse When
ORTrue if any input is trueInclusive criteria, alternatives
ANDTrue only if all inputs are trueStrict filtering, confirmation

  • AND — Logical conjunction (both must be true)
  • NOT — Logical negation (invert a condition)
  • EQ — Equality comparison
  • GTR / LST — Comparison operators that produce boolean conditions
© 2026 WanoLabs. All rights reservedBeta v0.1.5