DEMA (Double Exponential Moving Average)
Indicator Description
DEMA (Double Exponential Moving Average) is an improved moving average that increases responsiveness to price changes by reducing lag.
Function Information
- Function Name:
DEMA - Input Parameters:
#Kline: K-line data
- Parameter Settings:
timeperiod: Time period (default: 30)
- Output: Moving average value
Calculation Principle
DEMA is calculated using the following formula:
DEMA = 2 * EMA(price) - EMA(EMA(price))
Where:
- EMA(price) is the first exponential moving average of price
- EMA(EMA(price)) is the double exponential moving average of price
Usage Scenarios
- Trend identification
- Support and resistance level judgment
- Price breakout confirmation
- Trading signal generation