Moving Averages Based on Heiken-Ashi - MetaTrader 5 Script - MT4/MT5 Resources




Below is an example of 3 MAs on 5 minute, 10 minute and 15 minute timeframes on a 5 minute chart.

This indicator only draws MA lines and not Heiken-Ashi candles, below is an example of a Heiken-Ashi candle.

This indicator only calculates Heiken-Ashi candles, but the code inside CalculateHeikenAshi can be modified to calculate new OHLC data.
The following is an example of Heiken-Ashi smoothing calculation.

Heiken-Ashi smoothing is a more reliable trend following tool and is better suited for swing trading and filtered entries.
Or we can replace the code with Heiken-Ashi using ATR smoothing.

Heiken-Ashi Smoothed ATR provides a smooth baseline for setting dynamic stop loss/take profit levels.
Attachment download
📎 heiken_ashi_ma.mq5 (9.63 KB)
Source: MQL5 #60537
💡 Featured Recommendations
✍️ Latest by the author
- •
- •
- •
- •
- •
- •
📌 Popular topics
- •
- •
- •
- •
- •
- •
- •
- •
🔗 You May Be Interested In
- •
- •
- •
- •
- •
- •