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

  1. Trend direction judgment
  2. Trend strength analysis
  3. Trend reversal identification
  4. Trading signal generation
Last Updated: