SMSalert





//+------------------------------------------------------------------+
//|                                                  SMSalert.mq4 |
//|                                       Copyright © 2004, Topor |
//|                                       http://zforex.narod.ru/ |
//+------------------------------------------------------------------+

extern int Level = 10;
double Points;
double LastBid;
//+------------------------------------------------------------------+
//|                                                                  |
//+------------------------------------------------------------------+
int init ()
  {
  Points = MarketInfo (Symbol(),MODE_POINT);
  return(0);
  }
//+------------------------------------------------------------------+
//|                                                                  |
//+------------------------------------------------------------------+
int deinit()
  {
  return(0);
  }
//+------------------------------------------------------------------+
//|                                                                  |
//+------------------------------------------------------------------+
int start()
  {
  if (!GlobalVariableCheck("LastBid"))
     {
     GlobalVariableSet("LastBid",Bid);
     }
     double LBid;
     LBid=GlobalVariableGet("LastBid");
     if ((LBid+Points*Level)<=Bid || (LBid-Points*Level)>=Bid) 
         {
         GlobalVariableDel("LastBid");
         GlobalVariableSet("LastBid",Bid);
         double t_high=MarketInfo(Symbol(), MODE_HIGH);
         double t_low=MarketInfo(Symbol(), MODE_LOW);
         SendMail(""+Symbol()+" "+DoubleToStr(Bid,4)+" "+DoubleToStr(Hour(),0)+":"+DoubleToStr(Minute(),0),""+" "+"High: "+DoubleToStr(t_high,4)+" "+"Low: "+DoubleToStr(t_low,4)+" "+"Profit: "+DoubleToStr(AccountProfit(),2));
         }
    }
return(0);



Sample





Analysis



Market Information Used:



Indicator Curves created:


Indicators Used:



Custom Indicators Used:

Order Management characteristics:

Other Features:


It sends emails