OPEN-SOURCE SCRIPT
Updated

Donchian Channel Trend Intensity [DW]

17517
This is an experimental study designed to analyze trend intensity using two Donchian Channels.
The DCTI curve is calculated by comparing the differences between Donchian highs and lows over a major an minor period, and expressing them as a positive and negative percentage.
The curve is then smoothed with an exponential moving average to provide a signal line.

Custom bar colors included with two coloring methods to choose from.
Release Notes
Updates:

Cleaned up the code. Condensed the operations into a function.

Bar color selection is now an easy to use dropdown menu.

Disclaimer

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.