Systemicalpha

Multiply

systemic:core-mulMathfunction1 cr

Inputs

NameTypeDescription
First ValuefloatarrayThe first numeric series for multiplication.
Second ValuefloatarrayThe second numeric series for multiplication.

Outputs

NameTypeDescription
ProductfloatarrayThe element-wise product of the two input series.

Producti=Ai×Bi\text{Product}_i = A_i \times B_i

Computes element-wise multiplication of two numeric series. Essential for scaling, weighting, and position sizing.

First (A)Second (B)Product
1001.02102
500.525
-103-30
09990

Missing Data

If either input is missing (null) at a position — a data gap or a closed-market day — the product at that position is null. The module never invents a value for missing data: a gap in your inputs stays a gap in the output.

First (A)Second (B)Product
100nullnull
null0.5null
09990

A genuine zero is a real value, not missing data — multiplying by 0 still yields 0. Separate from missing data, a result can be mathematically undefined: multiplying zero by an infinite value has no answer, so that position is also null even though both inputs exist. Any other infinite result passes through unchanged.

In live execution the module returns exactly one datapoint — the newest position — which is null when it cannot be determined.


Precision Rounding

⚠️ Important: Results are rounded to 6 decimal places. For calculations requiring higher precision (e.g., very small cryptocurrency fractions), be aware of this limitation.

Actual ResultOutput
0.1234567890.123457
1.00000011.0

Input Alignment

Systemic automatically aligns inputs before multiplication:

ScenarioWhat Happens
Different lengthsShorter series padded by repeating last value
Different frequenciesLower-frequency upsampled to match higher
One constantConstant expanded to match series length

Practical Example: Position Value Calculation

Multiplying quantity by price gives portfolio exposure:

Position Value=Shares×Price\text{Position Value} = \text{Shares} \times \text{Price}

SharesPricePosition Value
100150.0015,000
50200.0010,000
20075.0015,000

Connect a signal determining quantity to one input and price data to the other for dynamic position tracking.


  • DIV — Division for ratio calculations
  • ADD / SUB — Combine or offset values
  • POW — Exponentiation for compound growth
© 2026 WanoLabs. All rights reservedAlpha build v0.1.5