Hull MA - page 3

To add comments, please log in or register
jimven
233
jimven  
demam_emas:
I tried HMA4 on my visual backtest, and it repainted! Please correct me if i'm wrong.

I'm also using HMA4, and I find it to be pretty good. But you're right! It repaints! Not only does the current dot change color, but the completed dot at shift = 1 also changes color after it's finished.

In spite of those shortcomings, I think it can be a useful tool in my warchest. I haven't made any attempt to fix it, but maybe, if I get time. Others say it can't be done.

Cheers and good trading.

Mladen Rakic
151705
Mladen Rakic  

...

Non repainting Hull moving average

Files:
hma.gif 13 kb
hma.ex4 10 kb
demam_emas
251
demam_emas  
mladen:
Non repainting Hull moving average

Just made a quick test in visual backtest.

Worked like a charm!

Thanks Mladen.

I think it's really has great potential to make a scalper EA based on this indicator. Can you show us indicator's buffer that control when color is green or red?

HMASignal=iCustom(NULL,0,"HMA Color nrp", HMA_period,HMA_PriceType,HMA_Method,?,1);

The EA should buy when HMA turns into green and vice versa.

Any EA programmer interested to build it?

Mladen Rakic
151705
Mladen Rakic  

...

I do not reccomend using buffer values to find out it's color

Let me explain: in ANY MULTICOLOR LINE indicator it is a normal occurence that when the color is changing two buffers contain the same value (you can easily check this in data window) The begining of one color must match the end of the other color

Instead, use simple comparison : this indicator contains all the values of HMA in it's first buffer, and it is easy to compare values to find out what is going on :

current > previous = green

current < previous = red

current = previous = yellow

Of NormalizeDigitsPlus - if you turn NormalizeValues on the values of the HMA are normalized to Digits + NormalizeDigitsPlus (for example on most brokers EURUSD would be 4+NormalizeDigitsPlus, USDJPY would be 2+NormalizeDigitsPlus and so on...)

btw: When you turn off the NormalizeValues you will have much less equal values (yellow color)

demam_emas:
Just made a quick test in visual backtest.

Worked like a charm!

Thanks Mladen.

I think it's really has great potential to make a scalper EA based on this indicator. Can you show us indicator's buffer that control when color is green or red?

HMASignal=iCustom(NULL,0,"HMA Color nrp", HMA_period,HMA_PriceType,HMA_Method,?,1);

The EA should buy when HMA turns into green and vice versa.

Any EA programmer interested to build it?
jimven
233
jimven  

mladen:

Your modified indicator looks great. But could you provide the source code? I don't use any custom indicators or EA's without the source code so I can both understand how it works and also modify it for my own purposes, if I'd like to. An ex4 file by itself has very limited usefulness.

Thanks if you feel free to share it. Otherwise, I understand.

Mladen Rakic
151705
Mladen Rakic  

...

I was thinking what to answer : should I answer something funny, something smart...

I came up with this : I am not going to post source for this indicator. Sorry

mladen

jimven:
mladen:

Your modified indicator looks great. But could you provide the source code? I don't use any custom indicators or EA's without the source code so I can both understand how it works and also modify it for my own purposes, if I'd like to. An ex4 file by itself has very limited usefulness.

Thanks if you feel free to share it. Otherwise, I understand.
demam_emas
251
demam_emas  
mladen:
I was thinking what to answer : should I answer something funny, something smart...

I came up with this : I am not going to post source for this indicator. Sorry

mladen

It's OK.

Good luck with your trades always

fxbs
3203
fxbs  

well, thats what CJA answers about the source (or no comments)

can we blame him? but whatever reason - we developing something bit by bit

Mladen, there is a question:

mladen:
I do not reccomend using buffer values to find out it's color

Let me explain: in ANY MULTICOLOR LINE indicator it is a normal occurence that when the color is changing two buffers contain the same value (you can easily check this in data window) The begining of one color must match the end of the other color

...

current > previous = green

current < previous = red

current = previous = yellow

- but shouldn't the color buffers be zero and than values go either to 1 or 2 or 3;

equal = yellow

what everybody would normally do - just grub the color ??

P.S. Colors - real pain in the S.

Mladen Rakic
151705
Mladen Rakic  

That is a matter of coddinq technique

What I am using in order to lessen the number of buffers and to have exact values without hassle is that the first buffer allways contains all the values of the HULL MA and the others are determined by simple comparison of the first buffers values

this way it is no problem to find out values of the indicator (after all that is what is interesting to us : exact values)

fxbs:
well, thats what CJA answers on question about the source (or no comments)

but whatever reason could be - brothers, we are not competitors here

Mladen, there is a question:

- but shouldn't the color buffers be zero and than values goes either to 1 or 2 or 3;

equal = yellow

what everybody normally does - just grubs the color ??
fxbs
3203
fxbs  

could you tell more how to use .ex4 in EAs and trailors via iCustom?

(and how to hack it ...)

To add comments, please log in or register