Systemicbeta

!=

systemic:core-neqLogic

Inputs

NameTypeDescription
First ValueNumber seriesThe first series of numbers to compare.
Second ValueNumber seriesThe second series of numbers to compare.

Outputs

NameTypeDescription
NEQTrue/false series`true` on each bar where the two inputs differ, and `false` where they are equal.

Cost

6
credits per run
1,000
bars

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

Resulti={emptyif Ai or Bi is emptytrueif Ai≠Bifalseif Ai=Bi\text{Result}_i = \begin{cases} \text{empty} & \text{if } A_i \text{ or } B_i \text{ is empty} \\ \text{true} & \text{if } A_i \neq B_i \\ \text{false} & \text{if } A_i = B_i \end{cases}

The Not Equal module compares two series bar by bar. It returns true where the values differ and false where they match.

Value AValue BA ≠ B
100100false
100101true
50.550.5false
-1010true

Missing Data

If either input is empty (null) on a bar, for example a data gap or a closed-market day, the result on that bar is empty. A gap on one side is not a "values changed" signal, and a gap on both sides is not "values match". Both are unknown.

Value AValue BA ≠ B
100emptyempty
empty100empty
emptyemptyempty

Any two numbers can be compared, so the result is empty only when an input is empty.


Floating-Point Precision

⚠️ Critical: Computed decimal numbers can carry tiny rounding differences that cause unexpected results.

ExpressionExpectedActual Result
0.1 + 0.2 != 0.3falsetrue

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

Implication: NEQ may return true for values that are mathematically equal but were computed in different ways.


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

Practical Example

Change detection: Compare a value with its previous value to find the bars where it changed. NEQ returns true on the bar of the change. A data gap on either side gives an empty result, never a false "changed" signal.


  • EQ — Equality comparison (opposite of NEQ)
  • GTR / LST — Greater than / Less than comparisons
  • NOT — Invert boolean results
© 2026 WanoLabs. All rights reservedBeta v0.1.5