Thank you to alexgrover for putting me wide to this, after putting up with long conversations and stupid questions. Follow him and behold: www.tradingview.com What is this? This is simply the function for a Least Squares Moving Average. You can render this on the chart by using the linreg() function in Pine. Personally I like to use the slope of the LSMA to...
The worst way of the using Linear Regression
TradingView Pine script to compare fast vs slow linear regression lines measured in days. This indicator compares fast and slow linear regression lines, and that's it! The fast line crossing above the slow line is generally bullish. The fast line crossing below the slow line is generally bearish. The lines and the space between them tend to act as...