Discussion of article "Moving Mini-Max: a New Indicator for Technical Analysis and Its Implementation in MQL5" - page 2

 
love it!
 

But how one can back-test it since it's drawings is only for a limited timespan (for the last recent bars only), I tried to edit the code so it can draw for all bars available without me messing, but I haven't succeed! 

am I missing something? 

 
I love this article very much. I will modify it and use it for my daily trade.
 

Very good article, thanks.

But i've played with it on forward testing:

- it badly repaint

- it only lately confirm the past

- the  lastest data are not drawn: looks like a sift of 4 or bars

So as it works at time, there is to many issues.

Documentation on MQL5: Standard Constants, Enumerations and Structures / Indicator Constants / Drawing Styles
  • www.mql5.com
Standard Constants, Enumerations and Structures / Indicator Constants / Drawing Styles - Documentation on MQL5
 

I really apprecialte this article.

However, I have read the original paper and your code. I have a question about the code following:

 for(k=0; k<m; k++)
        {
         sqiip1 += MathExp(2*(S[m-1+i+k]-S[i])/(S[m-1+i+k]+S[i]));
         sqiim1 += MathExp(2*(S[m-1+i-k]-S[i])/(S[m-1+i-k]+S[i]));

         dqiip1 += MathExp(-2*(S[m-1+i+k]-S[i])/(S[m-1+i+k]+S[i]));
         dqiim1 += MathExp(-2*(S[m-1+i-k]-S[i])/(S[m-1+i-k]+S[i]));       
        }

this is derive from this formula

since the footnote of i in formula was changed by m-1+i in the code, why the other part of the code does not change the footnote of i?

I mean: shouldnt this code would be like following?

sqiip1 += MathExp(2*(S[m-1+i+k]-S[m-1+i])/(S[m-1+i+k]+S[m-1+i]));
 
Another question I want to raise about this factor is when I caculate Qi,I use the data in the next several bar...so when I move the total timewindow I should recaculate all the Usi from the begining to the ending, the Usi for the same price point would not be the same which make the back-test make no sense.
 

i think this indicator just for meta5. how could i attach it at meta4? or am i missing something? thanks in advance.

regards.

 
Yes, this is for MT5. But indicators for MT5 can not be used in MT4; and indicators for MT4 can not be used for MT5. At least - it is what I know for now. For the future - no idea : some people say the we will have one MetaEditor for MT4 and MT5 and so on so I hope that it may be changed something with it.
 
newdigital:
Yes, this is for MT5. But indicators for MT5 can not be used in MT4; and indicators for MT4 can not be used for MT5. At least - it is what I know for now. For the future - no idea : some people say the we will have one MetaEditor for MT4 and MT5 and so on so I hope that it may be changed something with it.

hi newdigital:

With the permission of your ; i will open new topic about this.

 
TIMisthebest:

hi newdigital:

With the permission of your ; i will open new topic about this.

No need to open a new topic, please use the existing one Beta Version of MetaTrader 4 IDE Including New MQL4 Compiler and Editor

Thanks.