1. 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

Answered Cara menyisipkan masa berlaku / expired date pada EA

Discussion in 'Belajar MQL dari Nol' started by Keenan Tea, 16 Sep 2015.

  1. Keenan Tea

    Keenan Tea Member Credit Hunter

    Equity
    Credit
    Ref Point
    Selamat pagi rekan trader semua,
    mohon bantuanya rekan2 trader yg ahli progamming. saya ingin memasukan masa berlaku robot tersebut agar kalo masa berlakunya habis, robot tersebut tidak bisa digunakan.
    Saya akan berterimakasih sekali jika ada teman2 yg ahli progamming mau membantu saya. Terima kasih :)
     
  2. Pherry Chandra

    Pherry Chandra Active Member Credit Hunter

    Equity
    Credit
    Ref Point
    string day = "29";
    string month = "12";
    string year = "2015";

    int start()
    {
    string expire_date = year + "." + month +"." + day;
    datetime e_d = StrToTime(expire_date);

    if (CurrentTime >= e_d)
    {
    Alert ("The trial version has been expired!");
    return(0);
    }

    //LOGIC EA
    ....................
    .....................
    .........................
    //END

    return(0);
    }
     
    • Like Like x 2
  3. Keenan Tea

    Keenan Tea Member Credit Hunter

    Equity
    Credit
    Ref Point
    terimakasih udah dibantu, maaf baru bisa online. mudah2an bisa saya coba
     

Share This Page