Add Sound Alert where you can pick the SOund

To add comments, please log in or register
Dermas Ghebremeskel
343
Dermas Ghebremeskel  

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,

lippmaje
854
lippmaje  

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

PlaySound("Queen-BohemianRhapsody.wav");
William Roeder
19815
William Roeder  
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.

Dermas Ghebremeskel
343
Dermas Ghebremeskel  

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,

To add comments, please log in or register