Navigation:Home > Content >

Winmaxpips.mq4

Time: 2015-07-27 | Download file:Winmaxpips.mq4

/*
   G e n e r a t e d  by ex4-to-mq4 decompiler FREEWARE 4.0.509.5
   Website: h t tP:/ /w W W. Me Ta q U OtE S .net
   E-mail : s UpP O rT @meTAqu Ot ES.n e t
*/
#property copyright "WINMAXPIPS FOREX © www.winmaxpips.com"
#property link      "www.winmaxpips.com"

#property indicator_separate_window
#property indicator_buffers 3
#property indicator_color1 Yellow
#property indicator_color2 Lime
#property indicator_color3 Red

extern string Alert_Setting = "==== Alert Setting ===";
extern bool PlatformAlert = TRUE;
extern bool EmailAlert = FALSE;
int Gi_92 = 0;
double G_ibuf_96[];
double G_ibuf_100[];
double G_ibuf_104[];

// E37F0136AA3FFAF149B351F6A4C948E9
int init() {
   IndicatorShortName("WINMAXPIPS");
   SetIndexLabel(0, NULL);
   if (ObjectType("xobj") != 23) ObjectDelete("xobj");
   if (ObjectFind("xobj") == -1) ObjectCreate("xobj", OBJ_LABEL, 0, Time[5], Close[5]);
   ObjectSetText("xobj", " WINMAXPIPS FOREX © www.winmaxpips.com");
   ObjectSet("xobj", OBJPROP_FONTSIZE, 11);
   ObjectSet("xobj", OBJPROP_CORNER, 2);
   ObjectSet("xobj", OBJPROP_COLOR, Yellow);
   ObjectSet("xobj", OBJPROP_XDISTANCE, 20);
   ObjectSet("xobj", OBJPROP_YDISTANCE, 10);
   SetIndexStyle(0, DRAW_HISTOGRAM, EMPTY, 1);
   SetIndexArrow(0, 108);
   SetIndexBuffer(0, G_ibuf_96);
   SetIndexStyle(1, DRAW_ARROW, EMPTY, 1);
   SetIndexArrow(1, 225);
   SetIndexBuffer(1, G_ibuf_100);
   SetIndexStyle(2, DRAW_ARROW, EMPTY, 1);
   SetIndexArrow(2, 226);
   SetIndexBuffer(2, G_ibuf_104);
   return (0);
}

// 52D46093050F38C27267BCE42543EF60
int deinit() {
   ObjectDelete("xobj");
   return (0);
}

// EA2B2676C28C0DB26D39331A336C6B92
int start() {
   if (ObjectType("xobj") != 23) ObjectDelete("xobj");
   if (ObjectFind("xobj") == -1) ObjectCreate("xobj", OBJ_LABEL, 0, Time[5], Close[5]);
   ObjectSetText("xobj", "WINMAXPIPS FOREX © www.winmaxpips.com");
   ObjectSet("xobj", OBJPROP_FONTSIZE, 11);
   ObjectSet("xobj", OBJPROP_CORNER, 2);
   ObjectSet("xobj", OBJPROP_COLOR, Yellow);
   ObjectSet("xobj", OBJPROP_XDISTANCE, 800);
   ObjectSet("xobj", OBJPROP_YDISTANCE, 10);
   double Ld_0 = 0;
   for (int Li_8 = 0; Li_8 < Bars; Li_8++) {
      Ld_0 = iMA(Symbol(), 0, 25, 0, MODE_SMA, PRICE_CLOSE, Li_8) - iMA(Symbol(), 0, 25, 0, MODE_SMA, PRICE_CLOSE, Li_8 + 1);
      Ld_0 += iMA(Symbol(), 0, 25, 0, MODE_SMA, PRICE_CLOSE, Li_8 + 1) - iMA(Symbol(), 0, 25, 0, MODE_SMA, PRICE_CLOSE, Li_8 + 2);
      Ld_0 /= 2.0;
      G_ibuf_96[Li_8] = Ld_0;
   }
   for (Li_8 = 0; Li_8 < Bars; Li_8++) {
      if (G_ibuf_96[Li_8] > 0.0) G_ibuf_100[Li_8] = G_ibuf_96[Li_8];
      else G_ibuf_104[Li_8] = G_ibuf_96[Li_8];
   }
   if (Gi_92 != Time[0]) Gi_92 = Time[0];
   else return (0);
   if (G_ibuf_100[1] == G_ibuf_96[1] && G_ibuf_104[0] == G_ibuf_96[0]) {
      if (PlatformAlert) Alert("WINMAXPIPS Signal: " + "SELL on " + Symbol() + ", Time Frame: " + f0_0(Period()) + ", at " + DoubleToStr(Bid, Digits) + ".");
      if (EmailAlert) SendMail("WINMAXPIPS Signal: ", "SELL on " + Symbol() + ", Time Frame: " + f0_0(Period()) + ", at " + DoubleToStr(Bid, Digits) + ".");
   } else {
      if (G_ibuf_100[0] == G_ibuf_96[0] && G_ibuf_104[1] == G_ibuf_96[1]) {
         if (PlatformAlert) Alert("WINMAXPIPS Signal: " + "BUY on " + Symbol() + ", Time Frame: " + f0_0(Period()) + ", at " + DoubleToStr(Ask, Digits) + ".");
         if (EmailAlert) SendMail("WINMAXPIPS Signal: ", "BUY on " + Symbol() + ", Time Frame: " + f0_0(Period()) + ", at " + DoubleToStr(Ask, Digits) + ".");
      }
   }
   return (0);
}

// 0216E586E9A93D196CCEA870ED65F0D3
string f0_0(int Ai_0) {
   switch (Ai_0) {
   case 1:
      return ("M1");
   case 5:
      return ("M5");
   case 15:
      return ("M15");
   case 30:
      return ("M30");
   case 60:
      return ("H1");
   case 240:
      return ("H4");
   case 1440:
      return ("D1");
   case 10080:
      return ("W1");
   case 1440:
      return ("MN1");
   }
   return ("N/A");
}

Recommend