The Linear Regression Forecast indicators optionally smoothes the price data, performs a regression on the result, forecasts the regression lines if desired, and then optionally creates standard deviations bands above and below the regression line.
First, the data, based on the price selected, is smoothed using the moving average period and type. If you prefer no smoothing, choose a period of 1 here. The resulting data is then used to form regression lines ending at each bar, using the regression period specified. The values at each bar can optionally be forecasted values, determined by projecting the regression lines X bars into the future, X being the forecast period. If X=0, then no forecasting will occur. Standard deviation bands can then be drawn above and below the regression line, based on a number of standard deviations (standard deviation multiple) specified, and a standard deviation value computed using data in the the regression period range.