Price Band
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// © vikasrangkapoor

//@version=5
indicator(title = "Price Band", shorttitle="VRKPB", overlay=true, timeframe="", timeframe_gaps=true)
length = input(title="Length", defval=25)
offset = input(title="Offset", defval=0)
src = input(close, title="source")
lsma = ta.linreg(src, length, offset)
plot(lsma)
