OPEN-SOURCE SCRIPT

Linear Regression Channel - RK

Updated
Sell when turns red.
Buy when turns green.

Don't be greedy, keep booking profit.
Gray means don't trade.
Release Notes
Added alerts
Release 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.
Linear Regression

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?


Also on:

Disclaimer