This study is calculated in the following way. If you have a 20 period moving linear regression, then for a given day take the price of the instrument on that day and the previous 19 positions as your data set of x,y pairs.
Then calculate the least square best fit line that would pass through this series of data points.
Take the value of the best fit line on the day in question. That is the moving linear regression for that given day.
Perform this calculation for all the positions in the study.

Parameters:

Period -The number of bars in a chart (Default is 3).

MLR