Systemicbeta

AND

systemic:core-andLogic

Inputs

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

Outputs

NameTypeDescription
ANDTrue/false seriesA true/false series that is `true` on the bars where both input flags are `true`.

Cost

6
credits per run
1,000
bars

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

Outputi=Ai∧Bi\text{Output}_i = A_i \land B_i

The AND module combines two true/false (boolean) series bar by bar. The output is true only when both inputs are true.

ABA AND B
falsefalsefalse
falsetruefalse
truefalsefalse
truetruetrue

Missing Data

A flag can be missing (empty) — a data gap, or a bar when the market was closed, such as a weekend on a stock series. AND never fills in a value for such a bar:

ABA AND B
falsemissingfalse
missingfalsefalse
truemissingempty
missingtrueempty
missingmissingempty

A false on either side settles the answer: the output is false whatever the missing flag would have been. In every other case the result depends on the missing value, so the output is empty on that bar. The series keeps its full length.

AND has no invalid inputs, so an empty output always means "cannot be decided on this bar", never a math error.


Numeric Interpretation

Important: When inputs are numeric rather than boolean, the AND module converts the values first:

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

Rule: Zero is false. Any non-zero value is true. This applies to both inputs independently.


Input Alignment

When the inputs have different lengths or periods, Systemic aligns them automatically:

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

Example: A daily signal combined with an hourly signal → the latest daily value is repeated on every hourly bar until the next daily value arrives.


Practical Example

Multi-condition signal: Flag a bar only when RSI shows oversold and price is above the 200-day moving average. Both conditions must be true on the same bar. This gives fewer false signals than either condition alone.


  • OR — True when either input is true
  • NOT — Inverts a boolean series
  • EQ — Tests equality between values
© 2026 WanoLabs. All rights reservedBeta v0.1.5