CDP (Contrarian Daily Price)
Indicator Description
CDP (Contrarian Daily Price) is a trend indicator that reflects the strength and direction of market trends by calculating price trend changes.
Function Information
- Function Name: CDP
- Input Parameters: High, Low, Close
- Parameter Settings: timeperiod (default: 20)
- Output: cdp, ah, al, nh, nl
Calculation Principle
CDP reflects the strength and direction of market trends by calculating price trend changes. When CDP is positive, it indicates an uptrend; when CDP is negative, it indicates a downtrend.
Application Scenarios
- Trend direction judgment
- Trend strength analysis
- Trend reversal identification
- Trading signal generation