Download MetaTrader 5
To add comments, please log in or register
No time to learn MQL5? The source code library is at your service!
landmeister
197
landmeister 2014.05.10 14:24 

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.

Ian Venner
2583
Ian Venner 2014.05.11 02:41  
I think there is a function called playsound or something like that, look it up in the reference.
MisterDog
380
MisterDog 2014.05.12 05:11  
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");
/
To add comments, please log in or register