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) * 100Where Midpoint[-1] is the midpoint value from the previous period.
Usage Scenarios
- Trend direction judgment
- Trend strength analysis
- Trend reversal identification
- Trading signal generation