You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
it was on the archieves. Dunno if someone posted before .Hma russian histo
Do you have the mq4 file for that?
If you look into it (the .ex4 file) you will see
The original
regards
mladen
Do you have the mq4 file for that?
If you look into it (the .ex4 file) you will see
The original
regards
mladenThanks I never saw that
if (ind_buffer0 > ind_buffer0) ind_buffer1 = 1;
if (ind_buffer0 < ind_buffer0) ind_buffer2 = 1;
Q: what happens in MT4 when ind_buffer0 = ind_buffer0?
logically should be gap(empty) but practically - what is going on in mt4 in such case ?
Yellow
It actually, when you remove the fixed maximum, looks like the one on the picture. The fixed maximum prevents you from seeing the yellow part. So when neither the "green" nor the "red" buffer are assigned values you are going to "see through" and the yellow will be visible
In a cases when HMA is smaller than 1 you are going to see a bit shorter yellow bar, but I really did not want to add one more buffer and code. And I kind of liked the trick it does this way
if (ind_buffer0 > ind_buffer0) ind_buffer1 = 1;
if (ind_buffer0 < ind_buffer0) ind_buffer2 = 1;
Q: what happens in MT4 when ind_buffer0 = ind_buffer0?
logically should be gap(empty) but practically - what is going on in mt4 in such case ?Yellow
It actually, when you remove the fixed maximum, looks like the one on the picture. The fixed maximum prevents you from seeing the yellow part. So when neither the "green" nor the "red" buffer are assigned values you are going to "see through" and the yellow will be visible
In a cases when HMA is smaller than 1 you are going to see a bit shorter yellow bar, but I really did not want to add one more buffer and code. And I kind of liked the trick it does this wayslacker : ((((((
mladen's hma_histo mod: hma cci rsi options; histo/line
weird... p.s. it's not hma smoozing (i have no idea what it is (what i did)
Non repainting Hull moving average
Can you change the display to dots??
It should be like this
Error is in this code
switch(ind.mode)
{
case 0:
buffer=iMA(NULL,0,HalfPeriod,0,HMA_Method,HMA_PriceType,i)*2-
iMA(NULL,0,HMA_Period,0,HMA_Method,HMA_PriceType,i); break;
case 1:
buffer=iCCI(NULL,0,HalfPeriod,HMA_PriceType,i)*2-
iCCI(NULL,0,HMA_Period,HMA_PriceType,i); break;
case 2:
buffer=iRSI(NULL,0,HalfPeriod,HMA_PriceType,i)*2-
iRSI(NULL,0,HMA_Period,HMA_PriceType,i); break;
}
[/php]You are not "hull"-ing (smoothing) CCI or RSI
The code should be like this
[php] //
//
// fill with values that should be smoothed
//
//
for(i=limit; i>=0; i--)
{
switch(ind.mode)
{
case 0: prices = iMA(NULL,0,1,0,MODE_SMA,HMA_PriceType,i); break;
case 1: prices = iCCI(NULL,0,CCI_Period,HMA_PriceType,i); break;
case 2: prices = iRSI(NULL,0,RSI_Period,HMA_PriceType,i); break;
}
}
//
//
// now smooth (hull smooth) the values
//
//
for(i=limit; i>=0; i--)
buffer=iMAOnArray(prices,0,HalfPeriod,0,HMA_Method,i)*2-
iMAOnArray(prices,0,HMA_Period,0,HMA_Method,i);
On the picture : compared "raw" values of CCI and RSI (lime) with their hull smoothed values (yellow)
The rest of work is yours (you started it :):)) There is still a couple of things to be done in order to make it flawless
regards
mladen
mladen's hma_histo mod: hma cci rsi options; histo/line weird... p.s. it's not hma smoozing (i have no idea what it is (what i did)
thank you Mladen! you started it!
(i just mess up some WeirdoCCI )
"few things to be dine" - draw begin - max of cci, rsi, hma?,limit ... right?