Donchian channels were developed by Richard Donchian , the father of trend following. The two outer bands are plotted as the highest high and lowest low for a set period of time.

In the FiboDonchian, the channel is divided into 3 zones according to Fibonacci levels:
0-0.382 ( Bullish Zone)
0.382-0.618 (Neutral Zone)
0.618-1( Bearish Zone)

These levels will usually act as support and resistance during trends, and will reverse depending on the direction of the trend (e.g. in an uptrend the .382 is above the .5 and during a downtrend it is below).

An option to color candles according to the trend is given, with the following logic:
-During uptrends, candles will turn bullish when a new high is made and will remain in this state as long as price closes in the upper zone. Below this zone price turns neutral until a new high or low is made.
-During downtrends, candles will turn bearish when a new low is made and will remain like this provided that price closes in the lower zone. Above this zone price turns neutral until a new low or high is made.

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.

Want to use this script on a chart?