编辑精选
OPEN-SOURCE SCRIPT
已更新

Linear Regression (All Data)

46 498
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):
快照

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

And then do an auto-scroll to the last bar:
快照
版本注释
  • Add fix for intraday resolutions
版本注释
  • Fix index
版本注释
  • Add license

免责声明

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.