MEDPRICE
Type:
medprice
• Category:indicators
Description
Median Price
Parameters
Name | Type | Description | Required | Default |
---|---|---|---|---|
high | string | List of highest prices | no | |
low | string | List of lowest prices | no |
Help
MEDPRICE
Median Price Indicator for Financial Markets
Description
The MEDPRICE worker calculates the Median Price of a financial instrument given its highest and lowest prices over a specified period. This indicator is useful in technical analysis for identifying trends and potential areas of support and resistance.
What does this worker do?
The MEDPRICE worker takes in two lists of prices: the highest prices and the lowest prices. It then calculates the median price, which is the middle value of the combined and sorted list of high and low prices. This calculation provides a measure of the price level that is considered central to the market's movement.
How to Interpret the Results
The result of the MEDPRICE worker is a single value representing the median price. A rising median price indicates an upward trend in the market, suggesting that the central price level is increasing over time. Conversely, a falling median price indicates a downward trend. This indicator can be used to confirm trends identified by other indicators or to signal potential buy or sell opportunities.
Parameters
The following parameters are required to use the MEDPRICE worker:
Parameters Schema (JSON)
{
"high": {
"type": "string",
"description": "List of highest prices"
},
"low": {
"type": "string",
"description": "List of lowest prices"
}
}
Detailed Parameters List
-
high:
- Type: string
- Description: A comma-separated list of the highest prices for each period. For example: "10.5, 11.2, 10.8".
- Example: "10.5, 11.2, 10.8"
-
low:
- Type: string
- Description: A comma-separated list of the lowest prices for each period. For example: "9.8, 10.1, 9.9".
- Example: "9.8, 10.1, 9.9"
To use the MEDPRICE worker, provide the lists of high and low prices as strings. Ensure that both lists have the same number of elements and that the elements are numeric. The worker will return the median price as a numeric value.