Hi guys,

I downloaded a Moving Average Price Alert from here Some Time back [code below and attached].

Problem isI cant seem to get a custom made sound working. The script always defaults to the alert.wav mode sound in the sounds folder. .

I cant seem to change this even if stressful PlaySound (myownsound.wav) etc..

Appreciate any help!

Inserted Code // ------------------------------------------------------------------ //| EMA-alert-Symbol-Period. mq4 | //| Copyright © 2007, MetaQuotes Software Corp.. | //| http://www.metaquotes.net | //p ------------------------------------------------------------------ #property copyright Copyright © 2007, MetaQuotes Software Corp. #property link http://www.metaquotes.net #property indior_chart_window #property indior_buffers 1 //MODE_SMA 0 Straightforward moving average, //MODE_EMA 1 Exponential moving average, //MODE_SMMA 2 Smoothed moving average, //MODE_LWMA 3 Linear weighted moving average. //PRICE_CLOSE 0 Near price. //PRICE_OPEN 1 Open price. //PRICE_HIGH 2 High price. //PRICE_LOW 3 Low price. //PRICE_MEDIAN 4 Median price, (high low)/2. //PRICE_TYPICAL 5 Average price, (high low close)/3. //PRICE_WEIGHTED 6 Weighted close price, (high low close close)/4. //-- input parameters extern int ma_period = 24; extern int ma_mode = 0; extern int ma_price = 0; extern int ma_shift = 0; //-- buffers double ExtMapBuffer1#91;#93;; extern bool Box_Alert =true; extern bool Sound_Alert =true; extern series Sound_File = C:\timeout.wav; //lt;-- this doesn't play!! Extern bool Email_Alert =false; extern int pip_distance = 100; datetime lastimealert; //-- double ema_value; //p ------------------------------------------------------------------ //| Custom indior initialization serve | //p ------------------------------------------------------------------ int init() //-- indiors SetIndexBuffer(0, ExtMapBuffer1); //-- title for DataWindow and indior subwindow label //-- return(0); //p ------------------------------------------------------------------ //| Custor indior deinitialization function | //p ------------------------------------------------------------------ int deinit() //-- return(0); //p ------------------------------------------------------------------ //| Custom indior iteration serve | //p ------------------------------------------------------------------ int begin () int limit; int counted_bars = IndiorCounted(); //-- check for possible errors if(counted_bars lt; 0) return(-1); //-- final counted pub will be recounted if(counted_bars gt; 0) counted_bars--; restrict = Bars - counted_bars; //-- series MA; for(int I = 0; I lt; restrict; I ) ema_value= iMA(NULL,0,ma_period,ma_shift,ma_mode,ma_price,I); should (ma_mode==0)MA=SMA; if(ma_mode==1)MA=EMA; if(ma_mode==2)MA=SMMA; if(ma_mode==3)MA=LWMA; //-- ExtMapBuffer1#91;I#93; = ema_value-Ask; should (MathAbs(ema_value-Bid)lt;=pip_distance*Stage lastimealert! = Time#91;0#93; ) if(Box_Alert) Alert(Symbol(), M,Stage (), Price is included,pip_distance, pips of,ma_period, Period MA ); should (Sound_Alert) PlaySound(timeout.wav); should (Email_Alert) SendMail(Price Alert on Symbol() M Period(),Symbol() M Period() Price is within pip_distance pips of ma_period Phase MA ); lastimealert= Time#91;0#93;; //-- return(0); // ------------------------------------------------------------------ https://www.forexsoutheast.asia/atta...4520596559.mq4