Least Squares Moving Average
Loading the chart…
What the Least Squares Moving Average shows
The least squares moving average: the end point of a straight line fitted to the last N prices.
The Least Squares Moving Average (LSMA), also called the linear regression line or end point moving average, fits a straight line through the last N prices using the least squares method. The value plotted on each bar is where that fitted line ends, at the current bar.
Since the line is projected to the latest bar rather than averaged across the window, it lags less than a simple average of the same length. Traders read its slope as the trend direction. Price crossing above the line is read as improving momentum, and crossing below as weakening momentum. In a strong, steady trend the line tends to run close to price, but at sudden reversals it can overshoot.
On Free Charts the default length is 25 on the close price, with an Offset input. Shorter lengths suit intraday charts of Nifty, Bank Nifty and liquid stocks, while 25 and above is typical for daily charts.
How to use it
- Click Use on chart to add it with the default settings.
- Open its settings to change the length, source or offset.
- Watch the slope of the line and where price crosses it, and compare it with a simple average of equal length.
Settings and what it draws
Settings
| Input | Type | Default |
|---|---|---|
| Length | Whole number | 25 |
| Source | Price source | close |
| Offset | Whole number | 0 |
Draws on the price chart
- LSMALine
Comments (0)
No comments yet. Be the first to say how it worked for you.
More built-in tools
See all-
Majority Rule
Majority Rule shows the percentage of the last bars that closed higher than the bar before. Majority Rule is a simple measure of how often price has gone up over a recent window, as a percentage of…
Other 101 -
Historical Volatility
Shows the annualised standard deviation of log price returns over the last N bars, as a percentage. Historical Volatility measures how much price has actually moved. It takes the logarithm of the…
Volatility 100 -
Double EMA
The double exponential moving average: an EMA built to remove part of the lag of a normal EMA. The Double Exponential Moving Average (DEMA) was introduced by Patrick Mulloy. It takes an EMA and an…
Trend 010