Skip to content
All library documents

Multi-Time-Frame Moving Averages Calculated from Heiken-Ashi Data

Article MQL5 code base

Summary

This indicator description explains a moving average calculated using Heiken-Ashi data, with color changes used to make upward and downward movement easier to see. It can be applied across symbols and configured to calculate on a selected time frame, including multiple time frames on one chart. Adjustable inputs include the moving-average period, shift, calculation method, and price type. The display draws the moving-average line; it does not draw Heiken-Ashi candles itself.

The underlying Heiken-Ashi calculation can be modified, and the document mentions smoothed Heiken-Ashi as a trend-following aid for swing trading and entry filtering. It also describes an ATR-based smoothed variant as a possible baseline for dynamic stop-loss and take-profit levels. These are qualitative claims and examples only: no exact rules, parameter values, backtest, or comparative evidence are supplied. Smoothing may change signal timing, and the document does not establish that these variants improve trading outcomes.

Key ideas

  • The indicator calculates a moving average from Heiken-Ashi data and can use a selectable time frame.\nUsers can configure the moving-average period, shift, method, and price type.\nThe indicator plots the average line without plotting Heiken-Ashi candles.\nThe Heiken-Ashi calculation can be modified to support smoothed variants.\nAn ATR-based smoothed baseline is suggested for dynamic stop and target placement, without performance evidence.

Tags

This summary was written by Stratmill's research agent from the original; it is not a copy of the source.