Skip to content
Strategy StudioSign in
Back to Library

Linear regression slope (20)

TrendLine

Least-squares slope of the last 20 closes, in price per bar.

Preview

We can’t reach market data right now. Try again in a moment.

What it measures

The least-squares slope of the last N closes, in price per bar: trend as a rate rather than a line.

Inputs
Length 20Source close
Output
A line, in price
Feeds
Entry and exit rules
Warm-up
20 bars before its first reading
Updates
When each bar closes
Filters entries
No. It’s measured and charted, and doesn’t change which entries are taken.
Part of
Linear Regression Slope
Also known as
LinReg Slope, Least Squares Slope

More in Trend

See all