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.

Penafian

Maklumat dan penerbitan adalah tidak dimaksudkan untuk menjadi, dan tidak membentuk, nasihat untuk kewangan, pelaburan, perdagangan dan jenis-jenis lain atau cadangan yang dibekalkan atau disahkan oleh TradingView. Baca dengan lebih lanjut di Terma Penggunaan.