Skip to main content

cos


COS

Type: cos • Category: indicators

Description

Vector Trigonometric Cos

Parameters

NameTypeDescriptionRequiredDefault
dataExpstringInput datano

Help

COS: Vector Trigonometric Cos

Description

The COS worker calculates the vector trigonometric cosine of the input data. This indicator is commonly used in financial markets to analyze and model periodic patterns in data.

What does this worker do?

The COS worker takes input data and returns the cosine of each value in the input data. This can be used to identify cyclical patterns or trends in financial market data.

How to interpret the results

The output of the COS worker will be a vector of cosine values corresponding to the input data. These values range from -1 to 1, where:

  • A value of 1 indicates that the input value is at a peak (i.e., a maximum value)
  • A value of -1 indicates that the input value is at a trough (i.e., a minimum value)
  • A value of 0 indicates that the input value is at a point of inflection (i.e., a change in direction)

Parameters

The COS worker takes the following parameters:

dataExp

  • Type: string
  • Description: Input data
  • Required: Yes

Example usage:

{
"dataExp": "input_data_vector"
}

Replace input_data_vector with the actual input data vector.

Note: The input data should be a vector of numeric values. The COS worker will return a vector of cosine values with the same length as the input data.