Bid High Low Alert

Bid High Low Alert
Price Data Components
Series array that contains the highest prices of each barSeries array that contains the lowest prices of each barSeries array that contains close prices for each bar
Miscellaneous
It plays sound alerts
1 Views
0 Downloads
0 Favorites
Bid High Low Alert

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