Skip to main content

ADD

Type: add • Category: indicators

Description

Vector Arithmetic Add

Parameters

NameTypeDescriptionRequiredDefault
real0stringFirst input arrayno
real1stringSecond input arrayno

Help

ADD

Vector Arithmetic Add

Description

The ADD worker performs element-wise addition of two input arrays, real0 and real1, and returns the result as an output array. This worker is particularly useful in financial markets for tasks such as calculating the cumulative sum of returns or adding two sets of financial indicators.

What does this worker do?

The ADD worker takes two input arrays, adds corresponding elements together, and produces an output array where each element is the sum of the elements at the same index in the input arrays.

How to interpret the results

The output array will have the same length as the input arrays. Each element in the output array represents the sum of the corresponding elements in the input arrays. For example, if real0 is [1, 2, 3] and real1 is [4, 5, 6], the output will be [5, 7, 9].

Parameters

The following parameters are required to configure the ADD worker:

Parameters Schema (JSON)

{
"real0": {
"type": "string",
"description": "First input array"
},
"real1": {
"type": "string",
"description": "Second input array"
}
}

Parameters List

  • real0:
    • Type: string
    • Description: First input array. This should be a string representation of an array of numbers.
  • real1:
    • Type: string
    • Description: Second input array. This should be a string representation of an array of numbers.

Example Use Case

To use the ADD worker, you would provide two input arrays as strings. For instance:

  • real0: [1.0, 2.0, 3.0]
  • real1: [4.0, 5.0, 6.0]

The worker would then return the result: [5.0, 7.0, 9.0].