Linear Regression Slope
Under the Hood
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
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.
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.