User-Defined Period: Users can customize the lookback period (default 20 periods), allowing flexibility in different trading styles and timeframes.
Channel Calculation: The upper and lower bounds of the Donchian Channel are calculated based on the highest high and lowest low over the chosen period.
Percentage Calculation: DC% quantifies where the current price lies within the channel, presented as a percentage. A value of 0% indicates the price at the channel's low, and 100% signifies the price at the high.
Visualization: The DC% is plotted as a line graph, providing a clear visual representation of the price’s relative position. The indicator includes horizontal lines at 0% and 100%, marked in red and green, respectively, to depict the channel's boundaries.
Market Analysis Tool: DC% offers insights into market trends and potential overbought or oversold conditions, making it a valuable addition for traders who focus on channel-based strategies.
The DC% is particularly useful for identifying breakout scenarios and potential reversals.
Traders can use this tool in conjunction with other indicators to enhance their market analysis, especially in strategies that capitalize on price extremes within a defined range.
In summary, the Donchian Channel Percentage offers traders a simple yet powerful tool to gauge the current price’s position within a historical high-low range. Its adaptability across various assets and timeframes makes it a versatile addition to any technical trader’s toolkit."
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.