///////////////////////////////////////////////////////////////////
//Generated by ex4 to mq4 decompile Service                      // 
//Website:                                                       //
//E-mail : jlk2k3@gmail.com ; decompiler.ex4tomq4@gmail.com      //
///////////////////////////////////////////////////////////////////
#property copyright "Copyright © 2013,PIPS WINNER ALL RIGHTS RESERVED"
#property link      " http://www.pipswinner.com "

#property indicator_separate_window
#property indicator_buffers 4
#property indicator_color1 Black
#property indicator_color2 Lime
#property indicator_color3 Red
#property indicator_color4 Yellow

#import "pipswinner.dll"
   int MqlLock_52855E8D_2_1111I111ii(int a0, int a1, int a2);
   double MqlLock_52855E8D_2_11ii111Ii1(double a0);
   int MqlLock_52855E8D_2_11II1ii1II();
   string MqlLock_52855E8D_2_11IiI11I11(string a0);
   string MqlLock_52855E8D_2_11IiIi1iI1(int a0);
   int MqlLock_52855E8D_2_11IiIiii1i();
   int MqlLock_52855E8D_2_1i11111iii(int a0, int a1);
   bool MqlLock_52855E8D_2_1I111iII11(int a0);
   int MqlLock_52855E8D_2_1I11i1III1(int a0, int a1, int a2);
   string MqlLock_52855E8D_2_1I11i1iiII(string a0, string a1);
   double MqlLock_52855E8D_2_1i1i11iii1(int a0);
   double MqlLock_52855E8D_2_1I1iI1i1i1(double a0);
   bool MqlLock_52855E8D_2_1i1III1Ii1(int a0, int a1, int a2, int a3);
   double MqlLock_52855E8D_2_1i1IIii11I(int a0);
   int MqlLock_52855E8D_2_1I1iIiIIii();
   int MqlLock_52855E8D_2_1I1IiIiiii(int a0);
   void MqlLock_52855E8D_2_1II11i11i1(int a0, int a1);
   double MqlLock_52855E8D_2_1II11iI11i(double a0, double a1);
   bool MqlLock_52855E8D_2_1II11iIi1I(int a0, int a1);
   double MqlLock_52855E8D_2_1Ii1ii1i1i(int a0, int a1, string a2);
   bool MqlLock_52855E8D_2_1ii1iIIi1i(int a0, int a1);
   bool MqlLock_52855E8D_2_1ii1IIiIII(int a0, string a1, int a2);
   string MqlLock_52855E8D_2_1Ii1IiIiII(int a0);
   string MqlLock_52855E8D_2_1Iii11I11I(int a0, string a1);
   int MqlLock_52855E8D_2_1iii1I11II(int a0);
   double MqlLock_52855E8D_2_1IiI1iiIi1(double a0);
   int MqlLock_52855E8D_2_1iIII1i1I1(int a0, int a1, int a2);
   int MqlLock_52855E8D_2_1Iiii1ii1I(int a0, int a1, int a2);
   int MqlLock_52855E8D_2_1iiii1iIiI(int a0);
   void MqlLock_52855E8D_2_1IIII1Iiii(int a0, int a1, string a2);
   bool MqlLock_52855E8D_2_1iiiiI1111(double a0, int a1, int a2, double a3);
   int MqlLock_52855E8D_2_1IIIIi11iI(int a0, string a1, int a2);
   string MqlLock_52855E8D_2_1iiIiII11i();
   string MqlLock_52855E8D_2_1iiIIIi1ii(string a0);
   bool MqlLock_52855E8D_2_1IiIIiIIi1(int a0, int a1, int a2);
   int MqlLock_52855E8D_2_i111111Iii(int a0, string a1, int a2);
   string MqlLock_52855E8D_2_I111i1iIi1(string a0, string a1);
   int MqlLock_52855E8D_2_i111IiiIiI();
   bool MqlLock_52855E8D_2_I11i1iIIiI(int a0, int a1, int a2);
   bool MqlLock_52855E8D_2_I11II111iI(int a0, int a1);
   int MqlLock_52855E8D_2_i11II1ii1I();
   int MqlLock_52855E8D_2_I11iiiI11I();
   string MqlLock_52855E8D_2_i11iIiI1i1(int a0, int a1);
   double MqlLock_52855E8D_2_i1i11IIi1I(int a0, int a1, int a2);
   string MqlLock_52855E8D_2_I1I1i1I11I(int a0);
   string MqlLock_52855E8D_2_I1i1IIIiIi(int a0, int a1);
   string MqlLock_52855E8D_2_I1Ii111iiI(int a0, int a1);
   int MqlLock_52855E8D_2_i1Ii1i11i1();
   int MqlLock_52855E8D_2_I1Ii1iiiI1(int a0);
   int MqlLock_52855E8D_2_I1II1Iiiii(int a0, int a1);
   int MqlLock_52855E8D_2_I1IIi11111(int a0, int a1);
   double MqlLock_52855E8D_2_i1iii111II(int a0, int a1, int a2, int a3, double a4);
   string MqlLock_52855E8D_2_I1iII11I1I(string a0, int a1, string a2);
   string MqlLock_52855E8D_2_i1IIi1I11I(int a0, int a1);
   double MqlLock_52855E8D_2_I1iIi1i1i1(double a0);
   double MqlLock_52855E8D_2_i1IIii1I1I(int a0, int a1, double a2);
   double MqlLock_52855E8D_2_I1iiII1ii1(int a0);
   string MqlLock_52855E8D_2_I1iIII1II1();
   bool MqlLock_52855E8D_2_I1iiiiI11I(int a0);
   double MqlLock_52855E8D_2_i1iIiIi1i1(int a0, string a1);
   int MqlLock_52855E8D_2_i1iiIIiI1I(int a0, int a1, int a2);
   int MqlLock_52855E8D_2_iI11i1iI11(int a0, int a1);
   string MqlLock_52855E8D_2_Ii11I1Ii1i(string a0);
   int MqlLock_52855E8D_2_iI11Ii1I1I(int a0);
   int MqlLock_52855E8D_2_ii11iiiiii(int a0, int a1);
   double MqlLock_52855E8D_2_II1i1i1I1i(double a0, int a1, double a2);
   string MqlLock_52855E8D_2_iI1I1Iiii1(int a0, int a1, string a2, string a3);
   double MqlLock_52855E8D_2_iI1i1IIIiI(int a0, int a1);
   double MqlLock_52855E8D_2_iI1ii1i1II(int a0, int a1, int a2, string a3, double a4);
   string MqlLock_52855E8D_2_Ii1iI1iii1(int a0);
   bool MqlLock_52855E8D_2_iI1Iii11I1();
   bool MqlLock_52855E8D_2_Ii1iii1iII(int a0);
   double MqlLock_52855E8D_2_II1iii1iiI();
   int MqlLock_52855E8D_2_II1iiIi1i1(string a0, int a1, int a2);
   int MqlLock_52855E8D_2_Ii1iIIIII1(int a0, int a1, int a2);
   void MqlLock_52855E8D_2_II1IiiiII1(int a0);
   string MqlLock_52855E8D_2_ii1IIIIIIi(string a0, string a1);
   string MqlLock_52855E8D_2_III11111iI();
   string MqlLock_52855E8D_2_iIi11IIi1I(string a0, string a1);
   string MqlLock_52855E8D_2_IiI1i11iIi(int a0);
   bool MqlLock_52855E8D_2_IIi1I1iI11(int a0, int a1, int a2);
   string MqlLock_52855E8D_2_iii1i1iI1I(int a0, int a1);
   bool MqlLock_52855E8D_2_iIi1I1iiII(int a0, int a1);
   string MqlLock_52855E8D_2_iiI1IIiIiI(int a0, int a1, string a2);
   int MqlLock_52855E8D_2_IIi1iIiiiI(int a0, int a1, int a2, int a3);
   string MqlLock_52855E8D_2_IIII11iI11(int a0, int a1);
   string MqlLock_52855E8D_2_IiII11III1(string a0, int a1);
   double MqlLock_52855E8D_2_iIIi11iIii(int a0, int a1, int a2, double a3, int a4);
   double MqlLock_52855E8D_2_iIII11Iiii(double a0);
   int MqlLock_52855E8D_2_IIII11iIIi(string a0);
   bool MqlLock_52855E8D_2_IIII1I1111(double a0, double a1);
   double MqlLock_52855E8D_2_iIiI1I1i11(int a0, int a1, string a2, int a3, int a4, double a5);
   int MqlLock_52855E8D_2_IiIi1i1I11();
   int MqlLock_52855E8D_2_IIIi1Ii1iI(int a0);
   int MqlLock_52855E8D_2_iiIIi1111i();
   string MqlLock_52855E8D_2_iIiii1II1i(int a0);
   bool MqlLock_52855E8D_2_iIiIi1IiIi(double a0, double a1);
   string MqlLock_52855E8D_2_IiiII1iiII();
   int MqlLock_52855E8D_2_iiiIii111I(int a0);
   string MqlLock_52855E8D_2_iIiIii11II(int a0, int a1, int a2, string a3);
   string MqlLock_52855E8D_2_IiIIiI1I1i();
   bool MqlLock_52855E8D_2_iiiIIi1Ii1(int a0, string a1, int a2);
   bool MqlLock_52855E8D_2_iiiiiIII11(int a0, string a1, int a2);
   int MqlLock_52855E8D_2_iIiiIIii11(int a0);
   double MqlLock_52855E8D_2_iIiIiIIII1(int a0, int a1, int a2, double a3);
   double MqlLock_52855E8D_2_iiIiiiiIII(double a0, double a1, double a2, double a3);
   bool MqlLock_52855E8D_2_IiiiiiIiii(int a0, double a1, double a2);
#import

extern bool ALERTS = TRUE;
extern bool SoundAlerts = TRUE;
extern string SoundAlertFile = "alert.wave";
extern bool eMailAlerts = TRUE;
int Gi_96;
int Gi_100 = 14;
double G_ibuf_104[];
double G_ibuf_108[];
double G_ibuf_112[];
double G_ibuf_116[];
int Gi_120;
int Gi_124;

// E37F0136AA3FFAF149B351F6A4C948E9
int init() {
   if (MqlLock_52855E8D_2_1I111iII11(IsDllsAllowed())) Alert(MqlLock_52855E8D_2_I1I1i1I11I(eMailAlerts));
   if (MqlLock_52855E8D_2_1II11iIi1I(eMailAlerts, IsLibrariesAllowed())) Alert(MqlLock_52855E8D_2_III11111iI());
   Gi_120 = MqlLock_52855E8D_2_1i11111iii(eMailAlerts, MqlLock_52855E8D_2_I11iiiI11I());
   Gi_124 = WindowHandle(Symbol(), Period());
   if (MqlLock_52855E8D_2_1IiIIiIIi1(Gi_96, Gi_120, MqlLock_52855E8D_2_iiiiiIII11(WindowHandle(Symbol(), Period()), Gi_96, ALERTS))) {
      MqlLock_52855E8D_2_1IIII1Iiii(eMailAlerts, Gi_96, WindowExpertName());
      SetIndexStyle(0, MqlLock_52855E8D_2_IIIi1Ii1iI(Gi_96));
      SetIndexStyle(1, MqlLock_52855E8D_2_i111IiiIiI(), MqlLock_52855E8D_2_i111111Iii(eMailAlerts, SoundAlertFile, ALERTS), 1);
      SetIndexArrow(1, 159);
      SetIndexStyle(2, MqlLock_52855E8D_2_i1Ii1i11i1(), MqlLock_52855E8D_2_II1iiIi1i1(SoundAlertFile, Gi_96, SoundAlerts), 1);
      SetIndexArrow(2, 159);
      SetIndexStyle(3, MqlLock_52855E8D_2_1I11i1III1(Gi_96, SoundAlerts, ALERTS), MqlLock_52855E8D_2_1I1iIiIIii(), 1);
      SetIndexArrow(3, 159);
      IndicatorDigits(Digits + 0);
      SetIndexBuffer(0, G_ibuf_104);
      SetIndexBuffer(1, G_ibuf_108);
      SetIndexBuffer(2, G_ibuf_112);
      SetIndexBuffer(3, G_ibuf_116);
      IndicatorShortName(MqlLock_52855E8D_2_1Ii1IiIiII(eMailAlerts));
      SetIndexLabel(0, MqlLock_52855E8D_2_IIII11iIIi(SoundAlertFile));
      SetIndexLabel(1, MqlLock_52855E8D_2_I1IIi11111(ALERTS, SoundAlerts));
      SetIndexLabel(2, MqlLock_52855E8D_2_IiIi1i1I11());
      return (MqlLock_52855E8D_2_iIiiIIii11(ALERTS));
   }
   return (0);
}
	 		 	 	 	 		       		   	  	 		  		 	  	 				  	    	   			    	 			  	  	     	 	  				   	    	  			 		 	    	  			    	 	   	 			  					   		
// EA2B2676C28C0DB26D39331A336C6B92
void start() {
   double Ld_0;
   double Ld_8;
   double Ld_16;
   string Ls_104;
   string Ls_112;
   string Ls_120;
   if (MqlLock_52855E8D_2_iiiIIi1Ii1(Gi_120, Period(), MqlLock_52855E8D_2_iiI1IIiIiI(SoundAlerts, Gi_120, WindowHandle(Symbol(), Period())))) {
      MqlLock_52855E8D_2_i11II1ii1I();
      return;
   }
   if (MqlLock_52855E8D_2_I11i1iIIiI(Gi_96, eMailAlerts, Gi_124)) 
   Gi_124 = MqlLock_52855E8D_2_1iii1I11II(WindowHandle(Symbol(), Period()));
   MqlLock_52855E8D_2_II1IiiiII1(SoundAlerts);
   int Li_24 = MqlLock_52855E8D_2_Ii1iIIIII1(Gi_96, SoundAlerts, IndicatorCounted());
   double Ld_28 = MqlLock_52855E8D_2_1Ii1ii1i1i(eMailAlerts, SoundAlerts, SoundAlertFile);
   double Ld_36 = MqlLock_52855E8D_2_i1iIiIi1i1(SoundAlerts, SoundAlertFile);
   double Ld_44 = MqlLock_52855E8D_2_iI1i1IIIiI(Gi_96, eMailAlerts);
   double Ld_52 = MqlLock_52855E8D_2_II1iii1iiI();
   double Ld_60 = MqlLock_52855E8D_2_I1iiII1ii1(SoundAlerts);
   double Ld_68 = MqlLock_52855E8D_2_i1i11IIi1I(eMailAlerts, Gi_96, SoundAlerts);
   double Ld_76 = MqlLock_52855E8D_2_1i1i11iii1(Gi_96);
   double Ld_84 = MqlLock_52855E8D_2_1i1IIii11I(eMailAlerts);
   if (MqlLock_52855E8D_2_1ii1IIiIII(Gi_96, SoundAlertFile, Li_24)) Li_24--;
   int Li_92 = MqlLock_52855E8D_2_1iIII1i1I1(Gi_96, Li_24, Bars);
   for (int Li_96 = MqlLock_52855E8D_2_11II1ii1II(); Li_96 < Li_92; Li_96++) {
      Ld_84 = MqlLock_52855E8D_2_i1iii111II(SoundAlerts, iHighest(MqlLock_52855E8D_2_iI11Ii1I1I(eMailAlerts), 0, MqlLock_52855E8D_2_1iiii1iIiI(SoundAlerts), Gi_100, Li_96),
         Gi_100, Li_96, High[iHighest(MqlLock_52855E8D_2_I1Ii1iiiI1(SoundAlerts), 0, MqlLock_52855E8D_2_iI11i1iI11(Gi_96, ALERTS), Gi_100, Li_96)]);
      Ld_76 = MqlLock_52855E8D_2_iIiI1I1i11(Gi_100, iLowest(MqlLock_52855E8D_2_1I1IiIiiii(ALERTS), 0, MqlLock_52855E8D_2_1IIIIi11iI(eMailAlerts, SoundAlertFile, SoundAlerts),
         Gi_100, Li_96), SoundAlertFile, Li_96, ALERTS, Low[iLowest(MqlLock_52855E8D_2_i1iiIIiI1I(ALERTS, eMailAlerts, SoundAlerts), 0, MqlLock_52855E8D_2_11IiIiii1i(), Gi_100,
         Li_96)]);
      Ld_16 = MqlLock_52855E8D_2_II1i1i1I1i(Low[Li_96], Li_96, High[Li_96]);
      Ld_28 = MqlLock_52855E8D_2_iiIiiiiIII(Ld_76, Ld_84, Ld_36, Ld_16);
      Ld_28 = MqlLock_52855E8D_2_1II11iI11i(Ld_28, MqlLock_52855E8D_2_11ii111Ii1(MqlLock_52855E8D_2_1IiI1iiIi1(Ld_28)));
      G_ibuf_104[Li_96] = MqlLock_52855E8D_2_i1IIii1I1I(eMailAlerts, Gi_96, (Ld_28 + 1.0) / (1 - Ld_28)) / 2.0 + Ld_60 / 2.0;
      Ld_36 = MqlLock_52855E8D_2_I1iIi1i1i1(Ld_28);
      Ld_60 = MqlLock_52855E8D_2_iI1ii1i1II(ALERTS, Gi_96, Li_96, SoundAlertFile, G_ibuf_104[Li_96]);
   }
   int Li_100 = MqlLock_52855E8D_2_iI1Iii11I1();
   for (Li_96 = MqlLock_52855E8D_2_I1II1Iiiii(Gi_96, Li_92); Li_96 >= 0; Li_96--) {
      G_ibuf_116[Li_96] = 0;
      Ld_8 = MqlLock_52855E8D_2_iIiIiIIII1(Li_96, ALERTS, Gi_96, G_ibuf_104[Li_96 + 1]);
      Ld_0 = MqlLock_52855E8D_2_iIIi11iIii(eMailAlerts, Li_96, ALERTS, G_ibuf_104[Li_96 + 2], Gi_96);
      if (MqlLock_52855E8D_2_IiiiiiIiii(Gi_96, Ld_8, Ld_0)) {
         Li_100 = MqlLock_52855E8D_2_iiiIIi1Ii1(eMailAlerts, SoundAlertFile, Gi_96);
         if (MqlLock_52855E8D_2_iIiIi1IiIi(Ld_0, Ld_8)) {
            Ls_104 = MqlLock_52855E8D_2_IiII11III1(Symbol(), Gi_96) + MqlLock_52855E8D_2_Ii1iI1iii1(ALERTS) + MqlLock_52855E8D_2_I111i1iIi1(SoundAlertFile, f0_0(Period()));
            Ls_112 = MqlLock_52855E8D_2_I1iII11I1I(SoundAlertFile, eMailAlerts, Ls_104) + MqlLock_52855E8D_2_IiI1i11iIi(SoundAlerts) + MqlLock_52855E8D_2_1I1iI1i1i1(Ld_8);
            Ls_120 = MqlLock_52855E8D_2_ii1IIIIIIi(SoundAlertFile, Ls_112) + MqlLock_52855E8D_2_I1iIII1II1() + MqlLock_52855E8D_2_1I11i1iiII(SoundAlertFile, MqlLock_52855E8D_2_i11iIiI1i1(4,
               TimeLocal()));
            if (MqlLock_52855E8D_2_1ii1iIIi1i(Gi_96, Bars)) {
               Gi_96 = MqlLock_52855E8D_2_1111I111ii(ALERTS, SoundAlerts, Bars);
               f0_1(Ls_120, Ls_112);
            }
         }
      }
      if (MqlLock_52855E8D_2_IIII1I1111(Ld_0, Ld_8)) {
         Li_100 = MqlLock_52855E8D_2_iiiiiIII11(eMailAlerts, SoundAlertFile, Gi_96);
         if (MqlLock_52855E8D_2_1iiiiI1111(Ld_0, SoundAlerts, ALERTS, Ld_8)) {
            Ls_104 = MqlLock_52855E8D_2_iIi11IIi1I(SoundAlertFile, Symbol()) + MqlLock_52855E8D_2_I1Ii111iiI(ALERTS, Gi_96) + MqlLock_52855E8D_2_1Iii11I11I(ALERTS, f0_0(Period()));
            Ls_112 = MqlLock_52855E8D_2_iI1I1Iiii1(Gi_96, ALERTS, SoundAlertFile, Ls_104) + MqlLock_52855E8D_2_i1IIi1I11I(SoundAlerts, ALERTS) + MqlLock_52855E8D_2_iIII11Iiii(Ld_8);
            Ls_120 = MqlLock_52855E8D_2_iIiIii11II(Gi_96, SoundAlerts, ALERTS, Ls_112) + MqlLock_52855E8D_2_IiIIiI1I1i() + MqlLock_52855E8D_2_Ii11I1Ii1i(MqlLock_52855E8D_2_I1i1IIIiIi(4,
               TimeLocal()));
            if (MqlLock_52855E8D_2_1i1III1Ii1(Gi_96, ALERTS, SoundAlerts, Bars)) {
               Gi_96 = MqlLock_52855E8D_2_ii11iiiiii(eMailAlerts, Bars);
               f0_1(Ls_120, Ls_112);
            }
         }
      }
      if (MqlLock_52855E8D_2_IIi1I1iI11(SoundAlerts, eMailAlerts, Li_100)) {
         G_ibuf_112[Li_96] = Ld_8;
         G_ibuf_108[Li_96] = 0.0;
      } else {
         G_ibuf_108[Li_96] = Ld_8;
         G_ibuf_112[Li_96] = 0.0;
      }
   }
   MqlLock_52855E8D_2_iiIIi1111i();
}
				 		    		 		 	  				    	    			 													   			  		  							 	  		   					  	  		  	 		    		 		  	  				 					 		 	 							 	 	 		  	 	
// FF3DED0DF4360E36577F1A7C4D36796A
void f0_1(string As_0, string As_8) {
   if (MqlLock_52855E8D_2_iIi1I1iiII(SoundAlerts, ALERTS)) Alert(As_0);
   if (MqlLock_52855E8D_2_I1iiiiI11I(SoundAlerts)) PlaySound(SoundAlertFile);
   if (MqlLock_52855E8D_2_Ii1iii1iII(eMailAlerts)) SendMail(As_8, As_0);
}
		   		 	 	 	 											 			   		   			 	  				 			 				     		 	  	 	 		 	  		 	 	 	   				 			 				 	  	   		 		 						 		 		 	  	 	       	  
// A9BA851E539886467D4ECFDDCA93F414
string f0_0(int Ai_0) {
   switch (Ai_0) {
   case 1:
      MqlLock_52855E8D_2_11IiIi1iI1(Gi_96);
      return;
   case 5:
      MqlLock_52855E8D_2_iIiii1II1i(ALERTS);
      return;
   case 15:
      MqlLock_52855E8D_2_11IiI11I11(SoundAlertFile);
      return;
   case 30:
      MqlLock_52855E8D_2_1iiIiII11i();
      return;
   case 60:
      MqlLock_52855E8D_2_iiI1IIiIiI(Gi_96, eMailAlerts, SoundAlertFile);
      return;
   case 240:
      MqlLock_52855E8D_2_IiiII1iiII();
      return;
   case 1440:
      MqlLock_52855E8D_2_iii1i1iI1I(Gi_96, SoundAlerts);
      return;
   case 10080:
      MqlLock_52855E8D_2_IIII11iI11(SoundAlerts, eMailAlerts);
      return;
   case 43200:
      MqlLock_52855E8D_2_1iiIIIi1ii(SoundAlertFile);
      return;
   }
   WindowRedraw();
   return (MqlLock_52855E8D_2_iiiIii111I(Period()));
}
	 	   				  			 	  		 	 		 			 		 	   	   	 	 	    	  	 			  		   	 					 		 		   		   	   				 		 		    	   		     	 	 	 					   	 				 		  			 
// 52D46093050F38C27267BCE42543EF60
void deinit() {
   MqlLock_52855E8D_2_1II11i11i1(UninitializeReason(), Gi_124);
}