Skip to main content

dema


DEMA

Type: dema • Category: indicators

Description

Calculates double exponential moving average based on a list of prices

Parameters

NameTypeDescriptionRequiredDefault
dataExpstringList of pricesno
timeperiodnumberno30

Help

DEMA

Double Exponential Moving Average Indicator

Description

The DEMA (Double Exponential Moving Average) worker calculates the double exponential moving average based on a list of prices. This indicator is commonly used in financial markets to analyze trends and make informed trading decisions.

What does this worker do?

This worker takes a list of prices and a time period as input, and returns the double exponential moving average of the prices over the specified time period. The DEMA indicator helps to smooth out price fluctuations and provide a clearer picture of the market trend.

How to interpret the results

The DEMA indicator can be used to:

  • Identify trends: A rising DEMA indicates an uptrend, while a falling DEMA indicates a downtrend.
  • Signal buy and sell opportunities: When the DEMA crosses above or below the price, it can be used as a buy or sell signal.

Parameters

The following parameters can be passed to the DEMA 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
  • timeperiod:
    • Type: number
    • Description: Time period for the calculation
    • Default: 30

Example Use Case

To calculate the DEMA for a list of prices with a time period of 30, you can pass the following parameters:

{
"dataExp": "[10.0, 12.0, 15.0, 13.0, 14.0]",
"timeperiod": 30
}

This will return the double exponential moving average of the prices over the specified time period.