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.
Non repainting Hull moving average
Just made a quick test in visual backtest.
Worked like a charm!
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?
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)
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.
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
Good luck with your trades always
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:
- 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.
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)
but whatever reason could be - brothers, we are not competitors here
- but shouldn't the color buffers be zero and than values goes either to 1 or 2 or 3;
could you tell more how to use .ex4 in EAs and trailors via iCustom?
(and how to hack it ...)