Systemicbeta

Equals

systemic:core-eqLogic

Inputs

NameTypeDescription
First ValueNumber seriesThe first numeric series to compare.
Second ValueNumber seriesThe second numeric series to compare.

Outputs

NameTypeDescription
EQTrue/false seriesA true/false series that is true on every bar where the two inputs are equal.

Cost

6
credits per run
1,000
bars

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

Outputi={trueif Ai=Bifalseotherwise\text{Output}_i = \begin{cases} \text{true} & \text{if } A_i = B_i \\ \text{false} & \text{otherwise} \end{cases}

The Equals module compares two numeric series bar by bar and outputs true wherever the values are identical.

ABA == B
1010true
1011false
5.55.5true
00.001false

Missing Data

If either input is empty (null) on a bar, for example a data gap or a closed-market day, the comparison on that bar is empty. Two gaps on the same bar are not "equal": the result is empty, never true. The module never invents a result for missing data.

ABA == B
10emptyempty
empty10empty
emptyemptyempty

Any two present values compare to true or false, so missing inputs are the only source of empty values in the output.


Floating-Point Precision

⚠️ Important: Decimal numbers can carry tiny rounding differences that cause unexpected results.

ExpressionExpectedActual Result
0.1 + 0.2 == 0.3truefalse
1.0000001 == 1.0falsefalse

Why? Computers store decimals in binary, which cannot represent every fraction exactly. The value 0.1 + 0.2 is stored as 0.30000000000000004, not exactly 0.3.

Workaround: For an approximate comparison, subtract the values and check that the absolute difference is below a small threshold (e.g., |A - B| < 0.0001).


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
Constant vs seriesThe constant is used on every bar

Practical Example

State detection: Check if RSI equals 50 to detect the neutral zone. Because of decimal precision, a range check (49.9 < RSI < 50.1) is more reliable.


  • NEQ — Not Equal (true when values differ)
  • GTR / LST — Greater than / Less than comparisons
  • GTRE / LSTE — Inclusive comparisons (≥ and ≤)
© 2026 WanoLabs. All rights reservedBeta v0.1.5