Skip to the content

Help / Indicator reference

Linear Regression Channel

One straight least-squares channel over the last N bars, with Pearson’s R.

Drawn on the price chart.

How it’s worked out#

Least-squares line through the last N closes; channel = line ± k · deviation

How to read it#

The slope is the trend’s direction and pace; price far from the line is stretched and tends to come back towards it.

Note:These are the common readings, not trading advice: no indicator is right every time, and most work better with others and with the trend.

Settings#

  • Length: 100 (1 to 1000)
  • Deviations: 2 (0.1 to 10)
  • Source: close
  • Extend lines: Right (No, Right, Left, Both ways)

What it draws#

    Add it to a chart#

    On the chart, open Indicators and search for “Linear Regression Channel”. Its settings open with a double-click on its line or its name in the legend, where the ? button leads back here. Alerts can watch any of its lines.

    Open the chart · Every indicator

    TradingView and Pine Script are trademarks of TradingView, Inc. OpenTapefolio is not affiliated with or endorsed by TradingView.