How to get an audile alarm when a trade is executed
Use Playsound in the code
PlaySound
It plays a sound file.
bool PlaySound( |
Parameters
filename
[in] Path to a sound file. If filename=NULL, the playback is stopped.
Return Value
true – if the file is found, otherwise - false.
Note
The file must be located in terminal_directory\Sounds or its sub-directory. Only WAV files are played.
Call of PlaySound() with NULL parameter stops playback.
PlaySound() function does not work in the Strategy Tester.
Thanks for the response.
If I got it right, this code has to be inserted in the expert?
Isn't there a general switch button in MT that allow to play a sound if a buy of sell order is activated?
Thanks again.

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Since I work from home, this alarm would give me the opportunity to do other thing while the experts are executed.
I just find it strange that I can't find any answer here on MQL5 and on the internet in general, for something so simple.
Thanks for the help.