ADD
Type:
add• Category:indicators
Description
Vector Arithmetic Add
Parameters
| Name | Type | Description | Required | Default |
|---|---|---|---|---|
dataExp | string | prices data | no | |
real0 | string | First input array | no | |
real1 | string | Second input array | no |
Help
ADD: Vector Arithmetic Add
Description
The ADD worker is an indicator used in financial analysis that performs vector arithmetic addition on two input arrays, real0 and real1, and an optional data experiment input dataExp. This indicator is useful for calculating the sum of two or more values at corresponding points in time.
What does this worker do?
The ADD worker takes two input arrays, real0 and real1, and adds their corresponding elements to produce an output array. If dataExp is provided, it may be used to modify or influence the calculation, though the specifics of how dataExp is used are not detailed here.
How to Interpret the Results
The output of the ADD worker is an array where each element is the sum of the corresponding elements in real0 and real1. This can be useful in a variety of financial analyses, such as:
- Calculating total values by adding different components together.
- Smoothing data by adding a moving average to the original data.
Usage
To use the ADD worker, follow these steps:
- Provide two input arrays,
real0andreal1. - Optionally, provide a
dataExparray if required for your specific analysis. - The worker will output an array that is the element-wise sum of
real0andreal1.
Visual Guide
For a visual guide on how to use the ADD worker, see the following GIFs:
Full Usage Example
[](https://pub-6c7cc7f707d94ca98153d59a039b9a3d.r2.dev/indicator_full.gif)
Short Usage Example
[](https://pub-6c7cc7f707d94ca98153d59a039b9a3d.r2.dev/indicator_short.gif)
Additional Knowledge
The ADD worker is a basic yet versatile tool in financial analysis. Vector arithmetic operations like addition are fundamental in calculating various financial metrics, such as portfolio values, returns, and indicators. This worker can be used in conjunction with other indicators and analyses to build more complex financial models.
Parameters
- dataExp: Prices data. This is an optional input that may influence the calculation.
- real0: First input array.
- real1: Second input array.
By following this documentation, users should be able to effectively utilize the ADD worker in their financial analyses.