Einzelnen Beitrag anzeigen
  #19 (permalink)  
Alt 27.03.12
divebubble divebubble ist offline
Neues Mitglied
 
Registriert seit: Mar 2012
Beiträge: 8
divebubble befindet sich auf einem aufstrebenden Ast
Standard MQL Code Verschlüsseln

MQL Code Verschlüsseln ist auch eine Variante.
Dabei wird aus einem Code wie zb:

Code:
//+------------------------------------------------------------------+
//|                                                  MACD Sample.mq4 |
//|                      Copyright © 2005, MetaQuotes Software Corp. |
//|                                       http://www.metaquotes.net/ |
//+------------------------------------------------------------------+

extern double TakeProfit = 50;
extern double Lots = 0.1;
extern double TrailingStop = 30;
extern double MACDOpenLevel=3;
extern double MACDCloseLevel=2;
extern double MATrendPeriod=26;

//+------------------------------------------------------------------+
//|                                                                  |
//+------------------------------------------------------------------+
int start()
  {
   double MacdCurrent, MacdPrevious, SignalCurrent;
   double SignalPrevious, MaCurrent, MaPrevious;
   int cnt, ticket, total;
// initial data checks
// it is important to make sure that the expert works with a normal
// chart and the user did not make any mistakes setting external 
// variables (Lots, StopLoss, TakeProfit, 
// TrailingStop) in our case, we check TakeProfit
// on a chart of less than 100 bars
   if(Bars<100)
     {
      Print("bars less than 100");
      return(0);  
     }
   if(TakeProfit<10)
     {
      Print("TakeProfit less than 10");
      return(0);  // check TakeProfit
     }
// to simplify the coding and speed up access
// data are put into internal variables
   MacdCurrent=iMACD(NULL,0,12,26,9,PRICE_CLOSE,MODE_MAIN,0);
   MacdPrevious=iMACD(NULL,0,12,26,9,PRICE_CLOSE,MODE_MAIN,1);
   SignalCurrent=iMACD(NULL,0,12,26,9,PRICE_CLOSE,MODE_SIGNAL,0);
   SignalPrevious=iMACD(NULL,0,12,26,9,PRICE_CLOSE,MODE_SIGNAL,1);
   MaCurrent=iMA(NULL,0,MATrendPeriod,0,MODE_EMA,PRICE_CLOSE,0);
   MaPrevious=iMA(NULL,0,MATrendPeriod,0,MODE_EMA,PRICE_CLOSE,1);

   total=OrdersTotal();
   if(total<1)

sowas:

Code:
extern double TakeProfit = 50;
extern double Lots = 0.1;
extern double TrailingStop = 30;
extern double MACDOpenLevel=3;
extern double MACDCloseLevel=2;
extern double MATrendPeriod=26;
int start()
  {
   double *1596751872214748364643597*, *158651616521474836452710*, *1953697357214748364226647*;
   double *406173678214748364124811*, *3650920921474836448123*, *418123549214748364333873*;
   int *2114319876214748364748749*, *168987184214748364045461*, *1216626379214748363913795*;
   if(Bars<100)
     {
      Print("bars less than 100");
      return(0);
     }
   if(TakeProfit<10)
     {
      Print("TakeProfit less than 10");
      return(0);
     }
   *1596751872214748364643597*=iMACD(NULL,0,12,26,9,PRICE_CLOSE,MODE_MAIN,0);
   *158651616521474836452710*=iMACD(NULL,0,12,26,9,PRICE_CLOSE,MODE_MAIN,1);
   *1953697357214748364226647*=iMACD(NULL,0,12,26,9,PRICE_CLOSE,MODE_SIGNAL,0);
   *406173678214748364124811*=iMACD(NULL,0,12,26,9,PRICE_CLOSE,MODE_SIGNAL,1);
   *3650920921474836448123*=iMA(NULL,0,MATrendPeriod,0,MODE_EMA,PRICE_CLOSE,0);
   *418123549214748364333873*=iMA(NULL,0,MATrendPeriod,0,MODE_EMA,PRICE_CLOSE,1);
   *1216626379214748363913795*=OrdersTotal();
   if(*1216626379214748363913795*<1)
Danach noch 'n kleiner Decompiler Schutz rein und schon haste mal 99.99% der "ich klau dir den EA Kids" aussen vor.

Ich habe das bei mir automatisiert, wer interesse hat einfache ne private Nachricht an mich.

Bubble