Skip to main content

max


MAX

Type: max • Category: indicators

Description

Highest value over a specified period

Parameters

NameTypeDescriptionRequiredDefault
realstringInput arrayno
timeperiodnumberno30

Help

MAX

Overview

The MAX worker is an indicator used in financial markets to calculate the highest value over a specified period.

Description

The MAX worker calculates the highest value of a given input array over a specified period. This indicator is commonly used in technical analysis to identify trends and potential areas of support and resistance.

What does this worker do?

The MAX worker takes an input array and a time period as parameters, and returns the highest value of the input array over that period.

How to interpret the results

The result of the MAX worker is the highest value of the input array over the specified period. A higher value indicates a higher high over the period, which can be a bullish signal. Conversely, a lower value indicates a lower high over the period, which can be a bearish signal.

Parameters

The MAX worker takes the following parameters:

real

  • Type: string
  • Description: Input array

timeperiod

  • Type: number
  • Default: 30
  • Description: Specified period over which to calculate the highest value

Example Usage

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

This example calculates the highest value of the input array [1, 2, 3, 4, 5] over a period of 3. The result would be the highest value of [1, 2, 3], which is 3.