
#property copyright "copyright currencymeter.com"
#property link      ""

#property indicator_chart_window
#property indicator_buffers 3
#property indicator_color1 Red
#property indicator_color2 White
#property indicator_color3 Lime

bool gi_76 = TRUE;
bool gi_80 = TRUE;
int gi_84 = 342443;
string gs_88 = "2009.11.30";
string gs_96 = "2008.08.01";
double gda_104[];
double gda_108[];
double gda_112[];

int init() {
   SetIndexStyle(0, DRAW_LINE, EMPTY, 3);
   SetIndexBuffer(0, gda_104);
   SetIndexStyle(1, DRAW_LINE, EMPTY, 3);
   SetIndexBuffer(1, gda_108);
   SetIndexStyle(2, DRAW_LINE, EMPTY, 3);
   SetIndexBuffer(2, gda_112);
   return (0);
}

int deinit() {
   return (0);
}

int start() {
//   if (CheckV()) return (0);
   int li_12 = IndicatorCounted();
   if (li_12 < 0) return (-1);
   if (li_12 > 0) li_12--;
   int li_8 = Bars - li_12;
   for (int li_0 = 0; li_0 < li_8; li_0++) {
      gda_104[li_0] = iMA(NULL, 0, 5, 0, MODE_EMA, PRICE_CLOSE, li_0);
      gda_108[li_0] = iMA(NULL, 0, 7, 0, MODE_EMA, PRICE_CLOSE, li_0);
      gda_112[li_0] = iMA(NULL, 0, 12, 0, MODE_EMA, PRICE_CLOSE, li_0);
   }
   return (0);
}

/*bool CheckV() {
   int li_0 = TimeCurrent();
   int li_4 = StrToTime(gs_88);
   int li_8 = StrToTime(gs_96);
   if (li_0 >= li_4 || li_0 <= li_8) {
      Comment(" Program has been expired. Please, contact http://currencymeter.com to renew");
      ObjectsDeleteAll();
      return (TRUE);
   }
   if (!gi_76 && IsDemo() && gi_80 == TRUE) {
      Comment("F1");
      return (TRUE);
   }
   if (!IsDemo() && AccountNumber() != gi_84) {
      Comment("F2");
      return (TRUE);
   }
   if (IsDemo() && AccountNumber() != gi_84 && gi_80 == TRUE) {
      Comment("Wrong account Number. Promgram has been disabled");
      return (TRUE);
   }
   return (FALSE);
}*/