PROTECTED SOURCE SCRIPT

[DEM] Donchian Moving Average

21
[DEM] Donchian Moving Average is designed to create a smoothed trend-following indicator by combining Donchian Channel methodology with moving average smoothing to reduce noise and provide clearer directional signals. The indicator calculates the midpoint of the highest high and lowest low over a specified period (default 20 bars), then applies additional smoothing using an RMA (default 10 periods) to create a more stable trend line. The resulting moving average changes color from blue to red based on its relationship to its own short-term smoothed version (5-period RMA), with blue indicating upward momentum and red indicating downward momentum, while also coloring the price bars to match the trend direction for enhanced visual clarity of the overall market bias.

Отказ от ответственности

Все виды контента, которые вы можете увидеть на TradingView, не являются финансовыми, инвестиционными, торговыми или любыми другими рекомендациями. Мы не предоставляем советы по покупке и продаже активов. Подробнее — в Условиях использования TradingView.