Linear Regression (LINREG)

Category: trend

Calculates the Linear Regression Line (LRL) and its slope by fitting a least-squares line to a historical price series.

Formula

Slope (s) = \frac{n\sum(xy) - \sum x \sum y}{n\sum x^2 - (\sum x)^2} \\ Intercept = \bar{y} - s \cdot \bar{x} \\ LinReg = Intercept + s \cdot (n-1)

Inputs

See signal primitives, usage in published strategies and more on WOBR StrategyVerse.


Open in the WOBR AI app → · WOBR.AI home