Pending order notice possible?
Results 1 to 7 of 37

Thread: Pending order notice possible?

  1. #1
    How do I place MT4 to alert me (box or email) in case a pending order has been implemented?

    Edit: I believe only a script could accomplish that, am I mistaken? I don't believe there's a built-in way for this.

  2. #2
    Quote Originally Posted by ;
    How do I place MT4 to alert me (box or email) in case a pending order was executed?
    My poor, I only saw you wanted an EMAIL, not a noise.

  3. #3
    Quote Originally Posted by ;
    My poor, I only watched you desired an EMAIL, not a noise.
    If there is no email built-in I'll try to script one, however, a noise is going to do in the mean time. I haven't seen that either to be truthful...

  4. #4
    Quote Originally Posted by ;
    If there's no email built-in I'll attempt to script one, but a noise is going to do in the mean time. I haven't seen that either to be honest...
    Place this in the Peak of the programming:

    extern bool PlaySounds = True;

    Place this after your pending order command:

    if (PlaySounds) PlaySound(alert.wav);



    EXAMPLE:

    OrderSend(Symbol(), OP_BUYLIMIT, Lotslvl4, Ask-(42*Point), Slippage, StopLossLevel -(47*Point), TakeProfitLevel - 0.0047, Buy, MagicNumber, 0, DodgerBlue);
    if (PlaySounds) PlaySound(alert.wav);

  5. #5

  6. #6
    Quote Originally Posted by ;
    I believe threadstarter wants to awake only when the pending order has been filled (OP_BUYLIMIT OP_BUY), not when it's only placed. This piece of code gave won't work sadly if that is true.

    You'll need to put away the ticket number in a variable, then poll through your current commerce pool and keep checking if that pending order is no more a pending order, then it is going to play audio or send email. Not difficult. If you have issues with that, pm me.

    Regards,
    Zen
    zen, I believe you are exactly correct, and my programming wont work

    (that code just alerts when a pending transaction is made)

    I believe You'll Be getting a PM in the thread starter soon

  7. #7
    I think threadstarter needs to alert only when the pending order is being filled (OP_BUYLIMIT OP_BUY), not if it is just placed. This bit won't function sadly if that is true.

    You will need to put away the ticket number in a variable, then survey via your current commerce pool and maintain checking if that pending order is no longer a pending order, then it is going to play audio or send email. Not hard. Pm me, in case you have issues with that.

    regards,
    Zen

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
This website uses cookies
We use cookies to store session information to facilitate remembering your login information, to allow you to save website preferences, to personalise content and ads, to provide social media features and to analyse our traffic. We also share information about your use of our site with our social media, advertising and analytics partners.