Quick question for a home made indicator

 

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.

 
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");
Reason: