Sound alert instead of message box New comment Anky Five 2021.06.09 08:47 Hello, I have an indicator that displays messages. I would like a sound instead. So I replaced this if (SoundON==true && i==1 && CrossUp[i] < CrossDown[i] && alertTag!=Time[0]){ Alert("EMA Cross Trend going Up on ",Symbol()," ",Period()); alertTag = Time[0]; } } by this if (SoundON==true && i==1 && CrossUp[i] < CrossDown[i] && alertTag!=Time[0]){ PlaySound("Alert.wav"); alertTag = Time[0]; } } but it does not work.Any help would be appreciated Thanks Werner Arthur Klehr 2021.06.09 08:56 #1 Hi Anky, you should try to write the filename in lowercase: PlaySound("alert.wav"); and you should check if the soundfile is in the "Sounds"-folder of yourMetaTrader installation.Best regards, Anky Five 2021.06.09 10:25 #2 Hello Werner, Thanks for your reply. I did check this and it is correct. I also discovered that my indicator is not displaying new arrows when installed it just displays old ones. This is probably the cause of my problem... Various Multi Timeframe Indicators I don't plot the New comment
Hello,
I have an indicator that displays messages. I would like a sound instead.
So I replaced this
by this
but it does not work.
Any help would be appreciated
Thanks