Inspired by everget's implementation of Kirshenbaum Bands. This indicator was originally developed by Paul Kirshenbaum, a mathematician with a Ph .D. in economics from New York University.
It uses the standard error of linear regression lines of the closing price to determine band width. This has the effect of measuring volatility around the current trend, rather than measuring volatility for changes in trend.