Issue to convert function to mql5

 

Hello guys, i am having issue to convert this function "as is" to mql5.

I include at top thiis library:

#include <Trade\SymbolInfo.mqh>
#include <Arrays\ArrayString.mqh>
#include <MT4Orders.mqh>
#include <InitMQL4.mqh>
#include <mql4compat.mqh>

the function is this one

Decompiled source code removed by moderator.

Issue is on ArrayMinimum and Low, i tried multiple alternative to manage Low but no way.

Can sameone help me?

thanks in advance!

 

Don't request help with code originating from decompiled code. Decompilation violates the terms and conditions, copyright laws and intellectual property rights.

The source code you have presented, with all those "Ld_FFFC8" like variables, resulted from decompilation of a very old type of ".ex4" files.

 
This is a function man, i can call variabile as i want, where is the problem?
 
Mirco #: This is a function man, i can call variable as i want, where is the problem?

As already explained, the source code you are trying to convert was originally decompiled.

Humans don't name their variables as "Ld_FFFC8" or "Gd_00008". That would be nonsensical. Those are generated variables from an act of decompiling of an executable file (the old type of ".ex4" files).

If you insist with it, then by rules of the forum, you could be banned. So please don't insist.

 

Forum on trading, automated trading systems and testing trading strategies

How can I recognize a decompiled code ?

Sergey Golubev, 2017.06.26 12:45

Форум по трейдингу, автоматическим торговым системам и тестированию торговых стратегий

Decompiling

Vladimir Karputov, 2016.05.20 10:22

By the names of variables and functions. If it is not decompilation so the names of variables/functions are having some meanings, and decompiled code contains a set of letters and numbers separated by underscores.

Forum on trading, automated trading systems and testing trading strategies

Can not use Freelance Service last 2 days.

Sergey Golubev, 2017.06.05 10:30

And those are few examples (below) of decompiled code:

for (l_index_20 = 0; l_index_20 < iConst_14 - 1; l_index_20++) {

      if (iArray2[l_index_20] == iArray2[l_index_20 + 1]) {

         li_32 = iArray2[l_index_20];

         l_index_24 = l_index_20 + 1;

         li_36 = 1;

         ld_12 = l_index_20 + 1;

         while (l_index_24 < iConst_14) {

            if (iArray2[l_index_24] != li_32) break;

            li_36++;

            ld_12 += l_index_24 + 1;

            l_index_24++;

         }

         ld_4 = li_36;

         ld_12 /= ld_4;

         for (int li_28 = l_index_20; li_28 < l_index_24; li_28++) lda_44[li_28] = ld_12;

         l_index_20 = l_index_24;

      }
for (int li_0 = li_12; li_0 >= 0; li_0--) MartAxis(li_0);
   for (li_0 = li_16; li_0 >= 0; li_0--) SmoothOverMart(li_0);
   for (li_0 = li_8; li_0 >= 0; li_0--) {
      for (int l_index_4 = 0; 
      l_index_4 < iConst_14; l_index_4++) iArray1[l_index_4] = (indic_buffer2[li_0 + l_index_4]) * dConst_pipDigits;
      RankPrices(iArray1);
      indic_buffer0[li_0] = SpearmanRankCorrelation(dArray1, iConst_14);
      
      if (indic_buffer0[li_0] > 1.0) indic_buffer0[li_0] = 1.0;
      if (indic_buffer0[li_0] < -1.0) indic_buffer0[li_0] = -1.0;
 

Hello, thanks for details, Sorry but was not done for purpose.

Close topic if need, thanks anyway