Skip to main content

sub


SUB

Type: sub • Category: indicators

Description

Vector Arithmetic Subtraction

Parameters

NameTypeDescriptionRequiredDefault
real0stringFirst input arrayno
real1stringSecond input arrayno

Help

SUB

Description

The SUB worker performs vector arithmetic subtraction, a fundamental operation in financial markets. It takes two input arrays, subtracts the second array from the first, and returns the result.

What does this worker do?

The SUB worker executes element-wise subtraction of two input arrays, real0 and real1. This operation is commonly used in financial markets to calculate differences between two sets of values, such as changes in stock prices or trading volumes.

How to interpret the results

The result of the SUB worker is a new array where each element is the difference between the corresponding elements in the input arrays. A positive value indicates that the first array's element is greater than the second array's element, while a negative value indicates the opposite.

Parameters

JSON Schema

The SUB worker accepts the following parameters:

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

Parameters List

  • real0:
    • Type: string
    • Description: First input array
  • real1:
    • Type: string
    • Description: Second input array

Usage

To use the SUB worker, simply provide the two input arrays as strings, and the worker will return the result of the subtraction operation. Make sure to format the input arrays correctly to ensure accurate results.