OPEN-SOURCE SCRIPT

F.B_Double Hull Moving Average Trend Tracker

The F.B_Double Hull Moving Average Trend Tracker indicator is designed to identify market trends and is based on two Hull Moving Averages.

The "Hull Moving Average" (HMA) is a fast and smooth moving average that exhibits a rather unique behavior. The HMA attempts to completely remove lag while simultaneously presenting smoother results.


The first derivative is calculated for each HMA 1 and HMA 2.

If HMA 1 derivative > 0 and HMA 2 derivative > 0, then color the HMA lines and bar color green.

If HMA 1 derivative < 0 and HMA 2 derivative < 0, then color the HMA lines and bar color red.

If the slope of the derivative is different between HMA 1 and HMA 2, then color the HMA lines and bar color gray.


Meaning of colors:

Green ⇒ Uptrend

Gray ⇒ Price consolidation, trend weakness, or correction

Red ⇒ Downtrend


Best used in conjunction with additional indicators.
Exponential Moving Average (EMA)Hull Moving Average (HMA)Weighted Moving Average (WMA)

Open-source script

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 publication is governed by House rules. You can favorite it to use it on a chart.

Want to use this script on a chart?

Disclaimer