Not
systemic:core-notLogicInputs
| Name | Type | Description |
|---|---|---|
| Flag | True/false series | The true/false series to invert. |
Outputs
| Name | Type | Description |
|---|---|---|
| NOT | True/false series | The inverted series: `true` where the input is `false`, and `false` where it is `true`. |
Cost
6
credits per run
1,000
bars
0.198 + 0.00488·n credits for n bars, rounded up. The marks are each plan's limit of bars.
The NOT module inverts each value in a boolean series: true becomes false, and false becomes true.
| Input | Output |
|---|---|
| true | false |
| false | true |
| empty | empty |
Missing Data
A value can be empty (null): a data gap, or a bar when the market is closed, such as a weekend on a stock series.
- An empty input gives an empty output on the same bar. A gap is not "false", so NOT never turns it into a
truesignal. - Every
trueorfalsecan be inverted, so an empty output always means "no input value on this bar", never a math error.
Numeric Interpretation
⚠️ Important: When the input is numeric rather than boolean, the NOT module converts each value before inverting it:
| Numeric Value | Interpreted As | After NOT |
|---|---|---|
| 0 | false | true |
| 0.0 | false | true |
| 1 | true | false |
| -5 | true | false |
| 0.001 | true | false |
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 it with AND to filter your entry signal. The result is true only when volatility is not high.
Related Modules
- AND — Logical conjunction
- OR — Logical disjunction
- EQ / NEQ — Equality comparisons