Skip to main content

sum


SUM

Type: sum • Category: indicators

Description

Summation

Parameters

NameTypeDescriptionRequiredDefault
realstringInput arrayno
timeperiodnumberno30

Help

SUM

Summation Indicator for Financial Markets

Description

The SUM worker calculates the summation of a given input array over a specified time period. This indicator is commonly used in financial markets to analyze trends and patterns in data.

What does this worker do?

The SUM worker takes an input array and a time period as parameters, and returns the sum of the input array values over the specified time period.

How to interpret the results

The result of the SUM worker is a value that represents the sum of the input array values over the specified time period. A higher value indicates a greater sum, while a lower value indicates a smaller sum.

Parameters

The following parameters can be passed to the SUM worker:

  • real:
    • Type: string
    • Description: Input array
  • timeperiod:
    • Type: number
    • Description: Time period over which to calculate the summation
    • Default: 30

Example usage:

{
"real": "[1, 2, 3, 4, 5]",
"timeperiod": 30
}

Note that the real parameter should be a string representation of an array, and the timeperiod parameter should be a numeric value.