Download MetaTrader 5

Hull MA

To add comments, please log in or register
Sergey Golubev
Moderator
101608
Sergey Golubev  

Hull MA posted by Alp here.

Files:
david mackay
2519
david mackay  

Hull Indicators

Those are nicely done........ thank you

forexpipmaster
105
forexpipmaster  

HMA Colour

newdigital:
Hull MA posted by Alp here.

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.

alp
195
alp  

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.

Cheers,

Sergey Golubev
Moderator
101608
Sergey Golubev  

Indicators posted by fxdingo during the discussion here on 11th page.

Files:
Marbo
213
Marbo  

Hi,

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!

Marbo

Sergey Golubev
Moderator
101608
Sergey Golubev  
Marbo:
Hi,

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!

Marbo

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).

Marbo
213
Marbo  

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!!

Sergey Golubev
Moderator
101608
Sergey Golubev  
Marbo
213
Marbo  

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:

MetaStock Formula

period:=Input("Period",1,200,20) ;

sqrtperiod:=Input("Square Root of Period",1,20,4);

Mov(2*(Mov(C,period/2,W))-Mov(C,period,W),sqrtperiod,W);

SuperCharts Formula

Input: period (Default value 20)

waverage(2*waverage(close,period/2)-waverage(close,period), SquareRoot(Period))

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!

Thanks newdigital!!

Sergey Golubev
Moderator
101608
Sergey Golubev  

- 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.

To add comments, please log in or register