capissimo

Hull Trend with Kahlman

This is an update to the idea of The Kahlman smoother makes the signal more precise (by one candle).
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

Thank you so much for this valuable script. Question: Is the result without repainting? Thanks in advance for the answer. Maybe also an Idea for an Alertcondition statement?
+2 Reply
capissimo CryptoLoverGER
@cihanoezkaya, according to a recent article on repainting, since the script does not contain a security statement a-la security(..., price, ...), where price is close, hl2, or any other CURRENT value, it does not repaint.

alertcondition(crossup, title='Buy', message='go long')
alertcondition(crossdn, title='Sell', message='go short')
+4 Reply
Thank you so much what a wonderfull script. Do you have any idea what indicator combination I can use it with to further improve the signals?
I tried it with oscillators but they give horrible results.
Reply
capissimo youssefijburg
@youssefijburg, welcome to the trial-and-error methodology)
For starters you can try these:



- this one should be adjusted to avoid repainting: change current hlc3 value to the previous hlc3 value in security func.
+2 Reply
youssefijburg capissimo
@capissimo, Awesome, I will try them, thank you
Reply
Excellent work by the way - I use this everyday..
Reply
Capissimo, what settings are you supposed to use with the "Gain" function?
Reply
capissimo Hunter-Gatherer
@Hunter-Gatherer, here's an update. Removed factor 1000.
gain = input(.5, "Gain", step=.01)
kahlman(x, g) =>
kf = 0.0
dk = x - nz(kf, x)
smooth = nz(kf,x)+dk*sqrt(g*2)
velo = 0.0
velo := nz(velo,0) + (g*dk)
kf := smooth+velo
Reply
@capissimo, the kahlman doesnt work with this
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