Add Sound Alert where you can pick the SOund

 

I currently have a PA indicator(see attached, it is not mine), which has a Sound Alert, but you can only switch it on and off, not pick the sound so it will have the default MT4 alert. If I change that one, it will obviously change all Alerts, which I don't want.


Is it possibe to add that to this indicator,so I have a distinct sound when the arrow appears?


Thanks,

Files:
 

You can use PlaySound for this. Just add it to the lines where Alert(...) is called.

PlaySound("Queen-BohemianRhapsody.wav");
 
lippmaje: You can use PlaySound for this. Just add it to the lines where Alert(...) is called.

And put the sound file in C:\Program Files (x86)\<Brokers Directory>\Sounds\ folder.

 

Thanks for the replies. The sound fie is in the directory, but I must have not put it in the correct fields.


I've entered Playsound("Mysound.wav");   3 times, see attached. Alert pops up more times, but where do I have to put this all in.


Thanks,

Reason: