Linear Regression Slope
Loading the chart…
What the Linear Regression Slope shows
Linear Regression Slope shows the gradient of a best-fit straight line over the last bars, in price units per bar.
Linear regression fits a straight line through recent prices by the least squares method. The slope of that line tells you how fast, and in which direction, price has been trending over the window.
For each bar, the indicator fits a line through the last Length source values and plots its slope. The unit is price points per bar, so it depends on the price level of the instrument. A dotted zero line is drawn.
A slope above zero means the best-fit trend is rising, and below zero falling. A rising slope shows the trend gaining speed, and a falling one shows it losing speed. Zero-line crossings show a turn in the fitted trend. Because it looks back over a window, it lags sharp reversals.
Defaults are Length 14 and Source close. A shorter length responds faster on intraday charts of Nifty and Bank Nifty. A longer length gives a smoother view of the main trend. Values cannot be compared across instruments with different prices.
How to use it
- Click Use on chart to add it with the default settings.
- Open its settings to change the Length or the Source.
- Watch the zero line and whether the slope is rising or falling.
Settings and what it draws
Settings
| Input | Type | Default |
|---|---|---|
| Length | Whole number | 14 |
| Source | Price source | close |
Draws in its own pane
- SlopeLine
- Zero LineLevel at 0
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