Create an EA that will take its login from an external source - page 2

 
blouf@192.168.0.5:~$ cat urleetcode.mq5
   bool              CreateSel(string aName)
     {
      if(!SymbolInfoTick(Symbol(), tick))
        {
         Print("SymbolInfoTick() failed, error = ", GetLastError());
         return false;
        }
      m_name_orders = aName;
      m_type_orders = 1;
      m_lots_orders = iLots;
      m_cena_orders = NormalizeDouble(tick.bid, Digits());
      ButtonCreate(0, iPrefix + "A" + aName, 0, 0, 0, 30, 18, CORNER_LEFT_UPPER, "Sell", "Arial", 10, clrWhite, clrTomato, clrTomato, false, false, false, true, 0);
      EditCreate(0, iPrefix + "B" + aName, 0, 10, 30, 36, 18, DoubleToString(m_lots_orders, 2), "Arial", 10, ALIGN_CENTER, false, CORNER_LEFT_UPPER, clrWhite, clrGray, clrTomato, false, false, true, 0);
      TrendCreate(0, iPrefix + "D" + aName, 0, TimeCurrent() - PeriodSeconds() * 10, m_cena_orders, TimeCurrent() + PeriodSeconds() * 10, m_cena_orders, clrTomato, STYLE_SOLID, 1, false, false, false, false, true, 0);

      ArrowCreate(0, iPrefix + "C" + aName, 0, TimeCurrent() + PeriodSeconds() * 10, m_cena_orders,   clrTomato, STYLE_SOLID, 2, false, true, true, 0);
      OrderDrag(aName);
      return true;
     }
blouf@192.168.0.5:~$ openssl des3 -e -pbkdf2 < urleetcode.mq5 > urleetcode.mq5_encrypted
enter des-ede3-cbc encryption password:
Verifying - enter des-ede3-cbc encryption password:
blouf@192.168.0.5:~$ cat urleetcode.mq5_encrypted
blouf@192.168.0.5:~$ openssl des3 -d -pbkdf2 < urleetcode.mq5_encrypted > urleetcode.mq5_decrypted
enter des-ede3-cbc decryption password:
blouf@192.168.0.5:~$ cat urleetcode.mq5_decrypted
   bool              CreateSel(string aName)
     {
      if(!SymbolInfoTick(Symbol(), tick))
        {
         Print("SymbolInfoTick() failed, error = ", GetLastError());
         return false;
        }
      m_name_orders = aName;
      m_type_orders = 1;
      m_lots_orders = iLots;
      m_cena_orders = NormalizeDouble(tick.bid, Digits());
      ButtonCreate(0, iPrefix + "A" + aName, 0, 0, 0, 30, 18, CORNER_LEFT_UPPER, "Sell", "Arial", 10, clrWhite, clrTomato, clrTomato, false, false, false, true, 0);
      EditCreate(0, iPrefix + "B" + aName, 0, 10, 30, 36, 18, DoubleToString(m_lots_orders, 2), "Arial", 10, ALIGN_CENTER, false, CORNER_LEFT_UPPER, clrWhite, clrGray, clrTomato, false, false, true, 0);
      TrendCreate(0, iPrefix + "D" + aName, 0, TimeCurrent() - PeriodSeconds() * 10, m_cena_orders, TimeCurrent() + PeriodSeconds() * 10, m_cena_orders, clrTomato, STYLE_SOLID, 1, false, false, false, false, true, 0);

      ArrowCreate(0, iPrefix + "C" + aName, 0, TimeCurrent() + PeriodSeconds() * 10, m_cena_orders,   clrTomato, STYLE_SOLID, 2, false, true, true, 0);
      OrderDrag(aName);
      return true;
     }
blouf@192.168.0.5:~$ 
 

Just run it on an amazon web services EC2 server as I do. I'm also afraid to let go of my money making machines :)

I don't use the network agents to backtest either, it sends a compiled EA around the clients, and I bet the producers of this platform collects all good compiled EA's with the winning inputs that the clients generated, I know I would :)