kama
KAMA
Type:
kama
• Category:indicators
Description
Calculates the exponential moving average KAMA based on a list of prices
Parameters
Name | Type | Description | Required | Default |
---|---|---|---|---|
dataExp | string | List of prices | no | |
timeperiod | number | no | 30 |
Help
KAMA
Description
The KAMA (Kaufman Adaptive Moving Average) worker calculates the exponential moving average KAMA based on a list of prices. This indicator is commonly used in financial markets to gauge the direction and strength of market trends.
What does this worker do?
This worker takes a list of prices and a time period as input, and returns the KAMA values for the given prices. The KAMA is a type of moving average that adapts to the volatility of the market, making it a useful tool for traders and analysts.
How to interpret the results
The KAMA values returned by this worker can be used to:
- Identify trends: When the KAMA is rising, it indicates an uptrend, and when it's falling, it indicates a downtrend.
- Generate signals: Crossovers between the KAMA and other moving averages or price levels can be used to generate buy or sell signals.
Parameters
The following parameters can be passed to the KAMA worker:
Parameters Schema (JSON)
{
"dataExp": {
"type": "string",
"description": "List of prices"
},
"timeperiod": {
"type": "number",
"default": 30
}
}
Detailed Parameters
- dataExp:
- Type:
string
- Description: A list of prices used to calculate the KAMA.
- Type:
- timeperiod:
- Type:
number
- Description: The time period used to calculate the KAMA.
- Default:
30
- Type:
Usage
To use this worker, simply pass in a list of prices and a time period, and it will return the KAMA values. For example:
{
"dataExp": "10, 20, 30, 40, 50",
"timeperiod": 30
}
This will return the KAMA values for the given prices and time period.