OPEN-SOURCE SCRIPT

Donchian Trend Signals

Updated
The Donchian Trend Signals is an indicator developed to help traders identify the current trend direction and potential liquidity grabs.

The usage of the indicator is very simple, on the chart you'll see a modified version of the classic and popular Donchian channel, calculated using the closing prices, that changes the color of the average middle line to indicate the direction of the current trend. The indicator also colors the candlestick.

Using the option "Complex Mode" will give your indicator additional data by changing the calculation method. These changes make the lines become the average between different lengths of the same Donchian channel formula.

Additionally, the indicator plots on the chart some buy or sell signals, displayed as diamonds above or below the candles. The signals are calculated to find potential liquidity grabs using the wicks, the true range of the candles, and the volume compared to his average value.
Release Notes
Breakout signals added: Breakout occurs whenever the closing price crosses above or below the Donchian lines. The color of the breakout signals, displayed as triangles in the direction of the breakout, depends on the decisiveness of the candle responsible for the breakout.
Release Notes
Added the option to use Closing prices instead of Highs and Lows
Donchian Channels (DC)Support and ResistanceTrend Analysis

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

Want to use this script on a chart?


Also on:

Disclaimer