read more here: Indicators: Custom Moving Average
2.I'd like to modify the colored HMA so that it can export the status whether it is now upward or downward.
Could you give me some suggestions?
Thank you in advance.
It did not compile for me.
Guives many errors.
It did not compile for me.
Guives many errors.
Newer/updated version of MQL5/includes/SmoothAlgorithms.mqh cause the error.
Replace your file with attached. If that does not work, try google for some and keep trying. Good luck.
In current version of MetaTrader 5, this indicator doesn't work anymore. To fix that, use the attached SmoothAlgorithms.mqh file from Salim instead (note: you need to click "Go to discussion" link to see the attached file)

- 2011.11.09
- www.mql5.com

- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Hull Moving Average (HMA):
Hull Moving Average (HMA) that can change its color. HMA is used for determining market entries and exits.
The indicator principle is quite simple: when the price moves upwards, the line is colored in violet, when the price goes downwards, the line color changes for red.
The indicator color may change at the current bar, therefore, its main function is not a color but the price location. If the price is lower than the indicator line, there is probably a downtrend, if the price is higher than the indicator line, there is probably an uptrend.
Author: Nikolay Kositsin