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

Cek order buy atau sell

Discussion in 'Belajar MQL dari Nol' started by Kucubi, 23 Nov 2018.

  1. Kucubi

    Kucubi New Member

    Equity
    Credit
    Ref Point
    Halo teman2 semua mau nanya tls coding setelah kita openbuy bagaimana cara cek order kita buy atau sell y

    int start() { OrderSend(Symbol(),OP_BUY,0.01,Ask,2,0,0,"EA",0,0,blue );
    return;
    }

    Cek jika order=buy maka alert buy
    Jika order=sell maka alert sell

    Mohon pencerahanny. Tq.
     
  2. domain

    domain New Member

    Equity
    Credit
    Ref Point
    buat dulu variable penanda order.
    contoh
    Code:
    int Tiket =-1;
    
    {Tiket = OrderSend(Symbol,OP_BUY,0.01,Ask,2,0,0,"EA",0,0,blue);
    if(Tiket>0)Alert("OrderSend Buy Success");
    }
     

Share This Page