Features:
- Compatible with all trading symbols.
- This indicator is multi-timeframe, giving you flexibility.
- Utilizes color coding for upward and downward trends, making it easier to visualize the market's true direction.
Inputs:
- Time-frame: Adjust the time-frame for indicator calculations.
- Period: Modify the moving average period.
- Shift: Change the moving average shift.
- Method: Select your preferred moving average method.
- Price: Choose the type of price to use for calculations.
Check out this example showcasing three moving averages for 5, 10, and 15-minute timeframes on a 5-minute chart:

It’s important to note that this indicator strictly draws the moving average lines and does not display the Heiken-Ashi candles themselves. Here’s how it looks when combined with Heiken-Ashi candles:

This indicator calculates the Heiken-Ashi candles, but feel free to tweak the code in CalculateHeikenAshi to derive new OHLC data. For instance, here’s an example of Heiken-Ashi Smoothed calculations:

Heiken-Ashi Smoothed is a robust trend-following tool, ideal for swing trading and refining your entry points.
Alternatively, we can modify the code to incorporate Heiken-Ashi Smoothed using the Average True Range (ATR):

The Heiken-Ashi Smoothed ATR offers a reliable foundation for setting dynamic stop-loss and take-profit levels.
Related Posts
- Unlocking MetaCOT 2: Your Ultimate CFTC Indicator Toolkit for MT4
- Unlocking the Power of Master Tools for MetaTrader 4
- Mastering the Open Range Breakout Indicator for MetaTrader 5
- ID Lite Info MA: A Comprehensive Indicator for MetaTrader 5
- Discover AllAverages v4.9: The Essential Indicator for MetaTrader 4