apo
APO
Type:
apo
• Category:indicators
Description
Absolute Price Oscillator
Parameters
Name | Type | Description | Required | Default |
---|---|---|---|---|
dataExp | string | List of prices | no | |
fastperiod | number | no | 12 | |
slowperiod | number | no | 26 | |
matype | number | no | 0 |
Help
APO (Absolute Price Oscillator)
=====================================
Description
The Absolute Price Oscillator (APO) is a financial indicator used to analyze price trends in financial markets. It calculates the difference between two exponential moving averages (EMAs) of different periods, providing insight into market momentum.
What does this worker do?
This worker calculates the APO indicator for a given set of price data. It takes a list of prices and two periods as input, and returns the APO values for each price in the list.
How to interpret the results
The APO indicator can be used to:
- Identify trends: A positive APO value indicates an upward trend, while a negative value indicates a downward trend.
- Detect divergences: A divergence between the APO and the price chart can signal a potential reversal.
Parameters
The following parameters can be passed to the APO worker:
Parameters Schema (JSON)
{
"dataExp": {
"type": "string",
"description": "List of prices"
},
"fastperiod": {
"type": "number",
"default": 12
},
"slowperiod": {
"type": "number",
"default": 26
},
"matype": {
"type": "number",
"default": 0
}
}
Detailed Parameters
- dataExp:
- Type:
string
- Description: List of prices
- Type:
- fastperiod:
- Type:
number
- Default:
12
- Description: The period of the fast EMA
- Type:
- slowperiod:
- Type:
number
- Default:
26
- Description: The period of the slow EMA
- Type:
- matype:
- Type:
number
- Default:
0
- Description: The type of moving average (not used in APO calculation)
- Type:
Example Use Case
To use the APO worker, simply pass in the required parameters:
{
"dataExp": "[1, 2, 3, 4, 5]",
"fastperiod": 12,
"slowperiod": 26,
"matype": 0
}
The worker will return the APO values for each price in the list.