Linear Regression Slope

Script which calculates the linear regression slope, giving an idea where enter or exit in a market position.
Please if anybody have suggestions, let me know.
Please if anybody have suggestions, let me know.
Disclaimer
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.
Disclaimer
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.