Donchian Channels are formed by taking the highest high and the lowest low of the last n periods. They are useful for identifying breakout trading signals.
//@version=6
indicator('Donchian Channels', overlay=true)
len = input.int(20, 'Length')
plot(ta.highest(len), 'Upper', color=color.orange)
plot(ta.lowest(len), 'Lower', color=color.orange)Enhance your trading workflow with these professional tools and platforms.
Get funded up to $300K. Keep 90% of your profits.
The professional choice for secure execution.
Mirror top-tier traders instantly.