Trend Reversal Indicator HMA-Kahlman (m15)
Feb 2, 2025

The Trend Reversal Indicator HMA-Kahlman tool provides a dynamic trend detection system that combines the responsiveness of the Hull Moving Average (HMA) with the smoothing capabilities of the Kahlman filter to identify potential market reversals.
Usage
The indicator can be used to identify trend direction and potential entry or exit points through its visual interface. The script plots two primary lines; when the area between them is green, it indicates an upward trend, while a red area indicates a downward trend.
- Reversal Signals: The script displays "B" (Buy) labels when a bullish crossover occurs and "S" (Sell) labels during bearish crossovers. These signals are particularly effective on lower timeframes like the 15-minute (m15) chart for intraday trading.
- Trendlines: The indicator includes an automated trendline module that identifies pivot points to project support and resistance levels. Dotted green lines indicate rising support, while dotted red lines indicate falling resistance.
- Volatility Adaptation: Due to the HMA-Kahlman blend, the tool is designed to filter out noise in volatile markets, making it suitable for assets like Bitcoin and other high-fluctuation instruments.
Details
The script utilizes two variations of the Hull Moving Average to create a tracking envelope. The first is a standard HMA of the source price, while the second uses a modified HMA calculation (hma3) applied to the close. Both outputs are processed through a Kahlman filter—a mathematical method used to estimate the state of a process in a way that minimizes the mean of the squared error. This combination results in a smoother signal that maintains low latency compared to traditional moving averages.
Settings
HMA-Kahlman Trend Module
- Price Data: Sets the source price used for the primary HMA calculation (default is HL2).
- Lookback Window: Determines the period for the HMA and HMA3 calculations. Higher values result in smoother but slower signals.
- Use Kahlman?: Toggles the Kahlman filter on or off.
- Gain: Controls the Kahlman filter's tracking speed. A higher gain makes the filter more responsive to price changes.
- Show Labels?: Toggles the visibility of the "B" and "S" reversal labels.
Trendlines Module
- Trendlines Module: Toggles the automated pivot-based trendlines.
- Pivots Lookback Window: Sets the number of bars used to identify high and low pivot points for trendline construction.
FAQ
How do I use the signals provided by this tool?
You can look for "B" labels for potential long entries when the trend turns green and "S" labels for potential short entries when the trend turns red, ideally in alignment with the automated trendlines.
Can this be used on higher timeframes?
While optimized for lower timeframes like the 15-minute chart, the HMA and Kahlman parameters can be adjusted in the settings to suit hourly or daily timeframes.
How can I access this indicator?
You can get access on the LuxAlgo Library for charting platforms like TradingView, MetaTrader (MT4/MT5), and NinjaTrader for free.
Trading & investing are risky and many will lose money in connection with trading and investing activities. All content on this site is not intended to, and should not be, construed as financial advice. Decisions to buy, sell, hold or trade in securities, commodities and other investments involve risk and are best made based on the advice of qualified financial professionals. Past performance does not guarantee future results.
Hypothetical or Simulated performance results have certain limitations. Unlike an actual performance record, simulated results do not represent actual trading. Also, since the trades have not been executed, the results may have under-or-over compensated for the impact, if any, of certain market factors, including, but not limited to, lack of liquidity. Simulated trading programs in general are designed with the benefit of hindsight, and are based on historical information. No representation is being made that any account will or is likely to achieve profit or losses similar to those shown.
Testimonials appearing on this website may not be representative of other clients or customers and is not a guarantee of future performance or success.
As a provider of technical analysis tools and strategies, we do not have access to the personal trading accounts or brokerage statements of our customers. As a result, we have no reason to believe our customers perform better or worse than traders as a whole based on any content, tool, or platform feature we provide.
Charts used on this site are by TradingView in which the majority of our technical indicators are built on. TradingView® is a registered trademark of TradingView, Inc. www.TradingView.com TradingView® has no affiliation with the owner, developer, or provider of the Services described herein.
Market data is provided by CBOE, CME Group, BarChart, Massive, CoinAPI. Select U.S. equities data is provided through Massive. CBOE BZX real-time U.S. equities data is licensed from CBOE and provided through BarChart. Real-time futures data is licensed from CME Group and provided through BarChart. Select cryptocurrency data, including major coins, is provided through CoinAPI. All data is provided “as is” and should be verified independently for trading purposes.
This does not represent our full Disclaimer. Please read our full disclaimer.
© 2026 LuxAlgo Global, LLC.

