Systemicbeta

Divide

systemic:core-divMath

Inputs

NameTypeDescription
First ValueNumber seriesThe value to be divided — the top of the fraction.
Second ValueNumber seriesThe divisor — the bottom of the fraction.

Outputs

NameTypeDescription
QuotientNumber seriesThe First Value divided by the Second Value, bar by bar.

Cost

7
credits per run
1,000
bars

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

Quotienti=AiBi\text{Quotient}_i = \frac{A_i}{B_i}

Divides the first series by the second, bar by bar. Useful for ratios, normalization, and cross-asset analysis.

First (A)Second (B)Quotient
100502.0
751000.75
-105-2.0

Division by Zero

Division by zero is undefined, so the quotient on that bar is empty (null). It is not replaced by a number, and it does not stop the rest of your series.

FirstSecondResult
1000empty
00empty
-500empty

Only that bar is affected; every other bar is computed normally. If you need a value on every bar, replace zeros in the divisor before connecting it to this module.


Missing Data

A missing value in either input — a data gap or a closed-market bar — gives an empty quotient on the same bar. Gaps are never filled with substitute values.

FirstSecondResult
empty50empty
100emptyempty
100502.0

An empty value from a missing input means "no data exists here". An empty value from a zero divisor means "the result is undefined". Both appear as gaps in your charts.


Input Alignment

Systemic automatically aligns inputs before division:

ScenarioWhat Happens
Different history lengthsThe shorter series is not extended; bars without both values give an empty quotient
Different periodsThe slower series is repeated on the faster bars
One constantThe constant is repeated on every bar of the series

Example: ETH (1h) ÷ BTC (15m) → each ETH value is repeated on the 15m bars first.


Practical Example: Relative Strength

Dividing an asset's price by a benchmark creates a relative strength indicator:

Relative Strength=Asset PriceBenchmark Price\text{Relative Strength} = \frac{\text{Asset Price}}{\text{Benchmark Price}}

InterpretationMeaning
Ratio risingAsset outperforming benchmark
Ratio fallingAsset underperforming benchmark
Ratio flatAsset moving in line with benchmark

This is the basis of pair trading, sector rotation, and performance attribution.


  • Multiply (MUL) — Inverse operation
  • Subtract (SUB) — Difference (vs. ratio)
  • Power (POW) — Exponentiation (e.g., for geometric returns)
© 2026 WanoLabs. All rights reservedBeta v0.1.5