Playing the sound i want when alert

 

Can anyone advice me if I did the wrong for the following alert? I want it to play the sound i created name 1minsell, but i can't get the program to play the sound I want. I have copy the '1minsell' wav file to the sound folder? where did i miss out?

Thanks

if (Alerts) Alert("[" + Symbol() + "] " + DoubleToStr(Bid, Digits) + " SELL"); //display on alert box
if (PlaySounds) PlaySound("1minsell.wav");

 

thanks, i finally get to get it working. I insert sleep() in between the 2 function, think they can't work together. If have better other alternative please do advice me. Thanks

possible to do without the alert sound and only have my own wave sound? I dont' like the 'bringing' sound from the alert. thanks

 
georgecheng wrote >>

thanks, i finally get to get it working. I insert sleep() in between the 2 function, think they can't work together. If have better other alternative please do advice me. Thanks

possible to do without the alert sound and only have my own wave sound? I dont' like the 'bringing' sound from the alert. thanks

you can change the sound in MetaTrader/Extras/Options also

 
EADeveloper wrote >>

you can change the sound in MetaTrader/Extras/Options also

Thanks, I think i would just disable the alert sound and use mine.

Thanks again.