int OnInit() {
   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[]) {

      if (iCustom(NULL, 0, "New folder\\Manual Trade Cashpower Lifetime.ex4", 0, 0) > 0.0 || iCustom(NULL, 0, "New folder\\Manual Trade Cashpower Lifetime.ex4", 1, 0) > 0.0 ||
      iCustom(NULL, 0, "New folder\\Manual Trade Cashpower Lifetime.ex4", 2, 0) > 0.0 || iCustom(NULL, 0, "New folder\\Manual Trade Cashpower Lifetime.ex4", 3, 0) > 0.0)
         Alert("*** Manual Trade Cashpower Lifetime: " + Symbol() + " - " + IntegerToString(Period()) + " - " +
            DoubleToStr(iCustom(NULL, 0, "New folder\\Manual Trade Cashpower Lifetime.ex4", 0, 0), Digits()) + " - " +
            DoubleToStr(iCustom(NULL, 0, "New folder\\Manual Trade Cashpower Lifetime.ex4", 1, 0), Digits()) + " - " +
            DoubleToStr(iCustom(NULL, 0, "New folder\\Manual Trade Cashpower Lifetime.ex4", 2, 0), Digits()) + " - " +
            DoubleToStr(iCustom(NULL, 0, "New folder\\Manual Trade Cashpower Lifetime.ex4", 3, 0), Digits()) + " ***");
   return(rates_total); }
