Linear Regression Line & Moving Linear Regression

A Linear Regression line can be applied to price or another indicator. Linear Regression lines are drawn backward from the most recent bar. The length of the line is the period specified. (On a Daily chart, a period of 50 would mean that the Linear Regression line is 50 days long.)

Linear Regression fits the best average line between any two points, thereby showing the trend clearly and accurately.

You can combine short and long periods to see the overall and short term trends.

A Moving Linear Regression line plots the path of the endpoint of a linear regression line back through the chart. The example below shows a 1000 period Linear Regression and a 30 period Moving Linear Regression. You'll notice that the end of the Moving Regression (cyan) coincides with the endpoint of the Regression line (yellow). The Moving Linear Regression doesn't actually display the regression line itself, but in the graphic examples here it's displayed for illustrative purposes.

Read more about Linear Regression analysis at Investopedia