Formula created by Brian Latta, author of The Book on Trading - The Secret Language of the Markets. Moving Average Channel concept by Jake Bernstein, author of many best-seller books on day-trading, including The Compleat Day Trader, Seasonal Futures Spreads, and more.
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.