Navigation´╝ÜHome > Content >

AligatorOSZ-Free.mq4

Time: 2015-08-07 | Download file:AligatorOSZ-Free.mq4

/*
   G e n e r a t e d  by ex4-to-mq4 decompiler FREEWARE 4.0.509.5
   Website: h T Tp : / /Ww w .me TaQU Ote s .NeT
   E-mail :  S U p P O [email protected] EtA Quo Tes.N E T
*/
#property copyright "Michael Zuegg"
#property link      "www.when-money-makes-money.com"

#property indicator_separate_window
#property indicator_buffers 5
#property indicator_color1 Blue
#property indicator_color2 Blue
#property indicator_color3 Red
#property indicator_color4 Red
#property indicator_color5 Yellow

double G_ibuf_76[];
double G_ibuf_80[];
double G_ibuf_84[];
double G_ibuf_88[];
double G_ibuf_92[];
extern int jaw.p = 13;
extern int jaw.shift = 8;
extern int theet.p = 8;
extern int theet.shift = 5;
extern int lips.p = 5;
extern int lips.shift = 3;

int init() {
   SetIndexStyle(0, DRAW_HISTOGRAM, STYLE_SOLID, 1);
   SetIndexBuffer(0, G_ibuf_76);
   SetIndexStyle(1, DRAW_HISTOGRAM, STYLE_SOLID, 5);
   SetIndexBuffer(1, G_ibuf_80);
   SetIndexStyle(2, DRAW_HISTOGRAM, STYLE_SOLID, 1);
   SetIndexBuffer(2, G_ibuf_84);
   SetIndexStyle(3, DRAW_HISTOGRAM, STYLE_SOLID, 5);
   SetIndexBuffer(3, G_ibuf_88);
   SetIndexStyle(4, DRAW_LINE, STYLE_SOLID, 5);
   SetIndexBuffer(4, G_ibuf_92);
   return (0);
}

int start() {
   int ind_counted_0 = IndicatorCounted();
   double ialligator_4 = 0;
   double ialligator_12 = 0;
   double ialligator_20 = 0;
   int Li_28 = 0;
   for (int Li_32 = Bars - ind_counted_0 - 1; Li_32 >= 0; Li_32--) {
      Li_28 = 0;
      ialligator_4 = iAlligator(Symbol(), Period(), jaw.p, jaw.shift, theet.p, theet.shift, lips.p, lips.shift, MODE_SMMA, PRICE_MEDIAN, MODE_GATORLIPS, Li_32);
      ialligator_12 = iAlligator(Symbol(), Period(), jaw.p, jaw.shift, theet.p, theet.shift, lips.p, lips.shift, MODE_SMMA, PRICE_MEDIAN, MODE_GATORTEETH, Li_32);
      ialligator_20 = iAlligator(Symbol(), Period(), jaw.p, jaw.shift, theet.p, theet.shift, lips.p, lips.shift, MODE_SMMA, PRICE_MEDIAN, MODE_GATORJAW, Li_32);
      G_ibuf_92[Li_32] = MathMax(ialligator_4, MathMax(ialligator_12, ialligator_20)) - MathMin(ialligator_4, MathMin(ialligator_12, ialligator_20));
      if (ialligator_4 > ialligator_20) {
         Li_28 = 1;
         if (ialligator_12 > ialligator_20 && ialligator_12 < ialligator_4 && G_ibuf_92[Li_32] > G_ibuf_92[Li_32 + 1]) Li_28 = 2;
      }
      if (ialligator_4 < ialligator_20) {
         Li_28 = -1;
         if (ialligator_12 < ialligator_20 && ialligator_12 > ialligator_4 && G_ibuf_92[Li_32] > G_ibuf_92[Li_32 + 1]) Li_28 = -2;
      }
      switch (Li_28) {
      case 2:
         G_ibuf_80[Li_32] = G_ibuf_92[Li_32];
         G_ibuf_76[Li_32] = 0;
         G_ibuf_84[Li_32] = 0;
         G_ibuf_88[Li_32] = 0;
         break;
      case 1:
         G_ibuf_80[Li_32] = 0;
         G_ibuf_76[Li_32] = G_ibuf_92[Li_32];
         G_ibuf_84[Li_32] = 0;
         G_ibuf_88[Li_32] = 0;
         break;
      case -2:
         G_ibuf_80[Li_32] = 0;
         G_ibuf_76[Li_32] = 0;
         G_ibuf_84[Li_32] = 0;
         G_ibuf_88[Li_32] = G_ibuf_92[Li_32];
         break;
      case -1:
         G_ibuf_80[Li_32] = 0;
         G_ibuf_76[Li_32] = 0;
         G_ibuf_84[Li_32] = G_ibuf_92[Li_32];
         G_ibuf_88[Li_32] = 0;
      }
   }
   return (0);
}

Recommend