ema
EMA
Type:
ema
• Category:indicators
Description
Calculates the exponential moving average based on a list of prices
Parameters
Name | Type | Description | Required | Default |
---|---|---|---|---|
dataExp | string | List of prices | no | |
timeperiod | number | no | 30 |
Help
EMA
Exponential Moving Average Indicator
Description
The EMA worker calculates the exponential moving average based on a list of prices. This indicator is commonly used in financial markets to analyze trends and make informed investment decisions.
What does this worker do?
This worker takes a list of prices and a time period as input, and returns the exponential moving average of the prices over the specified time period.
How to interpret the results
The result of the EMA worker is a single value representing the exponential moving average of the input prices. A higher EMA value indicates a stronger upward trend, while a lower EMA value indicates a stronger downward trend. The EMA value can be used to:
- Identify trends: A rising EMA indicates an upward trend, while a falling EMA indicates a downward trend.
- Make buy/sell decisions: When the EMA is rising and the current price is above the EMA, it may be a good time to buy. When the EMA is falling and the current price is below the EMA, it may be a good time to sell.
Parameters
The following parameters are required to configure the EMA worker:
Parameters Schema (JSON)
{
"dataExp": {
"type": "string",
"description": "List of prices"
},
"timeperiod": {
"type": "number",
"default": 30
}
}
Parameters List
- dataExp:
- Type:
string
- Description: List of prices
- Example: "10.5, 12.3, 11.8, 13.2"
- Type:
- timeperiod:
- Type:
number
- Description: Time period for the EMA calculation
- Default:
30
- Example: 20, 50, 100
- Type:
Usage
To use the EMA worker, simply provide a list of prices and a time period, and the worker will return the exponential moving average. For example:
- Input:
dataExp = "10.5, 12.3, 11.8, 13.2"
,timeperiod = 3
- Output: The EMA value for the specified time period.