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.
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.
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...Originally Posted by ;
Place this in the Peak of the programming:Originally Posted by ;
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);
zen, I believe you are exactly correct, and my programming wont workOriginally Posted by ;
(that code just alerts when a pending transaction is made)
I believe You'll Be getting a PM in the thread starter soon
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