extern double lowPrice = 1.2345;
extern double highPrice = 1.6789;
//+------------------------------------------------------------------+
//|                                                                  |
//+------------------------------------------------------------------+
double close,hi,lo;
int start()
  {
hi=iHigh(NULL,PERIOD_M30,1);
lo=iLow(NULL,PERIOD_M30,1);
close=iClose(NULL,PERIOD_M30,1);
      if(close<lowPrice||close>highPrice)
        {
         PlaySound("alert.wav");
        return(0); 
        }
   return(0);
  }
// the end.
Comments