Ultimate Trend Channel

The "Ultimate Trend Channel" indicator is a comprehensive trend analysis tool that calculates and displays a series of upper and lower bands based on user-defined input lengths. It uses linear regression and standard deviation to determine these bands for each of the 21 different group lengths. The indicator then computes the averages of these upper and lower bands, as well as the average of all the bands combined.

The visualization on the chart includes the plotting of the average upper and lower bands, with the space between these bands shaded for easy visualization of the overall trend. Additionally, the average of all the bands, referred to as the "Ultimate Trend Line," is also plotted on the chart.

This indicator provides a robust way of assessing market trends and volatility over varying periods, which can be extremely useful for both short-term and long-term trading strategies.

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 a publication is governed by House Rules. You can favorite it to use it on a chart.


The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.

Want to use this script on a chart?