OPEN-SOURCE SCRIPT

Function : Linear Regression Bands

Updated

Used with Pearson Correlation. It can be used to make sense of the trends. Very successful results can be obtained with a MACD style indicator and volume indicator that gives Buy and Sell orders.Open for adaptive and mutable variable periods of moving averages. Best regards!
Release Notes
Dependent Variable Odd Generator Risk Detector used for detect Bollinger Band Width Squeeze.
Adjusted r squared used instead of r (correlation coefficient).

More info about Dependent Variable Odd Generator Risk Detector :
Dependent Variable Odd Generator Risk Detector
bandscorrelationLinear RegressionlinreglinregslopesqueezeSupport and ResistanceVolatility

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