MIDPRICE
Type:
midprice
• Category:indicators
Description
Calculates the average price based on the highest and lowest prices
Parameters
Name | Type | Description | Required | Default |
---|---|---|---|---|
high | string | List of highest prices | no | |
low | string | List of lowest prices | no | |
timeperiod | number | no | 14 |
Help
MIDPRICE
Description
The MIDPRICE indicator is a financial market indicator used to calculate the average price of a security based on its highest and lowest prices over a specified period.
What does this worker do?
This worker calculates the mid-price of a security, which is the average of the highest and lowest prices, providing a smoothed representation of the price action.
How to interpret the results
The result of the MIDPRICE worker is a list of mid-price values, which can be used to analyze the price movement of a security over time. A rising mid-price indicates an upward trend, while a falling mid-price indicates a downward trend.
Parameters
The MIDPRICE worker accepts the following parameters:
Parameters Schema (JSON)
{
"high": {
"type": "string",
"description": "List of highest prices"
},
"low": {
"type": "string",
"description": "List of lowest prices"
},
"timeperiod": {
"type": "number",
"default": 14
}
}
Detailed Parameters
- high:
- Type:
string
- Description: A list of highest prices.
- Type:
- low:
- Type:
string
- Description: A list of lowest prices.
- Type:
- timeperiod:
- Type:
number
- Default:
14
- Description: The time period over which to calculate the mid-price.
- Type:
Usage
To use the MIDPRICE worker, provide the required high
and low
parameters, and optionally specify the timeperiod
parameter. The worker will return a list of mid-price values.