OPEN-SOURCE SCRIPT

DB LinReg Price Channel

DB LinReg Price Channel

What does the indicator do?

This indicator is very simple and designed to plot a quick linear regression channel for high, hlc3, and low. It allows the symbol and timeframe to be configured in the settings.

The purpose of the indicator is to obtain a price channel for the desired timeframe with outliers removed.

How should this indicator be used?

I personally use two of the indicators with one set to the current timeframe and the second set to 2x of the current timeframe. For example, 12H and Daily which gives you a fast and slow price channel for your desired timeframe. Price channels can help you know the value of the current price in respect to the timeframe and for pricing stop losses and liquidation levels.

Does the indicator include any alerts?

Not yet.

Use at your own risk and do your own diligence.

Enjoy!
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?

Disclaimer