Download MetaTrader 5

Quick question for a home made indicator

To add comments, please log in or register
landmeister
197
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.

Ian Venner
2584
Ian Venner  
I think there is a function called playsound or something like that, look it up in the reference.
MisterDog
381
MisterDog  
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