Editors' picksOPEN-SOURCE SCRIPT

Linear Regression (All Data)

By everget
Wizard
Updated
The tool plots a linear regression line using the entire history of an instrument on chart. There are may be issues on intraday timeframes less then 1h. On daily, weekly and monthly charts it works without problem.

If an instrument has a lot of data points, you may not see the line (this is TV feature):
snapshot

To fix that you need to scroll your chart to the left and find the starting point of the line:
snapshot

And then do an auto-scroll to the last bar:
snapshot
Release Notes
  • Add fix for intraday resolutions
Release Notes
  • Fix index
Release Notes
  • Add license
Linear RegressionlineartrendregressionregressionanalysisTrend Analysis
everget
Wizard
Freelance -> Telegram: @alex_everget

A list of FREE indicators:
bit.ly/2S7EPuN

A list of PAID indicators:
bit.ly/33MA81f

Earn $15:
tradingview.com/pricing/?share_your_love=everget

Open-source script

In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in publication is governed by House rules. You can favorite it to use it on a chart.

Want to use this script on a chart?

Disclaimer