Linear Regression Angle
Linear regression angle is an important indicator in quantitative trading used to measure the strength of a trend, representing the tilt angle of the linear regression line.
Calculation Principle
Linear regression angle is calculated using the following formula:
angle = arctan(slope) × (180/π)
Where:
- slope: Linear regression slope
- arctan: Arctangent function
- π: Pi
Parameter Description
- Input Parameters: One K-line data series
- timeperiod: Calculation period, default 14
- Output: Linear regression angle (degrees)
Usage Recommendations
- Adjust calculation period according to actual needs
- Pay attention to data time span
- Consider data frequency
- Pay attention to data alignment
- Recalculate periodically
- Pay attention to result interpretation
- Combine with other technical indicators
- Pay attention to angle changes
Notes
- Ensure data quality
- Pay attention to data preprocessing
- Consider the impact of extreme values
- Pay attention to the impact of calculation period
- Consider data stationarity
- Pay attention to result stability
- Consider the impact of sample size
- Pay attention to trend persistence
- Consider changes in market environment
- Pay attention to angle interpretation