stealthy7

Stealthy 7 Linear Regression Channel Strategy

221
This is a Linear Regression Channel tool, similar to the hand tool in the left toolbar, but it automates the drawing. It has a rolling look back. Range mode shorts the upper channel and longs the lower crossover with no closing rules. Trend mode longs the break out and closes at the regression. It draws a linear line between the candles then computes an upper and lower deviation.

I find the tool random. It works sometimes. Eventually I believe Linear Channels will ruin your account. The next time you see someone posting rectangular channels remind them that its all in hindsight. The price won't stay in the rectangle. Every time you get a new candle the regression is redrawn. The range is constantly moving. Not great.

I'm publishing to show that linear regression channel isn't very good and to show people the price won't stay in a range that is tradeable. At the very least you'll have to find superior rules to avoid huge drawdown. I think that price isn't distributed well against a straight line (DUH).
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 a publication is governed by House Rules. You can favorite it to use it on a chart.

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.

Want to use this script on a chart?