IndicatorBuilt inOther

Linear Regression Curve

Use on chart

Loading the chart…

Live chart with this indicator added. Change the symbol and timeframe inside the chart. 00 uses2 views0

What the Linear Regression Curve shows

The Linear Regression Curve plots the end point of a best-fit line over the last bars, as a smooth line on the price chart.

The Linear Regression Curve, also called the least squares moving average, connects the end points of rolling regression lines. It is drawn on the price chart as a smooth line.

For each bar, a straight line is fitted through the last Length source values by least squares. The curve shows the value of that line at the latest bar, or shifted by the Offset setting. Compared with a simple average it follows the trend more closely and lags less.

Traders read price above the curve as strength and below as weakness, and watch the curve direction as a trend filter. Crossings of price and curve are used as signals, although it can whip around in sideways markets. As the line fits to the latest bar, it can swing if recent bars are extreme.

Defaults are Length 14, Offset 0 and Source close. Longer lengths such as 50 or 100 are common on daily charts. Shorter lengths suit intraday Nifty charts. A positive offset reads the line at an earlier bar, and a negative one projects it forward.

How to use it

  1. Click Use on chart to add it with the default settings.
  2. Open its settings to change the Length, the Offset or the Source.
  3. Compare the curve direction with price to judge the short-term trend.

Settings and what it draws

Settings

InputTypeDefault
LengthWhole number14
OffsetWhole number0
SourcePrice sourceclose

Draws on the price chart

  • Linear Regression CurveLine

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