1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Welcome back! Thank you for being a part of this Traders Community. Let's discuss and share :)
    Selamat datang kembali! Trimakasih telah menjadi bagian dari Komunitas Trader ini. Mari berdiskusi dan berbagi :)
    Dismiss Notice

Question Tell me Password authentication function

Discussion in 'Belajar MQL dari Nol' started by haroharo, 29 Jan 2017.

  1. haroharo

    haroharo New Member

    Equity
    Credit
    Ref Point
    Suddenly I'm sorry.

    I developed EA, but I am in trouble because I do not know how to protect it. Could you tell me if it is okay?

    · Account number description.

    · A description that works by entering the password that only the creator (who refers to me) can know to the EA parameter setting.
     
  2. ionone2

    ionone2 Active Member Credit Hunter

    Equity
    Credit
    Ref Point
    in the OnTick() or Start() function, simply add :
    Code:
    extern int code = 111111;
    int secretCode = 1234;
    int start()
    {
    if (code != secretCode)
    return (0);
    }
     
  3. ionone2

    ionone2 Active Member Credit Hunter

    Equity
    Credit
    Ref Point
    and for the AccountNumber :
    Code:
    int secretAN =1234;
    int an  = 0;
    void OnInit()
    {
    an = AccountNumber();
    }
    
    int start()
    {
    if (secretAN != an)
    return (0);
    }
     
  4. AutoProfit

    AutoProfit Active Member Credit Hunter

    Equity
    Credit
    Ref Point
    input int SerialNum = 1234567;

    void OnInit(){
    int SN =0;
    SN = GetSerialNumber();
    if ( SN == SerialNum){
    //ok
    }
    }

    int GetSerialNumber(){
    int acc = AccountNumber();
    int secretFormula = 889;
    //you can use matrix to generate secret formula.
    return (acc * secretFormula);

    }


    Sent from SoeHoe.ID mobile apps
     
  5. blackking

    blackking Well-Known Member Credit Hunter

    Equity
    Credit
    Ref Point
    Ikut menyimak sementara meski juga belum paham karena otak tidak mudah menerima pelajaran yang rumit bagaimana cara membuat ea
    manual lebih sederhana soalnya
     
  6. haroharo

    haroharo New Member

    Equity
    Credit
    Ref Point
    thanks!
     

Share This Page