LinearRegCurve

Description

The Linear Regression Curve is plotted using the least-squares method to approximate price for the specified number of bars.

Input Parameters

Parameter Description
displace The displacement of the study, in bars. Positive values signify a backward displacement.
length The number of bars for which the price is approximated.
price The price used in calculations.

Plots

Plot Description
LinReg The Linear Regression Curve.

Example*

*For illustrative purposes only. Not a recommendation of a specific security or investment strategy.