int OnInit() {
   EventSetTimer(10);
   return(INIT_SUCCEEDED); }

int OnCalculate(const int rates_total, const int prev_calculated, const datetime &time[],
   const double &open[], const double &high[], const double &low[], const double &close[],
   const long &tick_volume[], const long &volume[], const int &spread[]) {

   return(rates_total); }

void OnTimer() { 
   Alert("***** " + DoubleToStr(iMA(NULL, 0, 100, 0, MODE_EMA, PRICE_CLOSE, 0), 2) + " *****");
   Alert("***** " + DoubleToStr(iCustom(NULL, 0, "Parabolic.ex4", 0, 0), 2) + " - " + DoubleToStr(iCustom(NULL, 0, "Parabolic.ex4", 0, 1), 2) +
      " - " + DoubleToStr(iCustom(NULL, 0, "Parabolic.ex4", 0, 2), 2) + " *****");
   }
