Hello,
I can't find the original thread where this was discussed, so I apologize if this has already been answered.
It's about the problem to have at the same time an Alert and a Playsound command in either an indicator or EA. If both are together, only the Alert would sound (as it is interpreted as simultaneous and both sounds won't play).
I got the answer to solve this on MQL4 codebase board so here it is:
Alert();
Sleep(500); // waiting a half second
PlaySound();
SendMail();
Regards
Caroline
I can't find the original thread where this was discussed, so I apologize if this has already been answered.
It's about the problem to have at the same time an Alert and a Playsound command in either an indicator or EA. If both are together, only the Alert would sound (as it is interpreted as simultaneous and both sounds won't play).
I got the answer to solve this on MQL4 codebase board so here it is:
Alert();
Sleep(500); // waiting a half second
PlaySound();
SendMail();
Regards
Caroline