All indicators

Multiple Moving Averages for Heikin Ashi

Feb 11, 2021

Static chart image

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 indicator

Get free access to this indicator on the platforms below.

TradingView
NinjaTrader
MetaTrader 4/5

The Library is free. Quant makes it yours.

Pull any concept or indicator into Quant: rebuild it, retune it, or turn it into a backtested strategy of your own.