Heiken Ashi Smoothing - MetaTrader 5 Script - MQL5 #481 - MT4/MT5 Resources


The Heiken Ashi Smoothed Indicator is a modified version of the standard Ashi Ashi Indicator.
The difference is that it uses smoothed price time series values instead of current values. This method can filter out many false signals that may appear if the indicator is calculated in a standard way.
The indicator allows choosing the smoothing type from a dozen possible variants:
It should be noted that the Phase1 and Phase2 parameters have completely different meanings for different smoothing algorithms. For JMA, it is an external phase variable that varies from -100 to +100. For T3, it is the smoothed ratio multiplied by 100 for better visualization; for VIDYA, it is the CMO oscillation period; for AMA, it is the slow EMA period. For AMA the fast EMA period is a fixed value, equal to 2 by default. For AMA, the ratio of raised powers is also equal to 2.
The indicator uses the SmoothAlgorithms.mqh library class (must be copied to the terminal data folder \MQL5\include). The use of the class "Average price series for intermediate calculations without using additional buffers" is described in detail in the article.
This indicator is available in two versions - for the main window of the chart:

For additional windows for charts:

Attachment download
📎 heiken_ashi_smoothed.mq5 (7.23 KB)
📎 heiken_ashi_smoothed_.mq5 (7.24 KB)
📎 smoothalgorithms.mqh (133.8 KB)
Source: MQL5 #481
💡 Featured Recommendations
✍️ Latest by the author
- •
- •
- •
- •
- •
- •
📌 Popular topics
- •
- •
- •
- •
- •
- •
- •
- •
🔗 You May Be Interested In
- •
- •
- •
- •
- •
- •