Multiple Moving Averages for Heikin Ashi

Feb 11, 2021

Static chart image
Signals
Candlestick
Moving Averages

The Multiple Moving Averages for Heikin Ashi indicator provides a comprehensive toolkit for analyzing price action trends by applying 17 different moving average types directly to a Heikin Ashi candle environment. This tool allows traders to compare how various smoothing methods react to the noise-filtered data of Heikin Ashi candles to identify trend reversals and momentum shifts more effectively.

Usage

The Usage section focuses on how to interpret the relationship between the selected moving average and the Heikin Ashi price action. Because Heikin Ashi candles already filter market noise, adding a moving average creates a secondary layer of smoothing that helps in trend following.

  • Trend Identification: When the Heikin Ashi candles are consistently above the moving average and printing green bodies, a strong bullish trend is indicated. Conversely, candles below the moving average with red bodies indicate a bearish trend.
  • Crossover Signals: The script includes built-in logic for crossovers. A bullish signal occurs when the Heikin Ashi close crosses above the selected moving average line, while a bearish signal occurs when it crosses below.
  • Smoothing Comparisons: Users can switch between "fast" moving averages like HMA (Hull Moving Average) or ZLEMA (Zero Lag EMA) for scalp setups, or "slow" averages like SMA or SMMA for long-term trend bias.

Details

The script constructs a dedicated Heikin Ashi chart within the indicator pane (or overlay depending on user preference). The Heikin Ashi values are calculated using the standard formula:

  • Close = (Open + High + Low + Close) / 4
  • Open = (Previous Open + Previous Close) / 2
  • High = Maximum of High, Open, or Close
  • Low = Minimum of Low, Open, or Close

The source for the moving average calculation is derived from the mid-price (HL2) of the price action. The indicator integrates a wide library of moving average types, including advanced adaptive filters like Kaufman’s Adaptive Moving Average (KAMA), Fractal Adaptive Moving Average (FRAMA), and Jurik Moving Average (JMA). This implementation allows for experimental analysis of how different mathematical smoothing techniques handle the averaged nature of Heikin Ashi data.

Settings

  • LINE 1: Sets the lookback period (length) for the moving average calculation. Higher values result in more smoothing and slower reaction times.
  • Line 1 Type: A dropdown menu allowing the user to select from 17 different moving average algorithms:
    • Standard: SMA, WMA, EMA, VWMA, SMMA.
    • Smooth/Double/Triple: DEMA, TEMA, TRIMA, T3.
    • Low Lag/Adaptive: ALMA, HMA, LSMA, KAMA, ZLEMA, ViDYA, FRAMA, JMA.

FAQ

How do I change the sensitivity of the trend line? You can adjust the "LINE 1" input to a smaller number for more sensitivity to recent price changes, or a larger number to focus on long-term trends.

Can I use this for automated alerts? Yes, the script is optimized for alerts and will trigger a notification when the Heikin Ashi close crosses over or under the selected moving average line.

How can I access the Multiple Moving Averages for Heikin Ashi? You can get access on the LuxAlgo Library for charting platforms like TradingView, MetaTrader (MT4/MT5), and NinjaTrader for free.

Free access on the following platforms
tradingviewSymbolTradingView
Open in your browser

This in-app browser is not compatible with Get Access from the library.

Tap the menu (...) at the top of your screen and select "Open in Browser", "Open in Safari", or "Open in Chrome" to continue.

ninjatraderNinjaTrader
Open in your browser

This in-app browser is not compatible with Get Access from the library.

Tap the menu (...) at the top of your screen and select "Open in Browser", "Open in Safari", or "Open in Chrome" to continue.

metatrader4MetaTrader 4/5
Open in your browser

This in-app browser is not compatible with Get Access from the library.

Tap the menu (...) at the top of your screen and select "Open in Browser", "Open in Safari", or "Open in Chrome" to continue.

thinkorswimThinkorswim
Open in your browser

This in-app browser is not compatible with Get Access from the library.

Tap the menu (...) at the top of your screen and select "Open in Browser", "Open in Safari", or "Open in Chrome" to continue.

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.