Requests & Ideas - page 249

wintersky111
355
wintersky111  
mladen:
Wintersky I am failing to find that part of the code in FGDI. Can you pint me out more precisely where should I find it?

Mladen,

It's at Line 247 in MetaEditor of the FGDI code. Need you to insert the median right in between Line 247 and Line 248, as shown below

----------------------------------------------------------------------

delta=MathSqrt( MathPow( diff - priorDiff, 2.0)+(1.0/MathPow( e_period, 2.0)) ); sum+=MathPow(delta-(length/g_period_minus_1),2);

----------------------------------------------------------------------

Thanks Mladen.

Yours sincerely,

Wintersky

Mladen Rakic
163284
Mladen Rakic  
wintersky111:
Mladen,

It's at Line 247 in MetaEditor of the FGDI code. Need you to insert the median right in between Line 247 and Line 248, as shown below

----------------------------------------------------------------------

delta=MathSqrt( MathPow( diff - priorDiff, 2.0)+(1.0/MathPow( e_period, 2.0)) ); sum+=MathPow(delta-(length/g_period_minus_1),2);

----------------------------------------------------------------------

Thanks Mladen.

Yours sincerely,

Wintersky

Wintersky

Looking at that part of the code and this is what is my conclusion so far

fdi=1.0 +(MathLog( length)+ LOG_2 )/MathLog( 2 * g_period_minus_1 );

mean=length/g_period_minus_1;

for( iteration=0; iteration <= g_period_minus_1; iteration++ )

{

if(( priceMax - priceMin)> 0.0 )

{

diff =(inputData[pos + iteration] - priceMin )/( priceMax - priceMin );

if(iteration > 0 )

{

delta=MathSqrt( MathPow( diff - priorDiff, 2.0)+(1.0/MathPow( e_period, 2.0)));

//

//

// median would be limited to g_period_minus_1 length

// but in increasing lengths : 1 to g_period_minus_1

// due to how an array of intermediate results would be filled in

//

//

//

sum+=MathPow(delta-(length/g_period_minus_1),2);

}

priorDiff=diff;

}

}

variance=sum/(MathPow(length,2)*MathPow(MathLog(2*g_period_minus_1),2));

It is simply a promblem that the sample for fdi calculation is a variable length sample. I can make it calculate as a median of that variable length (I am assuming that it would be a median of delta values) or we should already use a median in the moment when inputData[pos + iteration] is used as an input for calculation. Let me know what dio you think

wintersky111
355
wintersky111  
mladen:
It is simply a promblem that the sample for fdi calculation is a variable length sample. I can make it calculate as a median of that variable length (I am assuming that it would be a median of delta values) or we should already use a median in the moment when inputData[pos + iteration] is used as an input for calculation. Let me know what dio you think

Mladen,

I was thinking about this issue too even before you raised it and was quite in a bind about what to think about it. The issue wouldnt be there if N or periods tended towards infinity certainly.

Either way of calculation, the difference (if any) shouldn't be a really major issue. That and the fact that FD value itself is still more of a general value rather than a precise value, given that it is but an estimation (due to noise, nonlinearities etc etc). & that is the viewpoint expressed by most papers of the difficulty of giving a good precise FD value.

So either way is fine mladen. Or if you feel that one way of placing the median is better than the other, i am fine with whichever you choose. Thanks.

Yours sincerely,

Wintersky

MikhaelPankov
60
MikhaelPankov  

MQ5 upgrading

Good evening, Mladen ! I would like to make a new request about the option of upgrading

the indicator from mq4 into mq5 ( it’s another month already ! )

As always it’s from the arsenal that developed by you.

Thank you in advance and have a nice weekend, Mikhael.supertrend_averages_amp_alerts_2.01.mq4

Mladen Rakic
163284
Mladen Rakic  
MikhaelPankov:
Good evening, Mladen ! I would like to make a new request about the option of upgrading

the indicator from mq4 into mq5 ( it’s another month already ! )

As always it’s from the arsenal that developed by you.

Thank you in advance and have a nice weekend, Mikhael.supertrend_averages_amp_alerts_2.01.mq4

Mikhael

Here you go Multi time frame + alerts and the fill area that is used is specific to metatrader 5 (at least that is nicer than in the metatrader 4 version)

MikhaelPankov
60
MikhaelPankov  

Dear Mladen ! A mountain of thanks - it's simply exciting !

Full of respect, Mikhael.

Hermo
383
Hermo  

Idea

Good afternoon everyone:

Excuse my English please.

mladen, first I apologize for creating threads without good reason, as they say in my country, the rush is not good. I refer to this thread:

https://www.mql5.com/en/forum/179807 # post642119

I'm trying to program the EA, so I practice, if I have any difficulty it will comment to help me.

Another issue:

I searched this indicator for mt4 and not find it.

https://www.mql5.com/en/forum/181297/page29

It can make you mentioned indicator for mql4?

If yes, could transform the EA of the item you MQL4 code attached to it.

Experts - Renko Line Break vs RSI EA - MQL5 Code Base

Thank you very much and apologize for everything they do wrong, language costs me a lot and I admire his work so as not to go here.

A hug

Hermo.

Mladen Rakic
163284
Mladen Rakic  
Hermo:
Good afternoon everyone:

Excuse my English please.

mladen, first I apologize for creating threads without good reason, as they say in my country, the rush is not good. I refer to this thread:

https://www.mql5.com/en/forum/179807 # post642119

I'm trying to program the EA, so I practice, if I have any difficulty it will comment to help me.

Another issue:

I searched this indicator for mt4 and not find it.

https://www.mql5.com/en/forum/181297/page29

It can make you mentioned indicator for mql4?

If yes, could transform the EA of the item you MQL4 code attached to it.

Experts - Renko Line Break vs RSI EA - MQL5 Code Base

Thank you very much and apologize for everything they do wrong, language costs me a lot and I admire his work so as not to go here.

A hug

Hermo.

Hermo

See this post : https://www.mql5.com/en/forum/178540/page25

The difference is that the metatrader 4 version uses adaptive size and metatrader 5 uses fixed "box" size for calculation

Hermo
383
Hermo  
mladen:
Hermo

See this post : https://www.mql5.com/en/forum/178540/page25

The difference is that the metatrader 4 version uses adaptive size and metatrader 5 uses fixed "box" size for calculation

Mladen thank you very much for your help.

And finally.

It would be possible to transform the EA website mql5. A MQL4 code, in order to test it.

Thank you very much in advance.

A hug.

Hermo.

RWP
537
RWP  

Hi Mladen or Mr Tools,

Is it possible using KAMA slope's averaging methods for the VQ indicator? I was thinking that perhaps this would reduce some of the spikes that I see in the VQ indicator. I know VQ indi has a filter parameter, but I am exploring if it is possible using KAMA's calculations since KAMA in itself is a filtering average. Please advice if the VQ indicator can be tweaked in that manner. Thanks for your time Mladen or Mr Tools.

kamaslopealertsmtf.mq4

volatilityqualityzerolinehistoalertsmtfv2.mq4