WAV alerts - page 2

 

Alert when SL or TP are hit

Does anyone have a way to generate an alert when a SL or TP are hit, I think it could be a useful tool.

 
Files:
 

How to play custom sound file

Hello

I have already written a very simple indicator and I want to play a sound file (wave file) when it alerts. I put a "xxxxx.wav" file in C:\Meta Trader Folder\sounds. And I put a code

"PlaySound("xxxxx.wav"); "

But it never play. It just uses built in sound file "alert.wav ".

If somebody knows how to fix it, please advice me.

Thanks & Rgds

mithetnme

 

It works!

Test the attached script. Maybe you missing something.

mithetnme:
Hello

I have already written a very simple indicator and I want to play a sound file (wave file) when it alerts. I put a "xxxxx.wav" file in C:\Meta Trader Folder\sounds. And I put a code

"PlaySound("xxxxx.wav"); "

But it never play. It just uses built in sound file "alert.wav ".

If somebody knows how to fix it, please advice me.

Thanks & Rgds

mithetnme
Files:
playsound.mq4  1 kb
 
zas:
Is it possible to replace the beep sound in the indicators alerts with .wav alerts?

Anyone know of voice library for buy/sell/exit etc.

Thanks

as for me beep sound is much more habitual, so I don`t understand why its need to be replaced.