Statistic Functions

Linear Regression Slope (Rate of Change) (LINEARREG_SLOPE)

Linear Regression Slope

Deep Dive

Everything You Need to Know

Under the Hood

How It Works

LINEARREG_SLOPE calculates the slope of the linear regression line over a specified period (default 14), measuring the rate of price change per bar. In the regression equation y = mx + b, this provides the 'm' value. Positive slopes indicate uptrends, negative slopes indicate downtrends, and slopes near zero suggest sideways markets. The slope value represents how much price changes per time period along the trend. Higher absolute slope values indicate stronger, faster trends. This is the mathematical rate of change along the best-fit line.

In Practice

How Traders Use It

Cryptocurrency traders use LINEARREG_SLOPE as a trend strength indicator and momentum filter. Positive slopes signal buy conditions; negative slopes signal sells; slopes near zero suggest avoiding trend-following strategies. LINEARREG_SLOPE excels for filtering trades by trend strength - only entering when |slope| exceeds a threshold ensures trading only strong trends. Combined with LINEARREG (trend position), LINEARREG_ANGLE (visual steepness), or momentum oscillators for confirmation, LINEARREG_SLOPE provides quantifiable trend momentum measurement. It's essential for systematic traders needing concrete trend strength metrics for automated decision-making.

Highlights

LINEARREG_SLOPE at a Glance

Slope of linear regression line (rate of change)
The 'm' in y = mx + b regression equation
Positive slope = uptrend; negative = downtrend
Zero slope = sideways/no trend
Higher absolute values = stronger trends
Measures price change per time period
Ideal trend strength filter for systematic trading
Default 14-period calculation
Popular for quantifiable momentum measurement

Get Started

Automate LINEARREG_SLOPE with cryptorobot.ai

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