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)

Skrip sumber terbuka

Dalam semangat sebenar TradingView, penulis telah menerbitkan kod Pine ini sebagai sumber terbuka supaya pedagang dapat memahami dan mengesahkannya. Sorakan kepada penulis! Anda boleh menggunakan perpustakaan ini secara percuma, tetapi penggunaan semula kod dalam penerbitan ini adalah dikawal oleh Peraturan dalaman. Anda boleh menyukainya untuk menggunakannya pada carta.

Ingin menggunakan skrip ini pada carta?

Penafian