PROTECTED SOURCE SCRIPT

[DEM] Double Hull Moving Average (DHMA)

11
[DEM] Double Hull Moving Average (DHMA) is designed to create an ultra-smooth and responsive trend-following indicator by applying the Hull Moving Average calculation twice to reduce lag while maintaining smoothness. The indicator first calculates a Hull Moving Average of the source price over the specified length (default 233), then applies another Hull Moving Average to the result, and finally uses the standard Hull formula (2 * HMA1 - HMA2) to create the Double Hull Moving Average. The resulting line changes color dynamically from green when trending upward to red when trending downward, with matching bar colors to provide clear visual confirmation of trend direction, offering traders a highly refined moving average that responds quickly to price changes while filtering out most market noise.

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.