OPEN-SOURCE SCRIPT
Log-Regression Channels RV

This Pine Script indicator plots an anchored logarithmic regression channel directly on the price chart. The user can define a start and end date for the regression period. The script calculates the regression on the logarithm of price and projects the trend line into the future. It also draws ±1, ±2, and ±3 standard deviation bands around the trend, with customizable colors, line widths, and line styles. A current sigma label shows how many standard deviations the latest price is above or below the regression trend.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
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.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
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.