Statistic Functions

Linear Regression Angle (Trend Steepness) (LINEARREG_ANGLE)

Linear Regression Angle

Deep Dive

Everything You Need to Know

Under the Hood

How It Works

LINEARREG_ANGLE calculates the angle in degrees of the linear regression line over a specified period (default 14), providing a measure of trend steepness. The angle is derived from the arctan of the regression slope, converted to degrees. Positive angles indicate uptrends (0 to 90°), negative angles indicate downtrends (0 to -90°), and angles near zero suggest sideways markets. Steeper angles (higher absolute values) indicate stronger, more aggressive trends. This converts the abstract concept of 'slope' into an intuitive angular measurement.

In Practice

How Traders Use It

Cryptocurrency traders use LINEARREG_ANGLE to quantify trend strength and steepness in intuitive units. Angles above +45° suggest aggressive uptrends; below -45° indicate aggressive downtrends; between -15° and +15° suggest ranging markets. LINEARREG_ANGLE excels as a trend strength filter - only taking trend-following trades when the angle exceeds a threshold (e.g., |angle| > 30°). Combined with LINEARREG for trend direction and TSF for forecasts, LINEARREG_ANGLE provides comprehensive statistical trend analysis. It's popular among systematic traders who need quantifiable trend metrics for automated decision rules.

Highlights

LINEARREG_ANGLE at a Glance

Angle in degrees of linear regression line
Positive angles = uptrend; negative = downtrend
Zero angle = sideways/no trend
Steeper angles = stronger trends
Typical range: -90° to +90°
Derived from arctan of regression slope
Ideal trend strength filter for systematic strategies
Default 14-period calculation
Popular for quantifiable trend measurement

Get Started

Automate LINEARREG_ANGLE with cryptorobot.ai

Build automated strategies using Linear Regression Angle (Trend Steepness) and hundreds of other indicators. Connect to your favourite exchange and let the bot execute trades 24/7 — no code required.