Skip to content

Indicator Description

CR (Energy Indicator) is a trend indicator that reflects the strength and direction of market trends by calculating price trend changes.

Function Information

  • Function Name: CR
  • Input Parameters: High, Low, Close
  • Parameter Settings: timeperiod1 (default: 26), timeperiod2 (default: 10)
  • Output: cr, ma

Calculation Principle

CR is calculated using the following formula:

Midpoint = (High + Low) / 2
CR = SUM(High - Midpoint[-1], timeperiod1) / SUM(Midpoint[-1] - Low, timeperiod1) * 100

Where Midpoint[-1] is the midpoint value from the previous period.

Usage Scenarios

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