The least squares moving average (LSMA) is a technical indicator that fits a straight line by linear regression to the closing prices of the last bars and plots the value of that line at the most recent bar. Repeating the fit on every bar and joining the end points gives a curve. It is also called the end point moving average, and it is the same calculation as the linear regression indicator.
Because the fitted line carries the recent direction of prices forward to the present, the LSMA tracks a trending market more closely than a simple moving average of the same length, which sits at the centre of its window and so lags. The cost is a tendency to overshoot at turning points. Traders read its direction, and its position against price or against another moving average, as a guide to the trend.