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

 

I like the idea, but something is wrong. The indicator simply finds lock max and min in the considered window. Harmonics can say something about the market phase (flat or trend) but not clearly. It is necessary to watch this indicator in dynamics. So far it seems to me that it is useless.

Graph with the turkey and different frames

 

The whole secret behind all this is much more simple than one can think.

Let's say we have two numbers, and they do belong to a ordered series. Let them be 10 and 12. So, if we start from 30, 40 represents a 20% increase. (12-10)/(10) = 1.2. If we reverse their order, it would be (10-12)/(12) = (-2)/(12) = -1/6 = - 0,1667 (-17%).

However, let's say both numbers are unordered. So, one cannot know which one is the correct number. In this case, we simply do the average of both cases. So, the average of 12 and 10 is (12+10)/2 = 11. And their difference is (12-10) = 2. Now, we divide both numbers and find 2/11 = 0,181818.

So, the real secrete lies in dividing the difference by the average value: q = (x_2 - x_1) / ((x_1+x_2)/2) = 2 * (x_2 - x_1)/(x_1 + x_2)

No news about it. K12 maths.

But let's think about real probability, and not statistics. On can replace the denominator by the median, instead of the average. For two numbers, that would not make any difference. But for 3 or more, it would. Give it a try :)

 
Very good at catching market reversal points. Wait for the signal it will show approaching support and resistance levels... just determine the entry point and you have made a profit....
 

I would really appreciate if someone convert this indicator to mt4 with source code please.


thanks


edit : After 12 hours of checking the direction indicators,..... this indicator has REPAINT !!!!

 
Hello Im a new mq5 coder and was wondering if its possible to add alerts to this indicator whenever the arrow appears. Cant seem to find out how to that. 
 
can this indicator be installed on a mobile phone using mt5. if yes, how can it bee done
 
The current version of Metatrader 5 does not support this indicator. I ask to evaluate the possibility of a new update. Grateful.
 
In fact, I have tested it.  The indicators lag a lot.  And the key turning point is the future function.
 

Ethos Trader The Moving Mini-Max code is working, but you should make a correction starting at line 225:


//| ----- Error: Has been replaced by the lines below ----- |

//| double result=0;
//|**** Original:for(i=0; i<n; i++) { Print("i ="+i+" uSi ="+uSi[i]); result+=uSi[i]; }
//| ---------------------------------------------------------- |

double result=0;
for(i=0; i<n; i++) // I turned this off --- >> { Print("i = "+(string)i+" uSi = "+(string)uSi[i]); result+=uSi[i]; }


// I turned this off --- >> Print("Result ="+DoubleToString(result));

}


Ethos Trader
Ethos Trader
  • 2020.05.11
  • www.mql5.com
Perfil do Trader
 
Congratulations on your work.
I am testing the indicator and it appears for all assets except the index, whether full, mini or the current contract. Any suggestions as to what is happening or how I should proceed so that the indicator appears for the index?
Thank you.