I think there is a function called playsound or something like that, look it up in the reference.
landmeister:
Dear all,
I'm creating my own indicator and I don't know how I can select the sound for an alert. I know how sound alerts can be added, but only the default bell one is always selected. Could someone please tel me how cal I select the sound? I mean in my indicator code. I DO KNOW how to select a different sound manually in my MT4 platform.
Thank you very much in advance.
Use the PlaySound() command with any wav file. Just make any wav file you like and put it in with the other wav files. And call it like this...
PlaySound("whatever.wav");

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
Dear all,
I'm creating my own indicator and I don't know how I can select the sound for an alert. I know how sound alerts can be added, but only the default bell one is always selected. Could someone please tel me how cal I select the sound? I mean in my indicator code. I DO KNOW how to select a different sound manually in my MT4 platform.
Thank you very much in advance.