3 x Hull Moving Average(50,100,200)
Apr 19, 2018

The 3 x Hull Moving Average(50,100,200) indicator plots three distinct Hull Moving Average lines on a single chart to help traders identify trend reversals and momentum shifts with significantly reduced lag compared to traditional moving averages.
Usage
The Usage section describes how the script can be used to analyze market trends and momentum across multiple timeframes. By combining three different periods, traders can observe the interaction between short-term and long-term price action.
- Trend Identification: When the HMA 50 is above the HMA 100, and the HMA 100 is above the HMA 200, the market is typically considered to be in a strong bullish trend. Conversely, the opposite alignment suggests a bearish trend.
- Crossover Signals: The indicator includes built-in alert logic for crossovers. A crossover of the HMA 50 above the HMA 100 often signals a potential bullish momentum shift, while a crossunder may indicate a bearish reversal.
- Support and Resistance: These moving averages can act as dynamic support or resistance levels during trending markets.
Details
The Hull Moving Average (HMA) was developed by Alan Hull to solve the lag problem inherent in traditional moving averages while maintaining a smooth line. The calculation involves using the weighted moving average (WMA) of the price. It prioritizes recent price action by calculating the difference between two different WMAs and then smoothing the result with a third WMA based on the square root of the period.
This specific implementation consolidates three specific lengths—50, 100, and 200—into one script. This allows for a cleaner workspace and more efficient resource usage within charting platforms. The indicator is optimized with alerts that trigger upon bar closure, helping to filter out "market noise" during intra-bar fluctuations. This script was originally created by ekgencsoy and has been refactored for modern Pine Script standards.
Settings
- HMA 50: Represents the short-term trend line (Blue). It reacts most quickly to price changes.
- HMA 100: Represents the medium-term trend line (Green). It serves as a filter between short-term volatility and long-term trends.
- HMA 200: Represents the long-term trend line (Red). It is used to identify the primary market direction.
FAQ
How does the Hull Moving Average reduce lag? The HMA uses a specific mathematical formula involving weighted moving averages of different lengths and the square root of the target period to ensure the line remains very close to the price action while staying smooth.
Does this indicator provide alerts? Yes, the script is configured to provide alerts for crossovers and crossunders between the 50/100 periods and the 100/200 periods, which are triggered once the candle closes.
How can I access the 3 x Hull Moving Average(50,100,200)? 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.

