Hull MA posted by Alp here.
Those are nicely done........ thank you
NewDigital: There seems to be a bug in the HMA colour, it has 3 colours, and the yellow colour(for neutral bars) wont paint in ,and where its suppose to paint in, its a blank line for the last 20-30 bars.
The Hull MA doesnt work properly either.
There's no bug at all in HMA. The third color (yellow) was excluded deliberately to avoid a specific linear distortion which occurs when a new value (especially strong) enters or the old one (again strong) leaves the buffer. Under these conditions the yellow part is being relocated back and thus "paints the past" as Nina put it. Sometimes seriously.
And finally it's a matter of preferences. If you like to use a neutral zone as an exit or an early warning then 3 color LSMA is better choice.
Indicators posted by fxdingo during the discussion here on 11th page.
can anyone of you explain to me how the Hull Moving Average works? I want to backtest some things in Excel because I am not really good in doing MQL4. I extracted some weeks of data from Metatrader and now I want to test the HMA. I already tested with SMA and EMA but the results are not really good. and before I test with HMA I need the mathematics of this moving average.
Thank you very much for some help!
Look at this post https://www.mql5.com/en/forum/175327 (there are many links in our forum with discussion, exoplanation about how it works and with some trading systems).
Thank you for those links but none of them explains the calculation of the HMA. It is described a little bit in MQL-code but I cannot read it. I would need some explainations in "normal language" but I don't find anything where the method is described.
For example: The 10-period simple MA is calculated like this: The sum of the close-prices of the last 10 periods divided by 10. This is what I need for the HMA. I know that it's more complicated but I also programmed an WMA and EMA. So it is not really difficult if you know how it is calculated.
Can anyone help me? Thank you!!
I also found this page and it seems to be the best to begin with: http://www.justdata.com.au/Journals/AlanHull/hull_ma.htm
There I found this formula:
Integer(SquareRoot(Period)) WMA [2 x Integer(Period/2) WMA(Price)
- Period WMA(Price)]
and this is also described in other codes:
sqrtperiod:=Input("Square Root of Period",1,20,4);
Input: period (Default value 20)
I try to work with the first formula and hope that I can make it. First I was confused about the period of the WMA but now I think it must be the squareroot of the period I want to have in the HMA. I keep on testing!
- HMA indicator with alert and email is here.
- MTF Null MA is here.
- Hull Style ADX v3 indicator with MA of ADX and individual period settings for ADX and PlusDi/MinusDi: original thread.