TradingView
everget
29 Th07 2020 18:31

Linear Regression (All Data) 

Bitcoin Liquid IndexBrave New Coin

Mô tả

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:

Phát hành các Ghi chú

  • Add fix for intraday resolutions

Phát hành các Ghi chú

  • Fix index

Phát hành các Ghi chú

  • Add license
Bình luận
PineCoders
PineCoders
This publication will be featured in our "Best Scripts of The Month" selection. Thank you for your valuable contribution to the TradingView community, and congrats!
everget
@PineCoders, wow PineCoders, how are you, gentleman?
PineCoders
@everget, ) Good! Very busy but good. Thx again for the script.
giacomo.ferrari15
you the best
everget
@giacomo.ferrari15, thanks!
Canundo
It is faulty for me on 1D XBTUSD. Oh wait, it only works on non log charts.
Very interesting.
bharatTrader
Wonderful! Thanks.
everget
@bharatTrader, you are welcome
Pratik_4Clover
Out of curiosity, is there any advantage in declaring "var int MAX_BARS_BACK = 5000" outside of the study line itself? I'm seeing this kind of application first time, so asking if you don't mind ^^
Thêm nữa