Hull-Kahlman Trend with Alerts
Aug 23, 2019

The Hull-Kahlman Trend with Alerts indicator provides a sophisticated trend-following mechanism by combining the responsiveness of Hull Moving Averages (HMA) with the smoothing capabilities of a Kahlman filter to identify market direction and potential reversals.
Usage
The indicator is designed to help traders identify the prevailing market trend through a visual ribbon formed by two variations of the Hull Moving Average. When the shorter-term trend line crosses above the longer-term line, the ribbon turns green, indicating a bullish trend. Conversely, when the shorter line crosses below, the ribbon turns red, signaling a bearish trend.
Traders can use the "B" (Buy) and "S" (Sell) labels to spot potential entry or exit points based on these trend shifts. The tool is particularly useful for:
- Identifying trend direction in trending markets.
- Spotting early signs of trend exhaustion or reversal.
- Setting up automated alerts for trend changes.
Details
This tool utilizes a modified HMA3 function, which offers enhanced smoothing compared to the standard HMA, alongside a Kahlman smoother (a variation of the Kalman filter). The Kahlman filter acts as a noise-reduction mechanism, aiming to follow the price action closely without the excessive lag typically associated with simple moving averages. By combining these two mathematical approaches, the script attempts to filter out market noise while maintaining high sensitivity to significant price movements.
Settings
- Price Data: Selects the source price for calculations (default is hl2).
- Lookback Window: Sets the period used for the HMA calculations.
- Show labels?: Toggles the visibility of the Buy/Sell labels on the chart.
- Use Kahlman Smoother?: Enables or disables the Kahlman filtering logic.
- Gain for the Smoother: Adjusts the sensitivity of the Kahlman filter; higher values increase responsiveness but may introduce more noise.
- Offset by 1 candle?: Shifts the labels back by one candle to align visually with the crossover event.
FAQ
How do I interpret the ribbon colors?
A green ribbon indicates a bullish trend where the modified HMA3 is above the base HMA. A red ribbon indicates a bearish trend where the modified HMA3 is below the base HMA.
What does the Gain setting do?
The Gain setting controls the Kahlman smoother's tracking speed. A lower gain results in a smoother line with more lag, while a higher gain makes the indicator track price more aggressively.
How can I access Hull-Kahlman Trend with Alerts?
You can get access on the LuxAlgo Library for charting platforms like TradingView, MetaTrader (MT4/MT5), and NinjaTrader for free.
Free indicator
Get free access to this indicator on the platforms below.
Unlock the entire LuxAlgo Library
Every indicator, every strategy, full charts, and complete access to Quant — our AI agent.