// This source code is subject to the terms of the Mozilla Public License 2.0 at mozilla.org // © LonesomeTheBlue //@version=4 study("Linear Regression Channel", overlay = true, max_bars_back = 1000, max_lines_count = 300) src = input(defval = close, title = "Source") len = input(defval = 100, title = "Length", minval = 10) devlen = input(defval = 2., title =...