Indicator Description
DMA (Difference of Moving Average) is a trend indicator that reflects price trend changes by calculating the difference between two moving averages of different periods.
Function Information
- Function Name: DMA
- Input Parameters: Open
- Parameter Settings: timeperiod1 (default: 13), timeperiod2 (default: 55)
- Output: ddd, ama
Calculation Principle
DMA is calculated using the following formula:
DDD = MA(Close, timeperiod1) - MA(Close, timeperiod2)
AMA = MA(DDD, 5)Where MA is the moving average.
Usage Scenarios
- Trend direction judgment
- Trend strength analysis
- Trend reversal identification
- Trading signal generation
Usage Recommendations
- DMA turning from negative to positive can be seen as a buy signal
- DMA turning from positive to negative can be seen as a sell signal
- Use in combination with other trend indicators
- Pay attention to the impact of parameter settings