that's silly to expect a text "buy_alert" to play a sound
The software won't understand what "buy_alert" is. The software understands by default the system sounds such as "alert.wav"
PlaySound("alert.wav");
You have to add sounds to the MQL5\Files folder if you want to use your own sounds, and then you must load them as a resource.
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
Hi, i made an expert, and i desired to play a sound every time the expert buy.
So, i added this line, but it does't work:
Note that i hear a sound if i place it inside of the OnDeinit function.
But i don"t hear any sound when i place it inside the function that create a buy order. Here is the function: