The Donchian Channel was developed by Richard Donchian and it could be compared to the Bollinger Bands. When it comes to volatility analysis, the Donchian Channel Width was created in the same way as the Bollinger Bandwidth technical indicator was.
You can change long to short in the Input Settings WARNING: - For purpose educate only - This script to change bars colors.