OPEN-SOURCE SCRIPT

Multi-Optimized Linear Regression Channel

Updated
A take on alexgrover's Optimized Linear Regression Channel script which allows users to apply multiple linear regression channel with unique multiplicative factors.

Multiplicative Factors

Adjust the amount of channels and multiplicative factors of existing or additional channels using the "Mults" input.

  • An input of "1" creates a single linear regression channel with the multiplicative factor of one.
  • An input of "4" creates a single linear regression channel with the multiplicative factor of four.
  • An input of "1,4" creates two linear regression channels with multiplicative factors of one and four.
  • An input of "1,2,3" creates three linear regression channels with multiplicative factors of one, two, and three.
Release Notes
Remove a debug label on lines 179 through 181.
Bands and ChannelsChannelslinear-regressionmultiregressionsstatistics

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