Add
systemic:core-addMathInputs
| Name | Type | Description |
|---|---|---|
| First Value | Number series | The first numeric series to add. |
| Second Value | Number series | The second numeric series to add. |
Outputs
| Name | Type | Description |
|---|---|---|
| Sum | Number series | The bar-by-bar sum of the two input series. |
Cost
0.199 + 0.00583·n credits for n bars, rounded up. The marks are each plan's limit of bars.
The Add module adds two series bar by bar. Each output value is the sum of the two input values on the same bar.
| First | Second | Sum |
|---|---|---|
| 100 | 50 | 150 |
| -10 | 10 | 0 |
| 0.5 | 0.3 | 0.8 |
Missing Data
If either input is missing (empty) on a bar — a data gap or a day when the market was closed — the sum on that bar is empty. The module never fills in a value: a gap in your inputs stays a gap in the output.
| First | Second | Result |
|---|---|---|
| 100 | empty | empty |
| empty | 50 | empty |
| empty | empty | empty |
A result can also be mathematically undefined: adding +∞ and −∞ has no answer, so that bar is empty even though both inputs exist. Any other infinite result passes through unchanged.
Input Alignment
When the inputs have different lengths or periods, Systemic aligns them automatically:
| Scenario | Behavior |
|---|---|
| Different lengths | The result starts at the first bar where both series have data |
| Different periods | The series with the longer period repeats its latest value on every bar of the shorter period |
| Constant vs series | The constant is used on every bar |
Practical Example
Offset adjustment: Add a constant to shift a series up or down. For example, add transaction costs to a price series, or move an oscillator's baseline.
Related Modules
- SUB — Subtraction
- MUL — Multiplication
- DIV — Division