Linear Regression

lin_reg_val

Function Name: lin_reg_val

Tags: Statistics

Category: Trend

The Linear Regression indicator is a statistical tool used to predict future market values relative to their past values, and is normally plotted on a price chart as a straight line like a trend line. The Linear Regression indicator, however, does not plot a straight line when it is plotted, it curves through price activity. Its curve is a result of plotting a line through each end point of invisible linear regression trend lines. Each invisible trend line plots the minimal distance between closing prices, using the least squares method, over the number of bars defined in the input Period.

The indicator helps to determine where a market's price might be in the near future using current and past price history. If prices are trending up, linear regression attempts to logically determine what the upward bias of the price may be relative to the current price. If prices are trending down, it will attempt to determine the downward bias of the price. Some analysts believe that when prices rise above or fall below the linear regression line, they are overextended and will begin to move back towards the line. Thus, the line is used to monitor when a price move may change direction.

 

Link:       http://www.investopedia.com/terms/r/regression.asp

 

Parameters

period

 

Default Value: 14  |  Minimum: 1  |  Maximum: 9999

 

Type: Numeric

targetB

 

Default Value: 0  |  Minimum: -1000  |  Maximum: 1000

 

Type: Numeric