Download MetaTrader 5

Convert code on my EA

To add comments, please log in or register
mrbizu
168
mrbizu  

Hi all,

I'm writing many functions in my EA. I saw some EAs or indicators using code like below :

double f0_4() {

   double ld_ret_0;

........................... 
...........................

   return (ld_ret_0);

}
int f0_8(int ai_0) {
   bool li_12;

for (int li_16 = ai_0 + 1; li_16 <= ai_0 + 2; li_16++)
      if (High[li_16] > High[ai_0]) li_8 = FALSE;
.......
.......
 

with name of function and variable likes : f0, f1....fn, ls_0, ls_1, li_1, li_2.....

How can i convert my code to like this ? This convert by tool / manual or compile software? Anyone know it, please instruct me ?

Thanks a lot.

Bizu

Ubzen
5394
Ubzen  

Do not post de-compiled codes.

whroeder1
15304
whroeder1  

You can not compile decompiled code any more.

Decompiled code is stolen code. Either you are a thief or the receiver of stolen (intellectual) property.

Either way we will not be an accomplice after the fact to theft.

See also https://www.mql5.com/en/forum/134317

If you post decompiled code again, you will be banned.

mrbizu
168
mrbizu  

Hi all,

Sorry if you dont understand my idea. I dont stolen or decompile/ compile any code . My question is How can i change name of functions / variables/.... in my code by tool / software (for protect my code, my ideas), example :

My code is below :

double checkFractalUpper(int magicno)
{
   int cnt ;
   double   fractalUpper;
   int Total = Bars - 1;
   
   for (cnt = 3; cnt <= Total; cnt++)   
   {
      fractalUpper = iFractals(Symbol(),0, MODE_UPPER,cnt);
      if (fractalUpper != 0)
      {         
         break;
      }      
   }
   return(fractalUpper);
}

How can i change to code likes below : (auto change by tool or software) (Notes: i change my code below by my manual with name of function and variables)

double f0_8(int s0_1)
{
   int li_01;
   double   ls_1;
   int li_22 = Bars - 1;
   
   for (li_01 = 3; li_01 <= li_22; li_01++)   
   {
      ls_1 = iFractals(Symbol(),0, MODE_UPPER,li_01);
      if (ls_1 != 0)
      {         
         break;
      }      
   }
   return(ls_1);
}

anyone can help me ? Thanks.

whroeder1
15304
whroeder1  
bizu: My question is How can i change name of functions / variables/.... in my code by tool / software (for protect my code, my ideas),
  1. Use notepad and do global substitutions. If you do what you want, you probably won't be able to compile it any more.
  2. WHY do it? you're not protecting anything. Don't give your source code away.
mrbizu
168
mrbizu  

Thanks

To add comments, please log in or register