OPEN-SOURCE SCRIPT
Updated Linear Regression Channel - RK

Sell when turns red.
Buy when turns green.
Don't be greedy, keep booking profit.
Gray means don't trade.
Buy when turns green.
Don't be greedy, keep booking profit.
Gray means don't trade.
Release Notes
Added alertsRelease Notes
Included Camarilla calculations, also.Credits added.
Release Notes
Changed default length to 120 from 300.300 is good, 120 seems little better for the stocks I do.
Please tune according to your instruments.
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.