Systemicalpha

Not

systemic:core-notLogicfunction1 cr

Inputs

NameTypeDescription
FlagbooleanarrayThe input series to be logically inverted.

Outputs

NameTypeDescription
NOTbooleanarrayThe inverted boolean series.

The NOT module inverts each boolean value in a series, transforming true to false and vice versa.

¬x={trueif x=falsefalseif x=truenullif x is missing\neg x = \begin{cases} \text{true} & \text{if } x = \text{false} \\ \text{false} & \text{if } x = \text{true} \\ \text{null} & \text{if } x \text{ is missing} \end{cases}
InputOutput
truefalse
falsetrue
nullnull

Missing Data

A datapoint can be missing (null) — a data gap, or a closed-market slot such as a weekend on a stock series.

  • A missing input produces a null output at the same position. The inversion is never faked: a gap is not "false", so NOT never turns it into an affirmative true signal.
  • NOT itself has no invalid inputs — every boolean has a negation — so a null output always means "no input datapoint here", never a math error.
  • In live execution the module returns exactly one datapoint (the newest slot), which is null when that slot has no input value.

Numeric Interpretation

⚠️ Important: When the input is numeric rather than boolean, the NOT module converts values before inverting:

Numeric ValueInterpreted AsAfter NOT
0falsetrue
0.0falsetrue
1truefalse
-5truefalse
0.001truefalse

Rule: Zero (including 0.0) is false. Any non-zero value—positive, negative, or fractional—is true.


Practical Example

"Trade except during high volatility" — Use NOT to invert a high-volatility flag, then combine with AND to filter your entry signal. The result triggers only when volatility is not high.


  • AND — Logical conjunction
  • OR — Logical disjunction
  • EQ / NEQ — Equality comparisons
© 2026 WanoLabs. All rights reservedAlpha build v0.1.5