Donchian Trend

Hello All,

I think all of you knows Donchian Channels. so I am not going to write about it.

With this indicator I tried to create Trend Lines by using Donchian Channel upper/lower bands. I tried add possible entry levels as well.

How it works ?
- it calculates main trend direction by using the length that is user-defined. so you can change it as you wish
- then it calculates trend direction for 9 lower lengths. if you set the length = 20 then the lengths are 19, 18,...11
- and it checks if the trend directions that came from lower lengths is same or not with main trend direction.
- it changes the trendline color. lighter trend line means stonger trend, darker trend lines means entry points or possible trend reversal.
- it puts entry points by using trend directions that were created by using lower lengths. it gets entry points if high/low touches main trend line as well.

Warning: Arrows are entry points but it may also represents trend reversal. So you should use stoploss line if you decide to take buy/sell positions.

P.S. I didn't backtest it, it's non-repainting, it should be used educational purposes only. I believe it can be improved, so I am open for new ideas to improve it ;)

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?
If you find my works useful, please consider a donation
BTC: 19qDW9AShZhBZsGuXcgRzam5Fbpc3EU8EV
ETH: 0x39c8552371b9b7f4e324197af460ba8bc8e18ef9


Really great idea, I love stuff like this. Nice work!
+4 Reply
I saw your "My Script" indicator ;) And want to have it haha
+3 Reply
LonesomeTheBlue RedBeard_0x
@RedBeard_0x, sure I will publish it as well ;)
+3 Reply
puvanarul LonesomeTheBlue
@LonesomeTheBlue, lovely when u publish?
I like it, thank man
+2 Reply
hi bro, could edit minval to 5 please
excellent work :)
Home Stock Screener Forex Screener Crypto Screener Economic Calendar About Chart Features Pricing Refer a friend House Rules Help Center Website & Broker Solutions Widgets Charting Solutions Lightweight Charting Library Blog & News Twitter
Profile Profile Settings Account and Billing Referred friends Coins My Support Tickets Help Center Private Messages Chat Sign Out