Documentation / @finchart/core / index / Computation
Interface: Computation<TOut>
Defined in: packages/core/src/data/computation.ts:12
A computation that runs once and produces several branches. MACD isn't one line but three (macd, signal, histogram) — computing each series separately would run the same EMA three times. Here it runs once and hands out the branches.
Type Parameters
TOut
TOut extends Record<string, BaseDataPoint[]>
Properties
out
readonlyout: { [K in string | number | symbol]: Source<TOut[K][number]> }
Defined in: packages/core/src/data/computation.ts:20
The branches. Each one becomes a registration's input as is.
ts
lower.addSeries({ series: lineSeries(), input: macd.out.signal });