minindex
MININDEX
Type:
minindex
• Category:indicators
Description
Index of lowest value over a specified period
Parameters
Name | Type | Description | Required | Default |
---|---|---|---|---|
real | string | Input array | no | |
timeperiod | number | no | 30 |
Help
MININDEX
Description
The MININDEX worker calculates the index of the lowest value over a specified period, providing an essential indicator for financial markets.
What does this worker do?
This worker takes an input array and a specified time period, then returns the index of the lowest value within that period. It's a useful tool for identifying the point at which the lowest value occurred, which can be crucial for various financial analyses and decision-making processes.
How to Interpret the Results
The result from the MININDEX worker is the index at which the lowest value in the specified input array over the given time period occurs. This index can be used to analyze trends, make predictions, or assess risks in financial markets.
Parameters
The MININDEX worker accepts the following parameters:
real
- Type: string
- Description: Input array for which the index of the lowest value is to be calculated.
timeperiod
- Type: number
- Description: The specified period over which the lowest value index is calculated.
- Default: 30
Example Usage
To use the MININDEX worker, provide the input array and optionally specify the time period. If the time period is not provided, it defaults to 30.
{
"real": [10, 20, 5, 15, 30],
"timeperiod": 5
}
This example calculates the index of the lowest value over a period of 5 units, given the input array [10, 20, 5, 15, 30]
. The lowest value in the array is 5
, which occurs at index 2
. Therefore, the worker would return 2
, indicating that the lowest value occurred at the third element of the input array.