jaggedsoft

Hull Trend

Here we are using Hull Moving Average crossovers as an experiment in trend detection.

The Hull Moving Average ( HMA ) is an extremely fast and smooth moving average .

Credit to alexgrover & RicardoSantos:
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 a publication is governed by House Rules. You can favorite it to use it on a chart.

Want to use this script on a chart?

Comments

Here's an updated version with the Kahlman smoother. As a result signals are shifted to the left by 1 one candle.
+5 Reply
@capissimo, you say signals are shifted one candle to the left? So the actual signal that is being alerted should be considered to be one candle after the signal, correct? Just curious if there might be any way to keep the smoother but get the alerts on the right candle? Great work though.
Reply
capissimo Kryptocoinking2u
@Kryptocoinking2u,
...signals are shifted one candle to the left - Right. And so is the alert.
Looking at it differently, notice the offset=-1 parameter in the plot function in the original and this version. I left it unchanged, but my current version allows to omit this parameter and still have the outcome as in the original with the difference that the signal becomes more precise, by 1 candle. Did I answer your question?
+3 Reply
jaggedsoft capissimo
check out his other work @Kryptocoinking2u
+1 Reply
@capissimo, so this current version if we just added it like yesterday has the more precise signal? If that's the case then I'm more than ok with it. So far it has proven to be very accurate.
+1 Reply
capissimo Kryptocoinking2u
@Kryptocoinking2u, the only difference is the length param value which was 24. It seems values in the range between 13 and 24 work the best.
Reply
@capissimo - Thank you for creating this. It looks really good. Trying to determine how to fire an alert on the buy and sell signals. When I load the alerts interface, I am just getting

Plot
Plot
Shapes
Shapes

Any help would be appreciated and thank you again.
+1 Reply
clickbrain clickbrain
@clickbrain, please ignore. posted in the wrong discussion. Apologies.
Reply
sesanolaiya clickbrain
@clickbrain, were you able to figure out how to plot the alerts pls?
Reply
Home Stock Screener Forex Screener Crypto Screener Economic Calendar About Chart Features Pricing Refer a friend House Rules Help Center Website & Broker Solutions Widgets Charting Solutions Lightweight Charting Library Blog & News Twitter
Profile Profile Settings Account and Billing Referred friends Coins My Support Tickets Help Center Private Messages Chat Sign Out