midpoint
MIDPOINT
Type:
midpoint
• Category:indicators
Description
Calculates the midpoint based on a list of prices
Parameters
Name | Type | Description | Required | Default |
---|---|---|---|---|
dataExp | string | List of prices | no | |
timeperiod | number | no | 14 |
Help
MIDPOINT
Description
The MIDPOINT worker is an indicator used in financial markets to calculate the midpoint of a list of prices over a specified time period. This indicator can be useful for analyzing market trends and making informed trading decisions.
What does this worker do?
The MIDPOINT worker takes a list of prices and a time period as input, and calculates the midpoint of the prices over that time period. The midpoint is calculated as the average of the highest and lowest prices over the specified time period.
How to interpret the results
The result of the MIDPOINT worker is a value that represents the midpoint of the prices over the specified time period. This value can be used to:
- Identify trends: A rising midpoint indicates an uptrend, while a falling midpoint indicates a downtrend.
- Determine support and resistance levels: The midpoint can be used to identify potential support and resistance levels in the market.
Parameters
The MIDPOINT worker has the following parameters:
dataExp
- Type: string
- Description: List of prices
timeperiod
- Type: number
- Default: 14
- Description: Time period over which to calculate the midpoint
Example Usage
To use the MIDPOINT worker, you would provide a list of prices and a time period, like this:
{
"dataExp": "[1, 2, 3, 4, 5]",
"timeperiod": 3
}
This would calculate the midpoint of the prices over a time period of 3.