← Back to all indicators
Trend

Least Squares Moving Average

LSMA

Fits a linear regression line to the last N closes and plots its endpoint, showing where the trend line 'is' right now. It reduces noise by treating price as a statistical trend rather than a simple average.

Tips

LSMA is smoother than EMA on trending assets; price consistently above it is a reliable bull-trend confirmation
Use LSMA as a trailing exit: close a position when price closes below (long) or above (short) the LSMA for two consecutive bars

Parameters

Period
2 - 100