HMA Breakout Buy/Sell indicator for Scalping & Intraday
Dec 30, 2022

The HMA Breakout Buy/Sell indicator provides clear trend signals based on the alignment of Hull Moving Averages (HMA) to assist traders in identifying momentum shifts for scalping and intraday strategies.
Usage
The HMA Breakout indicator uses color-coded lines to signify market conditions and potential entry points. When the trend aligns for a bullish move, the moving average line turns green, signaling a Buy condition. Conversely, when the trend aligns for a bearish move, the line turns red, signaling a Sell condition. When no clear breakout condition is met, the line remains the default chart foreground color (often gray).
- Buy Signal: The line turns GREEN. This occurs when the short-term HMA crosses above the medium-term HMA while both are above the long-term HMA.
- Sell Signal: The line turns RED. This occurs when the short-term HMA crosses below the medium-term HMA while both are below the long-term HMA.
- Trailing Stop Loss: It is recommended to use a trailing stop loss to lock in profits during trending moves.
While the script can be used across various timeframes, it is optimized for the 5-minute chart.
Details
The script utilizes three Hull Moving Averages of varying lengths to filter noise and identify high-probability breakouts. The HMA is known for its ability to reduce lag while maintaining smoothness, making it superior to standard SMAs or EMAs for fast-moving markets.
The logic checks for specific tiered alignments:
- Bullish alignment: Long-term < Medium-term < Short-term.
- Bearish alignment: Long-term > Medium-term > Short-term.
Settings
- Trade Type: Allows the user to toggle between "Scalping" and "Intraday" modes. Selecting a mode automatically adjusts the HMA lengths to suit the specific trading style (shorter periods for scalping, longer periods for intraday).
FAQ
How do I use the HMA Breakout indicator?
You can use the indicator by monitoring the color of the HMA line on your chart. Green indicates a bullish breakout, while red indicates a bearish breakout.
What is the best timeframe for this script?
The indicator is designed primarily for the 5-minute timeframe, though it can be adapted for other intervals using the "Trade Type" setting.
How do I get access to HMA Breakout - Shyam?
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.

