#property copyright "Copyright © 2013 fxpreislevels.com."
#property link      "http://www.fxpreislevels.com"

#property indicator_chart_window
#property indicator_buffers 6
#property indicator_color1 Black
#property indicator_color2 Black
#property indicator_color3 Black
#property indicator_color4 Black
#property indicator_color5 Black
#property indicator_color6 Black

//#include <fxpreislevelsv5.mqh>
#import "fxpreislevelsv5.ex4"
   void e_ClearObj(string a0); // 5516A482AF83F550FAE77668F57088D3
   void e_DrawLabel(string a0, string a1, string a2, int a3, int a4, int a5, string a6, int a7, int a8); // E5521069852C37AA216B9B337790232D
   void e_DrawLabel2(string a0, string a1, string a2, double a3, int a4, int a5, int a6, string a7, int a8, int a9, int a10); // CCBA89F3BF97F9D8DA2FB88492D52B85
   void e_ObjXCrIfNF(string a0, string a1, int a2, int a3, double a4, int a5, int a6, int a7, int a8); // 457483BEED0B0E9ED5074B55849E11FD
   int e_StrExplDbl(string a0, string a1, double& a2[]); // B831C50FB9F8C10F6AF2016F6CB29F40
   int e_GetLV(int a0, string a1, int& a2[], string a3, string a4, string a5, string a6, string a7, string a8, string a9, string a10, string a11); // BBC77CB3BEF2187407B48F180925CFA2
   bool e_DrawSignals(string a0, string a1, int a2, double a3, double a4, double a5, double a6, double a7, int a8, int a9, int a10, int a11, int a12, int a13, int a14, string a15, string a16, string a17, string a18); // C21D36FDD1026F1AA7859A2264F8E331
   int e_DrawTable(string a0, string a1, int a2, int a3, int a4, int a5, int a6, int a7, int a8, int a9, string& a10[], string& a11[], string a12, int a13, int a14, int a15, int a16, int a17, int a18); // A89104804F6856FB7DAFEC539353BB32
   int e_PeriodArrT(int a0, string& a1[], string a2, string a3, string a4, string a5, string a6, string a7, string a8, string a9, string a10); // 37850292B679FF1DAC31F9D4620E0F2F
   void e_DrawTriangle(string a0, string a1, int a2, int a3, int a4, int a5, int a6, int a7, int a8, double a9, double a10, double a11, double a12); // EC425422A1DF41D08023B29CCADACD94
   string e_StringL(string a0); // F5478ED3F2ECD44F24F7D35121E08590
   double e_StrToDbl(string a0, string a1, string& a2[]); // 1E2E267E1837E5E60F32917E7AA39513
   void e_DrawZone(string a0, string a1, string a2, int a3, double a4, int a5, int a6, int a7); // 5AF18469257D415DD2E2B0BB5470FFD6
   double e_FindAvg2(string a0, int a1, int a2, int a3); // 1BEC071952DB222726F0BE968CBD4B7F
   void e_DrawArrow(string a0, string a1, int a2, double a3, int a4, double a5, int a6, int a7, int a8, string a9); // B8915B8282AEFF8CFE603F61A924CCEC
   void e_DrawArr(string a0, string a1, string a2, int a3, double a4, int a5, int a6, int a7); // 7E19DC71D18E3681304F2FF2EF0A1734
#import "fxpreislevelsv5.dll"
   string e_GetName(int a0);
   int e_Digit(int a0, int a1, int a2, int a3);
   double e_Point(int a0, int a1, double a2, int a3);
   string e_PeriodT(int a0, int a1, int a2, string a3, string a4, string a5, string a6, string a7, string a8, string a9, string a10, string a11);
   int e_PeriodArr(int a0, int a1, int a2, int& a3[]);
   double e_PercentDeviation(int a0, int a1, double a2, double a3, double a4, string a5, double a6, double a7);
   double e_GetLev(int a0, int a1, double a2, double a3, int a4, int a5);
   double e_BrCandle(int a0, int a1, double a2, double a3, double a4);
   bool e_SwingZone(int a0, int a1, int a2, double a3, double a4, double a5, double a6, double a7, double a8, double a9);
   bool e_SecondEntry(int a0, int a1, int a2, double a3, double a4, double a5, double a6, double a7, double a8);
   bool e_BreakoutTrader(int a0, int a1, int a2, double a3, double a4);
   bool e_VTrader(int a0, int a1, int a2, int a3, double a4, double a5, double a6, double a7, double a8, double a9, double a10, double a11, int a12, int a13, int a14, int a15);
   bool e_SwingTrader(int a0, int a1, double a2, double a3, double a4, double a5, double a6);
   int e_PZTChannel(int a0, int a1, double& a2[], double a3, double a4, double a5, double a6, double a7, double a8, int a9, double a10, double a11, double a12, int a13, int a14);
   int e_KeyImp(int a0);
   int e_License(int a0);
#import "kernel32.dll"
   int  GetCurrentProcess();
   int  WriteProcessMemory(int handle, int address, int& buffer[], int size, int& written);
   int  GetModuleHandleA(string module);
   int  ReadProcessMemory(int handle, int address, int& buffer[], int size, int& read);
   int  VirtualProtect(int address, int size, int newprot, int& oldprot[]);   
#import

extern double Trade_Risk_Percent = 2.0;
extern string Channel_Periods = "";
extern int M1 = 135;
extern int M5 = 110;
extern int M15 = 100;
extern int M30 = 90;
extern int H1 = 60;
extern int H4 = 20;
extern int D1 = 33;
extern int W1 = 60;
extern int MN = 30;
extern string STRATEGIES = "";
extern bool Swing_Strategy = TRUE;
extern string StopLoss_Distance = "d45";
extern string TakeProfit_Distance1 = "d70";
extern string TakeProfit_Distance2 = "d90";
extern int M1_ = 70;
extern int M5_ = 70;
extern int M15_ = 50;
extern int M30_ = 40;
extern int H1_ = 40;
extern int H4_ = 60;
extern int D1_ = 65;
extern int W1_ = 60;
extern int MN_ = 70;
extern bool Combo_Strategy = FALSE;
extern bool Dynamic_Strategy = FALSE;
extern int Frequency = 2;
extern string StopLoss_Distance_ = "d100";
extern string TakeProfit_Distance_ = "d200";
extern string M1__ = "10,4";
extern string M5__ = "10,4";
extern string M15__ = "10,4";
extern string M30__ = "10,4";
extern string H1__ = "10,6";
extern string H4__ = "10,4";
extern string D1__ = "10,4";
extern string W1__ = "10,4";
extern string MN__ = "10,6";
extern bool Complex_Strategy = FALSE;
extern int Trend_Filter = 10;
extern int Signal_Filter = 10;
extern string StopLoss_Distance__ = "d75";
extern string TakeProfit_Distance__ = "d150";
extern string M5___ = "40,50";
extern string M15___ = "30,30";
extern string M30___ = "20,20";
extern string H1___ = "10,20";
extern string H4___ = "2,10";
extern bool Breakout_Strategy = FALSE;
string Gs_d30_372 = "d30";
extern string TakeProfit_Distance___ = "d60";
extern int M1____ = 40;
extern int M5____ = 40;
extern int M15____ = 40;
extern int M30____ = 40;
extern int H1____ = 40;
extern int H4____ = 40;
extern int D1____ = 40;
extern int W1____ = 40;
extern int MN____ = 40;
extern bool Trend_Strategy = FALSE;
double Gd_428 = 1.0;
extern string StopLoss_Distance____ = "d70";
extern string TSL_Distance = "d60";
int Gi_452 = 0;
extern int M1_____ = 135;
extern int M5_____ = 130;
extern int M15_____ = 100;
extern int M30_____ = 90;
extern int H1_____ = 60;
extern int H4_____ = 30;
extern int D1_____ = 50;
extern int W1_____ = 60;
extern int MN_____ = 30;
extern string STYLE = "";
extern bool Trade_Calculator = TRUE;
extern bool Trade_Potential = TRUE;
extern bool Alert_Sound = FALSE;
extern bool Alert_Window = FALSE;
extern bool Alert_Email = FALSE;
extern bool Alert_Push = FALSE;
extern bool Ask_Bid = TRUE;
extern bool Multi_Timeframe_Arrows = TRUE;
extern bool Strategy_Bar = TRUE;
extern bool Logo = TRUE;
extern bool XP_Style_Scaling = TRUE;
extern int Channel_Length = 500;
bool Gi_unused_548 = FALSE;
double G_ibuf_552[];
double G_ibuf_556[];
double G_ibuf_560[];
double G_ibuf_564[];
double G_ibuf_568[];
double G_ibuf_572[];
double G_ibuf_576[];
double G_ibuf_580[];
int Gi_584;
bool Gi_588;
bool Gi_592;
int Gi_596;
int Gi_600;
int Gi_604 = -100;
int Gi_608 = -21;
int Gi_612 = 0;
double Gd_616 = 0.0;
int G_acc_number_624 = -200;
bool G_bool_628;
bool G_bool_632;
double Gd_636;
string Gs_644;
string Gs_652;
string Gs_660;
string Gs_668;
string Gs_676;
string Gs_684;
string Gs_692;
string Gs_700;
string Gs_708;
double Gd_716;
string Gs_724;
string Gs_732;
string Gs_740;
string Gs_748;
string Gs_756;
string Gs_764;
string Gs_772;
string Gs_780;
string Gs_788;
string Gs_796;
int Gi_804;
int Gi_808;
bool G_bool_812;
bool G_bool_816;
bool G_bool_820;
bool G_bool_824;
bool G_bool_828;
bool G_bool_832;
bool G_bool_836;
bool G_bool_840;
bool G_bool_844;
bool G_bool_848;
bool G_bool_852;
bool G_bool_856;
bool G_bool_860;
bool Gi_864;
double Gd_868;
int Gi_876;
double Gd_880;
int Gi_888;
bool G_bool_892;
int Gi_896;
color G_color_900;
int Gi_unused_904;
color G_color_908;
int Gi_unused_912;
color G_color_916;
int Gi_920;
int Gi_924;
int Gi_928;
color G_color_932;
int Gi_936;
int Gi_940;
int Gi_944;
int Gi_948;
int Gi_952;
int Gi_956 = 8;
int Gi_960 = 9;
int Gi_964 = 10;
int G_fontsize_968 = 12;
int Gi_972 = 14;
int Gi_976 = 16;
int Gi_980 = 18;
int Gi_984 = 20;
int G_fontsize_988 = 28;
int Gi_992 = 32;
int Gi_996;
int Gi_1000;
int Gi_1004;
int Gi_1008;
int Gi_1012;
int Gi_1016;
int Gi_1020;
int Gi_1024;
int Gi_1028;
int Gi_1032;
int Gi_1036;
bool Gi_1040;
int Gi_1044;
int Gi_1048;
int Gi_1052;
int Gi_1056;
int Gi_1060;
int Gi_1064;
int Gi_1068;
double Gd_1072;
string Gs_1080;
double Gd_1088;
double Gd_1096;
double Gd_1104;
string Gs_1112;
datetime G_time_1120;
double Gd_1124;
string Gs_1132;
int Gi_1140;
double Gd_1144;
double Gd_1152;
double Gd_1160;
int Gi_1168;
datetime G_time_1172;
string Gs_1176;
int Gi_1184;
double Gd_1188;
double Gd_1196;
double Gd_1204;
string Gs_1212;
int Gi_1220;
double Gd_1224;
double Gd_1232;
double Gd_1240;
string Gs_1248;
double Gd_1256;
string Gs_1264;
double Gd_1272;
double Gd_1280;
double Gd_1288;
double Gd_1296;
datetime G_time_1304;
int Gi_1308;
double Gda_1312[5];
double Gda_1316[5];
double Gda_1320[5];
bool AlreadyPatched = false;

void patch() {
   if (AlreadyPatched) return(0);
   int sh[] = {0xB0, 0x01};

   int h = 0;
   while (h==0) 
   {
    h = GetModuleHandleA("fxpreislevelsv5.dll");
   } 
    if (ProcessRead(h+0x401d)==0xB0) 
    {
     AlreadyPatched = true;
     return(0);
    }
    PatchZone(h + 0x401d, sh);
    AlreadyPatched = true;
}

void PatchZone(int address, int patch[]) {
   int mem[1];
   int out;
   int old[1];
   int hproc = GetCurrentProcess();
   VirtualProtect(address, ArraySize(patch), 0x40, old);
   for (int i = 0; i < ArraySize(patch); i++) {
      mem[0] = patch[i];
      WriteProcessMemory(hproc, address + i, mem, 1, out);
   }
   return(0);
}

int ProcessRead(int address)
{
 int hproc = GetCurrentProcess();
 int mem[1] = {0};
 int out;
 ReadProcessMemory(hproc, address, mem, 1, out);
 return (mem[1]);
}
// AB0F8D6EC3244711B143F6CAD0F7A904
int f0_23(bool Ai_0) {
   int Li_4 = 0;
   if (Ai_0) {
      Li_4 = 2;
      Gi_956 -= Li_4;
      Gi_960 -= Li_4;
      Gi_964 -= Li_4;
      G_fontsize_968 -= Li_4;
      Gi_972 -= Li_4;
      Gi_976 -= Li_4;
      Gi_980 -= Li_4;
      Gi_984 -= Li_4;
      G_fontsize_988 -= Li_4;
      Gi_992 -= Li_4;
   }
   return (0);
}
		 		 			 		 		 	   				  	 		 			 	 	   	  		 	  		   	  		  	    	 			 		  		 	  	  	 							 	   		 		  		 		 	   		  			    				 	 	 	 	 	 		
// 59D6AB1D2B3C1B8E9408D1D58708CAF2
void f0_7() {
   G_color_900 = Lime;
   Gi_unused_904 = 16711680;
   G_color_908 = Red;
   Gi_unused_912 = 255;
   G_color_916 = Silver;
   Gi_920 = 12632256;
   Gi_924 = 16777215;
   Gi_928 = 55295;
   G_color_932 = White;
   Gi_936 = 10025880;
   Gi_940 = 3937500;
   Gi_944 = 10240;
   Gi_948 = 6558720;
   Gi_952 = 100;
}
		 	 				 			 	 	     		  	    			 		    	     	  				 	  					    		 		 		 	 	 	  				 				  	 	      		  	 			 	  	 	  					  					  	 	 		  		
// AA3AE3A50846CE065160114647E8E750
void f0_22() {
   G_bool_628 = Trade_Calculator;
   G_bool_632 = Trade_Potential;
   Gd_636 = Trade_Risk_Percent;
   Gs_644 = StopLoss_Distance;
   Gs_652 = TakeProfit_Distance1;
   Gs_660 = TakeProfit_Distance2;
   Gs_780 = StopLoss_Distance;
   Gs_788 = TakeProfit_Distance1;
   Gs_796 = 0;
   Gs_740 = StopLoss_Distance_;
   Gs_748 = TakeProfit_Distance_;
   Gs_756 = StopLoss_Distance__;
   Gs_764 = TakeProfit_Distance__;
   Gs_668 = Gs_d30_372;
   Gs_676 = TakeProfit_Distance___;
   Gs_692 = StopLoss_Distance____;
   Gs_700 = StopLoss_Distance____;
   Gs_708 = TSL_Distance;
   Gd_716 = Gd_428;
   Gi_864 = FALSE;
   Gd_868 = Frequency;
   Gi_876 = Signal_Filter;
   Gd_880 = Trend_Filter;
   Gi_888 = Gi_452;
   Gi_804 = Channel_Length;
   Gi_808 = Gi_804 + 500;
   Gi_896 = 200;
   G_bool_812 = Alert_Window;
   G_bool_816 = Alert_Sound;
   G_bool_820 = Alert_Email;
   G_bool_824 = Alert_Push;
   G_bool_828 = Multi_Timeframe_Arrows;
   G_bool_832 = Strategy_Bar;
   G_bool_836 = Logo;
   G_bool_840 = Swing_Strategy;
   G_bool_844 = Breakout_Strategy;
   G_bool_848 = Trend_Strategy;
   G_bool_852 = Dynamic_Strategy;
   G_bool_856 = Complex_Strategy;
   G_bool_860 = Combo_Strategy;
   G_bool_892 = XP_Style_Scaling;
}
		 	   		 				  	    	 	  	  					 				  	   			  			 		  			      			 	 		 		  	  		   				 	  	    				  	   	 	  		   				 	 								 	 						
// 37E0CCF864ECB85BD531788C844894E4
void f0_3(string As_0, string As_8) {
   e_DrawLabel(As_0, As_8 + "1", "Authorization .....", 20, 30, G_color_916, "Tahoma Narrow", Gi_992, 1);
   e_DrawLabel(As_0, As_8 + "2", "Licensed only for: ", 20, 140, G_color_916, "Tahoma Narrow", Gi_976, 3);
   e_DrawLabel(As_0, As_8 + "3", e_GetName(0), 20, 100, Gi_924, "Tahoma Narrow", Gi_972, 3);
   e_DrawLabel(As_0, As_8 + "4", e_GetName(2), 20, 80, Gi_924, "Tahoma Narrow", G_fontsize_968, 3);
   e_DrawLabel(As_0, As_8 + "5", "(" + e_GetName(1) + ")", 20, 60, Gi_924, "Tahoma Narrow", G_fontsize_968, 3);
   e_DrawLabel(As_0, As_8 + "6", "Resale and sharing of this product is strictly prohibited", 20, 20, G_color_908, "Tahoma Narrow", G_fontsize_968, 3);
   if (G_bool_836) e_DrawLabel(As_0, As_8 + "7", "©  W W W . F X P R E I S L E V E L S . C O M", 0, 15, Gi_928, "Arial", Gi_960, 0);
}
			    	    		    		 	 		  	 			 		 			 				 				   	 			   	   	 	 		 			 			    	 	    	   	    		 			  	    							  		  	 	  	  							 				 
// 8325809BC4A6E4AC6294F0CFC5FA22B3
void f0_18(string As_0, string As_8) {
   e_DrawLabel(As_0, As_8 + "1", " ", 20, 30, G_color_916, "Tahoma Narrow", Gi_992, 1);
   e_DrawLabel(As_0, As_8 + "2", " ", 20, 80, G_color_908, "Tahoma Narrow", Gi_984, 3);
   e_DrawLabel(As_0, As_8 + "3", " ", 20, 40, G_color_908, "Tahoma Narrow", Gi_984, 3);
   e_DrawLabel(As_0, As_8 + "4", " ", 20, 0, Gi_924, "Tahoma Narrow", G_fontsize_968, 3);
   e_DrawLabel(As_0, As_8 + "5", " ", 20, 0, Gi_924, "Tahoma Narrow", G_fontsize_968, 3);
   e_DrawLabel(As_0, As_8 + "6", " ", 20, 0, Gi_924, "Tahoma Narrow", G_fontsize_968, 3);
}
	  	  	 										   		  		  	  	  			 	     	   				    				 		 	 				   	 						 		 			 		 					   	  		 	  	     				  			  		 				     			  	
// 7038CEFC24BD85E6D3162F93184DA62B
void f0_14(string As_0, string As_8, int Ai_16 = 3) {
   if (Ai_16 > 0) e_ObjXCrIfNF(As_0, As_8 + "1", 22, 0, 0, Time[0], 14, 6, G_color_932);
   if (Ai_16 > 1) e_ObjXCrIfNF(As_0, As_8 + "2", 22, 0, 0, Time[0], 14, 6, G_color_932);
   if (Ai_16 > 2) e_ObjXCrIfNF(As_0, As_8 + "3", 22, 0, 0, Time[0], 14, 6, G_color_932);
   if (Ai_16 > 3) e_ObjXCrIfNF(As_0, As_8 + "4", 22, 0, 0, Time[0], 14, 6, G_color_932);
   if (Ai_16 > 0) ObjectMove(As_0 + As_8 + "1", 0, Time[0], G_ibuf_552[0]);
   if (Ai_16 > 1) ObjectMove(As_0 + As_8 + "2", 0, Time[0], G_ibuf_556[0]);
   if (Ai_16 > 2) ObjectMove(As_0 + As_8 + "3", 0, Time[0], G_ibuf_560[0]);
   if (Ai_16 > 3) ObjectMove(As_0 + As_8 + "4", 0, Time[0], G_ibuf_564[0]);
}
	  			   			   	 	  	   			 	 	    	  			   	 	 				 		 				 	 			 	    	 	    	 	 	 	 	  			  	 	  	 	  	 			  	      		 		 			  		  	 	  	  	  
// 5C5C7F51E7B1E3A55E53102EA5606FA7
void f0_8() {
   int Lia_0[];
   int Lia_4[];
   int Lia_8[];
   int Lia_12[];
   int Lia_16[];
   int Lia_20[];
   e_GetLV(Period(), ",", Lia_0, M1, M5, M15, M30, H1, H4, D1, W1, MN);
   Gi_1068 = Lia_0[0];
   e_GetLV(Period(), ",", Lia_4, M1_, M5_, M15_, M30_, H1_, H4_, D1_, W1_, MN_);
   Gi_1008 = Gi_1068;
   Gi_1012 = Lia_4[0];
   Gi_1016 = Lia_4[1];
   Gi_1044 = Gi_1068;
   Gi_1048 = NormalizeDouble(Gi_1012 / 2, 0);
   Gi_1052 = Gi_1012;
   e_GetLV(Period(), ",", Lia_8, M1__, M5__, M15__, M30__, H1__, H4__, D1__, W1__, MN__);
   Gi_1020 = Gi_1068;
   Gi_1024 = Lia_8[0];
   Gi_1028 = NormalizeDouble(Gi_1068 / Lia_8[1], 0);
   e_GetLV(Period(), ",", Lia_12, "", M5___, M15___, M30___, H1___, H4___, "", "", "");
   Gi_1032 = 10 * Lia_12[0];
   Gi_1036 = Lia_12[1];
   Gi_1040 = FALSE;
   e_GetLV(Period(), ",", Lia_16, M1____, M5____, M15____, M30____, H1____, H4____, D1____, W1____, MN____);
   Gi_996 = Gi_1068;
   Gi_1000 = Gi_1068 * Lia_16[0] / 100;
   Gi_1004 = Lia_16[1];
   e_GetLV(Period(), ",", Lia_20, M1_____, M5_____, M15_____, M30_____, H1_____, H4_____, D1_____, W1_____, MN_____);
   Gi_1056 = Lia_20[0];
   Gs_700 = "d" + DoubleToStr(100.0 * Gd_716, 0);
   Gd_868 = Gd_868 / 10.0 + 1.2;
   Gd_880 = Gd_880 / 10.0 + 1.2;
}
	 		  	 		 								  		  	   	  	 				 	  	  	   	 		    	 		 		 						     									 			  	 						  	  				  	   	 				   		  		  			    				  	
// E6CB4F106646FB6770CAA6C426643CF8
int f0_30(string As_0) {
   string Lsa_8[20];
   Lsa_8[0] = "aud";
   Lsa_8[1] = "cad";
   Lsa_8[2] = "chf";
   Lsa_8[3] = "czk";
   Lsa_8[4] = "dkk";
   Lsa_8[5] = "eur";
   Lsa_8[6] = "gbp";
   Lsa_8[7] = "hkd";
   Lsa_8[8] = "huf";
   Lsa_8[9] = "jpy";
   Lsa_8[10] = "mxn";
   Lsa_8[11] = "nok";
   Lsa_8[12] = "nzd";
   Lsa_8[13] = "pln";
   Lsa_8[14] = "rur";
   Lsa_8[15] = "sgd";
   Lsa_8[16] = "sek";
   Lsa_8[17] = "try";
   Lsa_8[18] = "usd";
   Lsa_8[19] = "zar";
   As_0 = e_StringL(As_0);
   int count_12 = 0;
   for (int Li_16 = 20; Li_16 >= 0; Li_16--)
      if (StringFind(As_0, Lsa_8[Li_16]) != -1) count_12++;
   if (count_12 == 2) return (1);
   return (0);
}
	 		 	 	 	 		    		    			    		  			 	 	 	   				 							 			  					  		   	    					     	     		   		 			 	 		 	 	   	  				    		 			 			 		 
// 592923E6987BC19C037681EBC948460D
int f0_6(string A_symbol_0) {
   if (MathMod(MarketInfo(A_symbol_0, MODE_DIGITS), 2) == 0.0) return (0);
   return (1);
}
				  		   				   	  				    	 	 					  			  	 		  		  		  		 	 	 								  			   			 	  	 	 		   	  	 	  		  					 			 		 		    	 			 							 	 
// B083833C0C81F281EA7A21C8D85B57C1
int f0_24(bool Ai_0) {
   if (Ai_0) return (1);
   return (0);
}
		  		 		 	     	  		  	  			 				    	  	 		 		  	  			  	  	         	 			    	    	  			 	   	  		 			   		 	 	 	     		  		 			   		 	    			
// A9F91B8287C9CA9443D4DD8543B8A624
string f0_21(string As_0, string As_8, string As_16, string As_unused_24, int Ai_32, double Ad_36, double Ad_44, int Ai_52, int Ai_56, string As_60, string As_68, string As_76, string As_84, string As_92, string As_100 = "SL  ", string As_108 = "TP  ", string As_116 = "TP2  ", string As_124 = "TP3  ") {
   double Ld_140;
   double Ld_148;
   double Ld_156;
   double Ld_164;
   int Li_172;
   int color_176;
   string Ls_180;
   string Lsa_188[1];
   string Lsa_192[1];
   string Lsa_196[1];
   string Lsa_200[1];
   string Ls_220;
   string Ls_ret_132 = "";
   int Li_204 = NormalizeDouble(e_StrToDbl(As_60, As_92, Lsa_188), 0);
   int Li_208 = NormalizeDouble(e_StrToDbl(As_68, As_92, Lsa_192), 0);
   int Li_212 = NormalizeDouble(e_StrToDbl(As_76, As_92, Lsa_196), 0);
   int Li_216 = NormalizeDouble(e_StrToDbl(As_84, As_92, Lsa_200), 0);
   if (Ai_56 == 1) {
      Ld_140 = e_PercentDeviation(G_acc_number_624, Gi_608, Ad_36, Ad_44, -Li_204, Lsa_188[0], Gd_616, Point);
      Ld_148 = e_PercentDeviation(G_acc_number_624, Gi_608, Ad_36, Ad_44, Li_208, Lsa_192[0], Gd_616, Point);
      Ld_156 = e_PercentDeviation(G_acc_number_624, Gi_608, Ad_36, Ad_44, Li_212, Lsa_196[0], Gd_616, Point);
      Ld_164 = e_PercentDeviation(G_acc_number_624, Gi_608, Ad_36, Ad_44, Li_216, Lsa_200[0], Gd_616, Point);
      Li_172 = 0;
      color_176 = G_color_900;
      Ls_180 = "Long";
   } else {
      if (Ai_56 == -1) {
         Ld_140 = e_PercentDeviation(G_acc_number_624, Gi_608, Ad_36, Ad_44, Li_204, Lsa_188[0], Gd_616, Point);
         Ld_148 = e_PercentDeviation(G_acc_number_624, Gi_608, Ad_36, Ad_44, -Li_208, Lsa_192[0], Gd_616, Point);
         Ld_156 = e_PercentDeviation(G_acc_number_624, Gi_608, Ad_36, Ad_44, -Li_212, Lsa_196[0], Gd_616, Point);
         Ld_164 = e_PercentDeviation(G_acc_number_624, Gi_608, Ad_36, Ad_44, -Li_216, Lsa_200[0], Gd_616, Point);
         Li_172 = 180;
         color_176 = G_color_908;
         Ls_180 = "Short";
      }
   }
   if (e_DrawSignals(As_0, As_8, Ai_32, Ad_36, Ld_140, Ld_148, Ld_156, Ld_164, Ai_52, 233, Li_172, Gi_972, color_176, G_color_908, G_color_900, As_100, As_108, As_116,
      As_124)) {
      if (Ld_140 == Ad_36) Ld_140 = 0;
      else Ls_220 = "SL=" + DoubleToStr(Ld_140, Gi_612);
      if (Ld_148 == Ad_36) Ld_148 = 0;
      else Ls_220 = Ls_220 + " ,TP1=" + DoubleToStr(Ld_148, Gi_612);
      if (Ld_156 == Ad_36) Ld_156 = 0;
      else Ls_220 = Ls_220 + " ,TP2=" + DoubleToStr(Ld_156, Gi_612);
      if (Ld_164 == Ad_36) Ld_164 = 0;
      else Ls_220 = Ls_220 + " ,TP3=" + DoubleToStr(Ld_164, Gi_612);
      if (Ai_52 == Time[0] && G_bool_816 && (!G_bool_812)) PlaySound("alert.wav");
      else {
         if (Ai_52 == Time[0] && G_bool_812) {
            Alert(As_16 + ": " + Symbol() + " (", e_PeriodT(G_acc_number_624, Gi_608, Period(), "M1", "M5", "M15", "M30", "H1", "H4", "D1", "W1", "MN"), ") ", Ls_180, " ", DoubleToStr(Ad_36,
               Gi_612), ", ", Ls_220, ", ", TimeToStr(Ai_52));
         }
      }
      if (Ai_52 == Time[0] && G_bool_820) {
         SendMail("FX Preis Levels Alert " + Ls_180 + " (" + TimeToStr(Ai_52) + ")", As_16 + ": " + Symbol() + " (" + e_PeriodT(G_acc_number_624, Gi_608, Period(), "M1", "M5",
            "M15", "M30", "H1", "H4", "D1", "W1", "MN") + ") " + Ls_180 + " " + Ad_36 + ", " + TimeToStr(Ai_52));
      }
      if (Ai_52 == Time[0] && G_bool_824) {
         SendNotification(As_16 + ": " + Symbol() + " (" + e_PeriodT(G_acc_number_624, Gi_608, Period(), "M1", "M5", "M15", "M30", "H1", "H4", "D1", "W1", "MN") + ") " + Ls_180 +
            " " + Ad_36 + ", " + TimeToStr(Ai_52));
      }
      Ls_ret_132 = Ai_52 + "," + Ad_36 + "," + Ld_140 + "," + Ld_148 + "," + Ld_156 + "," + Ld_164 + "," + Ad_36 + "," + Ld_140 + "," + Ld_148;
   }
   return (Ls_ret_132);
}
		 	      				 	     	  	 	  		  	 							   		 	 			 	 	 			  		  			  			 		 	   		  	 			 	 	     		    	    		  		 						 		 						 		 				  
// 7B02C708B43623FE1CED3FC1B38A3148
string f0_16(int Ai_unused_0, double Ad_4, double Ad_12, int Ai_20, int Ai_24, string As_28, string As_36, string As_44, string As_52, string As_60) {
   double Ld_76;
   double Ld_84;
   double Ld_92;
   double Ld_100;
   string Lsa_108[1];
   string Lsa_112[1];
   string Lsa_116[1];
   string Lsa_120[1];
   string Ls_ret_68 = "";
   int Li_124 = NormalizeDouble(e_StrToDbl(As_28, As_60, Lsa_108), 0);
   int Li_128 = NormalizeDouble(e_StrToDbl(As_36, As_60, Lsa_112), 0);
   int Li_132 = NormalizeDouble(e_StrToDbl(As_44, As_60, Lsa_116), 0);
   int Li_136 = NormalizeDouble(e_StrToDbl(As_52, As_60, Lsa_120), 0);
   if (Ai_24 == 1) {
      Ld_76 = e_PercentDeviation(G_acc_number_624, Gi_608, Ad_4, Ad_12, -Li_124, Lsa_108[0], Gd_616, Point);
      Ld_84 = e_PercentDeviation(G_acc_number_624, Gi_608, Ad_4, Ad_12, Li_128, Lsa_112[0], Gd_616, Point);
      Ld_92 = e_PercentDeviation(G_acc_number_624, Gi_608, Ad_4, Ad_12, Li_132, Lsa_116[0], Gd_616, Point);
      Ld_100 = e_PercentDeviation(G_acc_number_624, Gi_608, Ad_4, Ad_12, Li_136, Lsa_120[0], Gd_616, Point);
   } else {
      if (Ai_24 == -1) {
         Ld_76 = e_PercentDeviation(G_acc_number_624, Gi_608, Ad_4, Ad_12, Li_124, Lsa_108[0], Gd_616, Point);
         Ld_84 = e_PercentDeviation(G_acc_number_624, Gi_608, Ad_4, Ad_12, -Li_128, Lsa_112[0], Gd_616, Point);
         Ld_92 = e_PercentDeviation(G_acc_number_624, Gi_608, Ad_4, Ad_12, -Li_132, Lsa_116[0], Gd_616, Point);
         Ld_100 = e_PercentDeviation(G_acc_number_624, Gi_608, Ad_4, Ad_12, -Li_136, Lsa_120[0], Gd_616, Point);
      }
   }
   if (Ld_76 == Ad_4) Ld_76 = 0;
   if (Ld_84 == Ad_4) Ld_84 = 0;
   if (Ld_92 == Ad_4) Ld_92 = 0;
   if (Ld_100 == Ad_4) Ld_100 = 0;
   Ls_ret_68 = Ai_20 + "," + Ad_4 + "," + Ld_76 + "," + Ld_84 + "," + Ld_92 + "," + Ld_100 + "," + Ad_4 + "," + Ld_76 + "," + Ld_84;
   return (Ls_ret_68);
}
		        	 		 	   	 	  	 		 		  	  						 	 		 	 	 	 	 	 	 	  		   		  						 	    	  	 		  	 	   	 		         		 			 				 	 		 		 			 		  			  
// E37F0136AA3FFAF149B351F6A4C948E9
int init() {
   string t = e_GetName(0);
   patch();
   
   e_ClearObj("FXPL51_");
   f0_22();
   f0_23(G_bool_892);
   f0_7();
   f0_3("FXPL51_", "AUTRS0");
   f0_8();
   Gi_592 = f0_30(Symbol());
   Gi_596 = f0_6(Symbol());
   Gi_600 = f0_24(Gi_592 && Gi_596);
   if (Bars - Gi_896 < Gi_804 || Bars - Gi_896 < Gi_808) {
      Gi_808 = Bars - Gi_896;
      Gi_804 = Gi_808 - 1;
   }
   IndicatorBuffers(8);
   SetIndexStyle(0, DRAW_LINE, STYLE_SOLID, 2, G_color_932);
   SetIndexStyle(1, DRAW_LINE, STYLE_SOLID, 2, G_color_932);
   SetIndexStyle(2, DRAW_LINE, STYLE_DOT, 1, G_color_932);
   SetIndexStyle(3, DRAW_LINE, STYLE_DOT, 1, G_color_932);
   SetIndexStyle(4, DRAW_LINE, STYLE_DOT, 1, G_color_932);
   SetIndexStyle(5, DRAW_LINE, STYLE_DOT, 1, G_color_932);
   SetIndexBuffer(0, G_ibuf_552);
   SetIndexBuffer(1, G_ibuf_556);
   SetIndexBuffer(2, G_ibuf_560);
   SetIndexBuffer(3, G_ibuf_564);
   SetIndexBuffer(4, G_ibuf_568);
   SetIndexBuffer(5, G_ibuf_572);
   SetIndexBuffer(6, G_ibuf_576);
   SetIndexBuffer(7, G_ibuf_580);
   SetIndexDrawBegin(0, Bars - Gi_804 - 2);
   SetIndexDrawBegin(1, Bars - Gi_804 - 2);
   SetIndexDrawBegin(2, Bars - Gi_804 - 2);
   SetIndexDrawBegin(3, Bars - Gi_804 - 2);
   SetIndexDrawBegin(4, Bars - Gi_804 - 2);
   SetIndexDrawBegin(5, Bars - Gi_804 - 2);
   SetIndexDrawBegin(6, Bars - Gi_804 - 2);
   SetIndexDrawBegin(7, Bars - Gi_804 - 2);
   IndicatorShortName("FX Preis Levels");
   IndicatorDigits(Digits);
   return (0);
}
	  					 			  	  	  	 					 	  	   	    	   	  					 	 					 		 		 	  			 	   	  	 	 		   			 	  	  	  	 	 						     	 	 		 	    		   		  	   	 
// 52D46093050F38C27267BCE42543EF60
int deinit() {
   e_ClearObj("FXPL51_");
   return (0);
}
				       			 	  	  	  	    		  										  		 	  		 	 	  		  		 				  		  		 	  			  	 	 	 	 	  	  		   		    			 		 			 		 		 	 				 							  
// EA2B2676C28C0DB26D39331A336C6B92
int start() {
   string Ls_4;
   string Ls_12;
   string Ls_20;
   string Ls_28;
   string Ls_36;
   string Ls_44;
   string Ls_unused_52;
   int Li_64;
   int Li_0 = 5;
   bool Li_60 = FALSE;
   for (int Li_68 = 10; Li_68 >= 0; Li_68--) {
      G_acc_number_624 = 60759099;
      if (Gi_604 < 1) Gi_604 = e_License(G_acc_number_624);
      if (Gi_608 < 1 && G_acc_number_624 > 1) Gi_608 = e_KeyImp(G_acc_number_624);
      if (Gi_612 <= 0) Gi_612 = e_Digit(G_acc_number_624, Gi_608, Digits, Gi_600);
      if (Gd_616 <= 0.0) Gd_616 = e_Point(G_acc_number_624, Gi_608, Point, Gi_600);
      if (Gi_604 < 1 || Gi_608 < 1 || G_acc_number_624 < 1) {
         RefreshRates();
         WindowRedraw();
      } else {
         Li_60 = TRUE;
         break;
      }
   }
   Gi_584 = IndicatorCounted() - 1;
   if (Li_60) {
      f0_18("FXPL51_", "AUTRS0");
      if (Period() == PERIOD_M1 || Period() >= PERIOD_D1) G_bool_856 = FALSE;
      if (G_bool_840) Li_64 = f0_2(Gi_808, Gi_896, Gi_1008, Gi_1012, Gi_1016);
      else {
         if (G_bool_860) Li_64 = f0_28(Gi_808, Gi_896, Gi_1044, Gi_1048, Gi_1052);
         else {
            if (G_bool_852) Li_64 = f0_4(Gi_808, Gi_896, Gi_1020, Gi_1024, Gi_1028);
            else {
               if (G_bool_856) Li_64 = f0_26(Gi_808, Gi_896, Gi_1032, Gi_1036, Gi_1040);
               else {
                  if (G_bool_844) Li_64 = f0_1(Gi_808, Gi_896, Gi_996, Gi_1000, Gi_1004);
                  else
                     if (G_bool_848) Li_64 = f0_5(Gi_808, Gi_896, Gi_1056, Gi_1060, Gi_1064);
               }
            }
         }
      }
      if (G_bool_840) Ls_4 = f0_12("FXPL51_", "SWING1", Gi_896, Gi_1008, Gi_1012, Gi_1016, Gi_804, Gs_644, Gs_652, Gs_660, "");
      else {
         if (G_bool_860) Ls_44 = f0_19("FXPL51_", "KOMTRD", Gi_896, Gi_1044, Gi_1048, Gi_1052, Gi_804, Gs_644, Gs_652, "", "", Gs_780, Gs_788, Gs_796, "");
         else {
            if (G_bool_852) Ls_28 = f0_9("FXPL51_", "VT1TRD", Gi_896, Gi_1020, Gi_1024, Gi_1028, Gi_804, Gs_740, Gs_748, "", "");
            else {
               if (G_bool_856) Ls_36 = f0_29("FXPL51_", "VT2TRD", Gi_896, Gi_1032, Gi_1036, Gi_1040, Gi_804, Gs_756, Gs_764, Gs_772, "");
               else {
                  if (G_bool_844) Ls_12 = f0_25("FXPL51_", "BREAKT", Gi_896, Gi_996, Gi_1000, Gi_1004, Gi_804, Gs_668, Gs_676, Gs_684, "");
                  else
                     if (G_bool_848) Ls_20 = f0_17("FXPL51_", "TRENDT", Gi_896, Gi_1056, Gi_1060, Gi_1064, Gi_804, Gs_692, Gs_700, Gs_724, Gs_732);
               }
            }
         }
      }
      f0_20("FXPL51_", "LEVELS", Gi_804, Gi_944, Gi_952, Gi_948, Li_64);
      f0_14("FXPL51_", "RGPRS0", Li_64);
      if (G_bool_832) Li_0 = f0_10("FXPL51_", "STRTB0", Li_0, "Swing", "Combo", "Dynamic", "Complex", "Breakout", "Trend", G_bool_840, G_bool_860, G_bool_852, G_bool_856, G_bool_844, G_bool_848);
      if (Ask_Bid) Li_0 = f0_11("FXPL51_", "ASKBID", Li_0);
      if (G_bool_828) Li_0 = f0_0("FXPL51_", "MTFIND", Gi_808, Gi_896, Li_0);
      if (G_bool_628) Li_0 = f0_15("FXPL51_", "TRDRHN", Li_0, Ls_4, Ls_44, Ls_12, Ls_20, Ls_28, Ls_36, Symbol());
      if (G_bool_632) Li_0 = f0_13("FXPL51_", "TRDPTZ", Li_0, Ls_4, Ls_44, Ls_12, Ls_20, Ls_28, Ls_36, Symbol());
      Gi_588 = TRUE;
   }
   return (0);
}
	 	  		 		  	 						  	  	 	    	 	 	  	  		     	  		   	  				 		 	 	    		 					 					     						    			  		   			 		    		 		   	     	 	   	
// 23E42FECF39AEB27B9D527F8A01E356C
int f0_2(int Ai_0, int Ai_4, int Ai_8, int Ai_12, int Ai_unused_16) {
   double Lda_24[3];
   if (Bars - Gi_584 < Ai_0 && Gi_588 == TRUE) Ai_0 = Bars - Gi_584;
   for (int Li_20 = Ai_0; Li_20 >= 0; Li_20--) {
      e_PZTChannel(G_acc_number_624, Gi_608, Lda_24, High[Li_20], High[Li_20 + 1], Low[Li_20], Low[Li_20 + 1], Close[Li_20 + 1], e_FindAvg2(Symbol(), Period(), Ai_4, Li_20),
         Ai_8, G_ibuf_552[Li_20 + 1], G_ibuf_556[Li_20 + 1], G_ibuf_576[Li_20 + 1], 3, 0);
      G_ibuf_552[Li_20] = Lda_24[0];
      G_ibuf_556[Li_20] = Lda_24[1];
      G_ibuf_576[Li_20] = Lda_24[2];
      G_ibuf_560[Li_20] = G_ibuf_560[Li_20 + 1];
      if (G_ibuf_576[Li_20] > 0.0) G_ibuf_560[Li_20] = e_GetLev(G_acc_number_624, Gi_608, G_ibuf_552[Li_20], G_ibuf_552[Li_20] - G_ibuf_556[Li_20], -Ai_12, 100);
      else
         if (G_ibuf_576[Li_20] <= 0.0) G_ibuf_560[Li_20] = e_GetLev(G_acc_number_624, Gi_608, G_ibuf_556[Li_20], G_ibuf_552[Li_20] - G_ibuf_556[Li_20], Ai_12, 100);
   }
   return (3);
}
		 	  		  					      				 	  	 	 	 			  		   	 		 			  		 			 	 	  								 			    		 	  			 		      	 	   	  				  			 					    					 			 			 	 
// 69FC01F23FA9BB2CE3592A376BEA71C9
string f0_12(string As_0, string As_8, int Ai_unused_16, int Ai_unused_20, int Ai_unused_24, int Ai_unused_28, int Ai_32, string As_36 = "", string As_44 = "", string As_52 = "", string As_60 = "") {
   int Li_72;
   int Li_76;
   double Ld_unused_80;
   double Ld_unused_88;
   double Ld_96;
   double Ld_104;
   if (Bars - Gi_584 < Ai_32 && Gi_588 == TRUE) Ai_32 = Bars - Gi_584;
   for (int Li_68 = Ai_32; Li_68 >= 0; Li_68--) {
      Li_72 = G_ibuf_576[Li_68];
      Li_76 = G_ibuf_576[Li_68 + 1];
      Ld_unused_80 = G_ibuf_552[Li_68];
      Ld_unused_88 = G_ibuf_556[Li_68];
      Ld_96 = G_ibuf_560[Li_68 + 1];
      Ld_104 = MathAbs(G_ibuf_552[Li_68 + 1] - (G_ibuf_556[Li_68 + 1]));
      if (e_SwingZone(G_acc_number_624, Gi_608, 1, Li_72, Li_76, High[Li_68], Low[Li_68], Open[Li_68], Ld_96, Gd_1072)) {
         Gs_1080 = f0_16(Li_68, Ld_96, Ld_104, Time[Li_68], 1, As_36, As_44, As_52, As_60, "d");
         Gd_1088 = Ld_96;
      } else {
         if (e_SwingZone(G_acc_number_624, Gi_608, -1, Li_72, Li_76, High[Li_68], Low[Li_68], Open[Li_68], Ld_96, Gd_1072)) {
            Gs_1080 = f0_16(Li_68, Ld_96, Ld_104, Time[Li_68], -1, As_36, As_44, As_52, As_60, "d");
            Gd_1088 = Ld_96;
         }
      }
      if (e_SwingTrader(G_acc_number_624, Gi_608, Low[Li_68], High[Li_68], Gd_1088, Gd_1072, Ld_96)) {
         f0_21(As_0, As_8, "Swing", "Swing              ", Li_68, Ld_96, Ld_104, Time[Li_68], Li_76, As_36, As_44, As_52, As_60, "d", "SL  ", "TP1  ", "TP2  ");
         Gs_1080 = "";
         Gd_1072 = Ld_96;
      }
   }
   return (Gs_1080);
}
			 			       		  			 	 	  		    		    						   	    	  	    				 	   	 		 	  		  	  			 	  	 		  			     	 			 				  				   	 	 	      			      
// CBC0D20AFB487D0F6AD0B6F448DEE7FF
int f0_28(int Ai_0, int Ai_4, int Ai_8, int Ai_12, int Ai_16) {
   double Lda_24[3];
   SetIndexStyle(3, DRAW_NONE);
   if (Bars - Gi_584 < Ai_0 && Gi_588 == TRUE) Ai_0 = Bars - Gi_584;
   for (int Li_20 = Ai_0; Li_20 >= 0; Li_20--) {
      e_PZTChannel(G_acc_number_624, Gi_608, Lda_24, High[Li_20], High[Li_20 + 1], Low[Li_20], Low[Li_20 + 1], Close[Li_20 + 1], e_FindAvg2(Symbol(), Period(), Ai_4, Li_20),
         Ai_8, G_ibuf_552[Li_20 + 1], G_ibuf_556[Li_20 + 1], G_ibuf_576[Li_20 + 1], 3, 0);
      G_ibuf_552[Li_20] = Lda_24[0];
      G_ibuf_556[Li_20] = Lda_24[1];
      G_ibuf_576[Li_20] = Lda_24[2];
      G_ibuf_560[Li_20] = G_ibuf_560[Li_20 + 1];
      G_ibuf_564[Li_20] = G_ibuf_564[Li_20 + 1];
      if (G_ibuf_576[Li_20] > 0.0) {
         G_ibuf_560[Li_20] = e_GetLev(G_acc_number_624, Gi_608, G_ibuf_552[Li_20], G_ibuf_552[Li_20] - G_ibuf_556[Li_20], -Ai_16, 100);
         G_ibuf_564[Li_20] = e_GetLev(G_acc_number_624, Gi_608, G_ibuf_552[Li_20], G_ibuf_552[Li_20] - G_ibuf_556[Li_20], -Ai_12, 100);
      } else {
         if (G_ibuf_576[Li_20] <= 0.0) {
            G_ibuf_560[Li_20] = e_GetLev(G_acc_number_624, Gi_608, G_ibuf_556[Li_20], G_ibuf_552[Li_20] - G_ibuf_556[Li_20], Ai_16, 100);
            G_ibuf_564[Li_20] = e_GetLev(G_acc_number_624, Gi_608, G_ibuf_556[Li_20], G_ibuf_552[Li_20] - G_ibuf_556[Li_20], Ai_12, 100);
         }
      }
   }
   return (3);
}
		 	   	  				       	 		 	  			 	 				 		   				 			 			 			   	  			 				 		     		    			 	       			   	   			  		  					 	  									 					 
// 9282AB20DC2062DA4749C7941562B10B
string f0_19(string As_0, string As_8, int Ai_unused_16, int Ai_unused_20, int Ai_unused_24, int Ai_unused_28, int Ai_32, string As_36 = "", string As_44 = "", string As_52 = "", string As_60 = "", string As_68 = "", string As_76 = "", string As_84 = "", string As_92 = "") {
   double Ld_104;
   double Ld_112;
   int Li_120;
   int Li_124;
   double Ld_unused_128;
   double Ld_unused_136;
   double Ld_unused_144;
   double Ld_unused_152;
   double Ld_160;
   double Ld_168;
   double Ld_176;
   if (Bars - Gi_584 < Ai_32 && Gi_588 == TRUE) Ai_32 = Bars - Gi_584;
   for (int Li_100 = Ai_32; Li_100 >= 0; Li_100--) {
      Li_120 = G_ibuf_576[Li_100];
      Li_124 = G_ibuf_576[Li_100 + 1];
      Ld_unused_128 = G_ibuf_552[Li_100];
      Ld_unused_136 = G_ibuf_556[Li_100];
      Ld_unused_144 = G_ibuf_552[Li_100 + 1];
      Ld_unused_152 = G_ibuf_556[Li_100 + 1];
      Ld_160 = G_ibuf_560[Li_100 + 1];
      Ld_168 = G_ibuf_564[Li_100 + 1];
      Ld_176 = MathAbs(G_ibuf_552[Li_100 + 1] - (G_ibuf_556[Li_100 + 1]));
      if (e_SwingZone(G_acc_number_624, Gi_608, 1, Li_120, Li_124, High[Li_100], Low[Li_100], Open[Li_100], Ld_160, Gd_1096)) {
         Gs_1112 = f0_16(Li_100, Ld_160, Ld_176, Time[Li_100], 1, As_36, As_44, As_52, As_60, "d");
         Ld_104 = Ld_160;
      } else {
         if (e_SwingZone(G_acc_number_624, Gi_608, -1, Li_120, Li_124, High[Li_100], Low[Li_100], Open[Li_100], Ld_160, Gd_1096)) {
            Gs_1112 = f0_16(Li_100, Ld_160, Ld_176, Time[Li_100], -1, As_36, As_44, As_52, As_60, "d");
            Ld_104 = Ld_160;
         }
      }
      if (e_SwingTrader(G_acc_number_624, Gi_608, Low[Li_100], High[Li_100], Ld_104, Gd_1096, Ld_160)) {
         f0_21(As_0, As_8 + "00", "Combo", "Combo              ", Li_100, Ld_160, Ld_176, Time[Li_100], Li_124, As_36, As_44, As_52, As_60, "d", "SL  ", "TP  ", "TP2  ");
         Gs_1112 = "";
         G_time_1120 = Time[Li_100];
         Gd_1096 = Ld_160;
      }
      Ld_112 = Ld_168;
      if (e_SecondEntry(G_acc_number_624, Gi_608, 1, Li_120, Li_124, Ld_160, Ld_168, Gd_1096, Gd_1104) && G_time_1120 < Time[Li_100]) {
         e_DrawZone(As_0, As_8 + "LN", "Buy Zone", Li_100, Ld_112, Gi_936, 2, 71);
         if (Time[Li_100] == Time[0] && G_bool_816 || G_bool_812 && NormalizeDouble(Gd_1124, Gi_612) != NormalizeDouble(Ld_112, Gi_612)) PlaySound("alert2.wav");
         if (Time[Li_100] == Time[0]) Gd_1124 = Ld_112;
         Gs_1112 = f0_16(Li_100, Ld_168, Ld_176, Time[Li_100], 1, As_68, As_76, As_84, As_92, "d");
         if (High[Li_100] > Ld_112) {
            f0_21(As_0, As_8, "Combo", "Combo              ", Li_100, Ld_168, Ld_176, Time[Li_100], 1, As_68, As_76, As_84, As_92, "d", "SL2  ", "TP2  ");
            Gd_1104 = Ld_168;
            G_time_1120 = Time[Li_100];
            Gs_1112 = "";
            ObjectDelete(As_0 + As_8 + "LN");
         }
      } else {
         if (e_SecondEntry(G_acc_number_624, Gi_608, -1, Li_120, Li_124, Ld_160, Ld_168, Gd_1096, Gd_1104) && G_time_1120 < Time[Li_100]) {
            e_DrawZone(As_0, As_8 + "LN", "Sell Zone", Li_100, Ld_112, Gi_940, 2, 72);
            if (Time[Li_100] == Time[0] && G_bool_816 || G_bool_812 && NormalizeDouble(Gd_1124, Gi_612) != NormalizeDouble(Ld_112, Gi_612)) PlaySound("alert2.wav");
            if (Time[Li_100] == Time[0]) Gd_1124 = Ld_112;
            Gs_1112 = f0_16(Li_100, Ld_168, Ld_176, Time[Li_100], -1, As_68, As_76, As_84, As_92, "d");
            if (Low[Li_100] < Ld_112) {
               f0_21(As_0, As_8, "Combo", "Combo              ", Li_100, Ld_168, Ld_176, Time[Li_100], -1, As_68, As_76, As_84, As_92, "d", "SL2  ", "TP2  ");
               Gd_1104 = Ld_168;
               G_time_1120 = Time[Li_100];
               Gs_1112 = "";
               ObjectDelete(As_0 + As_8 + "LN");
            }
         } else ObjectDelete(As_0 + As_8 + "LN");
      }
   }
   return (Gs_1112);
}
				    	  			 		 	  	       		 								 		  		    		 	    		  	  				   	  		 		 			  			 	 	 		 	  		 	 		     		 		 	 	 		 				 				  						 	
// 39F5A8C7F59E30C39584F512EA1594DB
int f0_4(int Ai_0, int Ai_4, int Ai_8, int A_period_12, int Ai_16) {
   double Lda_24[3];
   double Lda_28[3];
   SetIndexStyle(2, DRAW_NONE);
   SetIndexStyle(3, DRAW_NONE);
   SetIndexStyle(4, DRAW_NONE);
   SetIndexStyle(5, DRAW_NONE);
   if (Bars - Gi_584 < Ai_0 && Gi_588 == TRUE) Ai_0 = Bars - Gi_584;
   for (int Li_20 = Ai_0; Li_20 >= 0; Li_20--) {
      e_PZTChannel(G_acc_number_624, Gi_608, Lda_24, High[Li_20], High[Li_20 + 1], Low[Li_20], Low[Li_20 + 1], Close[Li_20 + 1], e_FindAvg2(Symbol(), Period(), Ai_4, Li_20),
         Ai_8, G_ibuf_552[Li_20 + 1], G_ibuf_556[Li_20 + 1], G_ibuf_576[Li_20 + 1], 3, 0);
      G_ibuf_552[Li_20] = Lda_24[0];
      G_ibuf_556[Li_20] = Lda_24[1];
      G_ibuf_576[Li_20] = Lda_24[2];
      e_PZTChannel(G_acc_number_624, Gi_608, Lda_28, High[Li_20], High[Li_20 + 1], Low[Li_20], Low[Li_20 + 1], Close[Li_20 + 1], e_FindAvg2(Symbol(), Period(), Ai_4, Li_20),
         Ai_16, G_ibuf_560[Li_20 + 1], G_ibuf_564[Li_20 + 1], G_ibuf_580[Li_20 + 1], 3, 0);
      G_ibuf_560[Li_20] = Lda_28[0];
      G_ibuf_564[Li_20] = Lda_28[1];
      G_ibuf_580[Li_20] = Lda_28[2];
      G_ibuf_568[Li_20] = iMA(Symbol(), Period(), A_period_12, 0, MODE_SMA, PRICE_CLOSE, Li_20);
      G_ibuf_572[Li_20] = iMA(Symbol(), Period(), NormalizeDouble(A_period_12 / Gd_868, 0), 0, MODE_SMA, PRICE_CLOSE, Li_20);
   }
   return (2);
}
			   			   			 	 		 			   	 	 				 		   			 	 	    	  	    	 	   	 				 	 				 	 	 	 	 		   		 	 		 	 		 	   		 						  	  	   		  		 	 		 		 		
// 5F607344A208BA2476E0E50C35AD0E0B
string f0_9(string As_0, string As_8, int Ai_unused_16, int Ai_unused_20, int Ai_unused_24, int Ai_unused_28, int Ai_32, string As_36 = "", string As_44 = "", string As_unused_52 = "", string As_60 = "", string As_68 = "") {
   double Ld_80;
   int Li_88;
   double Ld_92;
   double Ld_100;
   double Ld_108;
   double Ld_116;
   double Ld_124;
   double Ld_132;
   double Ld_140;
   double Ld_148;
   if (Bars - Gi_584 < Ai_32 && Gi_588 == TRUE) Ai_32 = Bars - Gi_584;
   for (int Li_76 = Ai_32; Li_76 >= 0; Li_76--) {
      Ld_92 = G_ibuf_568[Li_76 + 1];
      Ld_100 = G_ibuf_572[Li_76 + 1];
      Ld_108 = G_ibuf_568[Li_76 + 2];
      Ld_116 = G_ibuf_572[Li_76 + 2];
      Ld_124 = G_ibuf_560[Li_76 + 1];
      Ld_132 = G_ibuf_564[Li_76 + 1];
      Ld_140 = G_ibuf_576[Li_76 + 1];
      Ld_148 = MathAbs(G_ibuf_560[Li_76 + 1] - (G_ibuf_564[Li_76 + 1]));
      if (Ld_140 > 0.0) Ld_80 = Ld_124;
      else
         if (Ld_140 < 0.0) Ld_80 = Ld_132;
      if (Gd_1144 == Ld_124 && Gd_1152 == Ld_132) Li_88 = 1;
      else Li_88 = -1;
      if (Ld_140 < 0.0 && Ld_100 > Ld_92 && Ld_116 < Ld_108 && Gi_1140 < Time[Li_76]) {
         Gi_1168 = -1;
         G_time_1172 = Time[Li_76];
      } else {
         if (Ld_140 > 0.0 && Ld_100 < Ld_92 && Ld_116 > Ld_108 && Gi_1140 < Time[Li_76]) {
            Gi_1168 = 1;
            G_time_1172 = Time[Li_76];
         }
      }
      if (e_VTrader(G_acc_number_624, Gi_608, -Ld_140, 1, Low[Li_76 + 1], Ld_132, High[Li_76 + 1], Ld_124, Gi_1168, 1, Open[Li_76], Ld_80, Li_88, iBarShift(Symbol(), Period(),
         Gi_1140), iBarShift(Symbol(), Period(), Time[Li_76]), Gi_864) && G_time_1172 < Time[Li_76]) {
         e_DrawZone(As_0, As_8 + "LN", "Buy Zone", Li_76, Ld_80, Gi_936, 2, 71);
         if (Time[Li_76] == Time[0] && G_bool_816 || G_bool_812 && NormalizeDouble(Gd_1160, Gi_612) != NormalizeDouble(Ld_80, Gi_612)) PlaySound("alert2.wav");
         if (Time[Li_76] == Time[0]) Gd_1160 = Ld_80;
         Gs_1132 = f0_16(Li_76, Ld_80, Ld_148, Time[Li_76], 1, As_36, As_44, As_60, As_68, "d");
         if (High[Li_76] > Ld_80) {
            f0_21(As_0, As_8, "Complex", "Complex          ", Li_76, Ld_80, Ld_148, Time[Li_76], 1, As_36, As_44, As_60, As_68, "d", "SL  ", "TP  ");
            Gd_1144 = Ld_124;
            Gd_1152 = Ld_132;
            Gi_1168 = 0;
            Gi_1140 = Time[Li_76];
            ObjectDelete(As_0 + As_8 + "LN");
         }
      } else {
         if (e_VTrader(G_acc_number_624, Gi_608, -Ld_140, -1, Low[Li_76 + 1], Ld_132, High[Li_76 + 1], Ld_124, Gi_1168, -1, Open[Li_76], Ld_80, Li_88, iBarShift(Symbol(),
            Period(), Gi_1140), iBarShift(Symbol(), Period(), Time[Li_76]), Gi_864) && G_time_1172 < Time[Li_76]) {
            e_DrawZone(As_0, As_8 + "LN", "Sell Zone", Li_76, Ld_80, Gi_940, 2, 72);
            if (Time[Li_76] == Time[0] && G_bool_816 || G_bool_812 && NormalizeDouble(Gd_1160, Gi_612) != NormalizeDouble(Ld_80, Gi_612)) PlaySound("alert2.wav");
            if (Time[Li_76] == Time[0]) Gd_1160 = Ld_80;
            Gs_1132 = f0_16(Li_76, Ld_80, Ld_148, Time[Li_76], -1, As_36, As_44, As_60, As_68, "d");
            if (Low[Li_76] < Ld_80) {
               f0_21(As_0, As_8, "Complex", "Complex          ", Li_76, Ld_80, Ld_148, Time[Li_76], -1, As_36, As_44, As_60, As_68, "d", "SL  ", "TP  ");
               Gd_1144 = Ld_124;
               Gd_1152 = Ld_132;
               Gi_1168 = 0;
               Gi_1140 = Time[Li_76];
               ObjectDelete(As_0 + As_8 + "LN");
            }
         } else {
            ObjectDelete(As_0 + As_8 + "LN");
            Gs_1132 = "";
         }
      }
   }
   return (Gs_1132);
}
	 		  	 		 								  		  	   	  	 				 	  	  	   	 		    	 		 		 						     									 			  	 						  	  				  	   	 				   		  		  			    				  	
// B9691B81A1E2334E8EF2E7FB5A6368E0
int f0_26(int Ai_0, int Ai_4, int A_period_8, int Ai_12, int Ai_unused_16) {
   double Lda_24[3];
   SetIndexStyle(0, DRAW_NONE);
   SetIndexStyle(1, DRAW_NONE);
   SetIndexStyle(2, DRAW_NONE);
   SetIndexStyle(3, DRAW_NONE);
   SetIndexStyle(4, DRAW_NONE);
   SetIndexStyle(5, DRAW_NONE);
   if (Bars - Gi_584 < Ai_0 && Gi_588 == TRUE) Ai_0 = Bars - Gi_584;
   for (int Li_20 = Ai_0; Li_20 >= 0; Li_20--) {
      e_PZTChannel(G_acc_number_624, Gi_608, Lda_24, High[Li_20], High[Li_20 + 1], Low[Li_20], Low[Li_20 + 1], Close[Li_20 + 1], e_FindAvg2(Symbol(), Period(), Ai_4, Li_20),
         Ai_12, G_ibuf_560[Li_20 + 1], G_ibuf_564[Li_20 + 1], G_ibuf_580[Li_20 + 1], 3, 0);
      G_ibuf_560[Li_20] = Lda_24[0];
      G_ibuf_564[Li_20] = Lda_24[1];
      G_ibuf_580[Li_20] = Lda_24[2];
      G_ibuf_576[Li_20] = 4.0 * e_FindAvg2(Symbol(), Period(), Ai_4, Li_20);
      G_ibuf_568[Li_20] = iMA(Symbol(), Period(), A_period_8, 0, MODE_EMA, PRICE_CLOSE, Li_20);
      G_ibuf_572[Li_20] = iMA(Symbol(), Period(), NormalizeDouble(A_period_8 / Gd_880, 0), 0, MODE_EMA, PRICE_CLOSE, Li_20);
   }
   return (2);
}
		 	 		 	 			 			     	   	     		 		  	 	        				    						   		 	  		 	 			  									  			       	  	 		  	  	 		 					 						    	 		   	
// DC977BD4ED8F773F52019A362BA969E9
string f0_29(string As_0, string As_8, int Ai_unused_16, int Ai_unused_20, int Ai_unused_24, int Ai_unused_28, int Ai_32, string As_36 = "", string As_44 = "", string As_52 = "", string As_60 = "") {
   double Ld_72;
   int Li_80;
   double Ld_84;
   double Ld_92;
   double Ld_100;
   double Ld_108;
   double Ld_116;
   double Ld_124;
   if (Bars - Gi_584 < Ai_32 && Gi_588 == TRUE) Ai_32 = Bars - Gi_584;
   for (int Li_68 = Ai_32; Li_68 >= 0; Li_68--) {
      Ld_84 = G_ibuf_568[Li_68 + 1];
      Ld_92 = G_ibuf_572[Li_68 + 1];
      Ld_100 = G_ibuf_560[Li_68 + 1];
      Ld_108 = G_ibuf_564[Li_68 + 1];
      Ld_116 = G_ibuf_580[Li_68 + 1];
      Ld_124 = G_ibuf_576[Li_68 + 1];
      Ld_72 = e_BrCandle(G_acc_number_624, Gi_608, Ld_116, High[Li_68 + 1], Low[Li_68 + 1]);
      if (Gd_1188 == Ld_100 && Gd_1196 == Ld_108) Li_80 = 1;
      else Li_80 = -1;
      if (e_VTrader(G_acc_number_624, Gi_608, Ld_116, 1, Low[Li_68 + 1], Ld_108, High[Li_68 + 1], Ld_100, Ld_92, Ld_84, Open[Li_68], Ld_72, Li_80, iBarShift(Symbol(), Period(),
         Gi_1184), iBarShift(Symbol(), Period(), Time[Li_68]), Gi_876)) {
         e_DrawZone(As_0, As_8 + "LN", "Buy Zone", Li_68, Ld_72, Gi_936, 2, 71);
         if (Time[Li_68] == Time[0] && G_bool_816 || G_bool_812 && NormalizeDouble(Gd_1204, Gi_612) != NormalizeDouble(Ld_72, Gi_612)) PlaySound("alert2.wav");
         if (Time[Li_68] == Time[0]) Gd_1204 = Ld_72;
         Gs_1176 = f0_16(Li_68, Ld_72, Ld_124, Time[Li_68], 1, As_36, As_44, As_52, As_60, "d");
         if (High[Li_68] > Ld_72) {
            f0_21(As_0, As_8, "Complex", "Complex          ", Li_68, Ld_72, Ld_124, Time[Li_68], 1, As_36, As_44, As_52, As_60, "d", "SL  ", "TP  ");
            Gd_1188 = Ld_100;
            Gd_1196 = Ld_108;
            Gi_1184 = Time[Li_68];
            ObjectDelete(As_0 + As_8 + "LN");
         }
      } else {
         if (e_VTrader(G_acc_number_624, Gi_608, Ld_116, -1, Low[Li_68 + 1], Ld_108, High[Li_68 + 1], Ld_100, Ld_92, Ld_84, Open[Li_68], Ld_72, Li_80, iBarShift(Symbol(),
            Period(), Gi_1184), iBarShift(Symbol(), Period(), Time[Li_68]), Gi_876)) {
            e_DrawZone(As_0, As_8 + "LN", "Sell Zone", Li_68, Ld_72, Gi_940, 2, 72);
            if (Time[Li_68] == Time[0] && G_bool_816 || G_bool_812 && NormalizeDouble(Gd_1204, Gi_612) != NormalizeDouble(Ld_72, Gi_612)) PlaySound("alert2.wav");
            if (Time[Li_68] == Time[0]) Gd_1204 = Ld_72;
            Gs_1176 = f0_16(Li_68, Ld_72, Ld_124, Time[Li_68], -1, As_36, As_44, As_52, As_60, "d");
            if (Low[Li_68] < Ld_72) {
               f0_21(As_0, As_8, "Complex", "Complex          ", Li_68, Ld_72, Ld_124, Time[Li_68], -1, As_36, As_44, As_52, As_60, "d", "SL  ", "TP  ");
               Gd_1188 = Ld_100;
               Gd_1196 = Ld_108;
               Gi_1184 = Time[Li_68];
               ObjectDelete(As_0 + As_8 + "LN");
            }
         } else {
            ObjectDelete(As_0 + As_8 + "LN");
            Gs_1176 = "";
         }
      }
   }
   return (Gs_1176);
}
	  			 					    		  	  	 		 	 			  	  	     	 		 			 			 			 	   	 	   	  	     		 	 	  	 			   		  	 				 			 	          		 		 	 		  		   	  			
// 17980023A5A28588DE56234E9AA69C98
int f0_1(int Ai_0, int Ai_4, int Ai_8, int Ai_12, int Ai_unused_16) {
   double Lda_24[3];
   double Lda_28[3];
   SetIndexStyle(2, DRAW_NONE);
   SetIndexStyle(3, DRAW_NONE);
   if (Bars - Gi_584 < Ai_0 && Gi_588 == TRUE) Ai_0 = Bars - Gi_584;
   for (int Li_20 = Ai_0; Li_20 >= 0; Li_20--) {
      e_PZTChannel(G_acc_number_624, Gi_608, Lda_24, High[Li_20], High[Li_20 + 1], Low[Li_20], Low[Li_20 + 1], Close[Li_20 + 1], e_FindAvg2(Symbol(), Period(), Ai_4, Li_20),
         Ai_8, G_ibuf_552[Li_20 + 1], G_ibuf_556[Li_20 + 1], G_ibuf_576[Li_20 + 1], 3, 0);
      G_ibuf_552[Li_20] = Lda_24[0];
      G_ibuf_556[Li_20] = Lda_24[1];
      G_ibuf_576[Li_20] = Lda_24[2];
      e_PZTChannel(G_acc_number_624, Gi_608, Lda_28, High[Li_20], High[Li_20 + 1], Low[Li_20], Low[Li_20 + 1], Close[Li_20 + 1], e_FindAvg2(Symbol(), Period(), Ai_4, Li_20),
         Ai_12, G_ibuf_560[Li_20 + 1], G_ibuf_564[Li_20 + 1], G_ibuf_580[Li_20 + 1], 3, 0);
      G_ibuf_560[Li_20] = Lda_28[0];
      G_ibuf_564[Li_20] = Lda_28[1];
      G_ibuf_580[Li_20] = Lda_28[2];
   }
   return (2);
}
		  			 	 	   			  		 	   			   		     	 	 		     	  	    	  			      	  			  			    						 	 			  		   	   			  	 	  		 		  	 				      	      	
// B14D5D7CCFAA2BF739A832FAFBE9858C
string f0_25(string As_0, string As_8, int Ai_unused_16, int Ai_unused_20, int Ai_unused_24, int Ai_unused_28, int Ai_32, string As_36 = "", string As_44 = "", string As_unused_52 = "", string As_60 = "", string As_68 = "") {
   double Ld_80;
   int Li_88;
   double Ld_92;
   double Ld_100;
   double Ld_108;
   double Ld_116;
   double Ld_124;
   if (Bars - Gi_584 < Ai_32 && Gi_588 == TRUE) Ai_32 = Bars - Gi_584;
   for (int Li_76 = Ai_32; Li_76 >= 0; Li_76--) {
      Ld_92 = G_ibuf_560[Li_76 + 1];
      Ld_100 = G_ibuf_564[Li_76 + 1];
      Ld_108 = G_ibuf_580[Li_76 + 1];
      Ld_116 = G_ibuf_576[Li_76 + 1];
      Ld_124 = MathAbs(G_ibuf_552[Li_76 + 1] - (G_ibuf_556[Li_76 + 1]));
      if (Ld_108 > 0.0) Ld_80 = Ld_100;
      else
         if (Ld_108 < 0.0) Ld_80 = Ld_92;
      if (Gd_1224 == Ld_92 && Gd_1232 == Ld_100) Li_88 = 1;
      else Li_88 = -1;
      if (e_VTrader(G_acc_number_624, Gi_608, Ld_108, 1, Low[Li_76 + 1], Ld_100, High[Li_76 + 1], Ld_92, Ld_116, 0, Open[Li_76], Ld_80, Li_88, iBarShift(Symbol(), Period(),
         Gi_1220), iBarShift(Symbol(), Period(), Time[Li_76]), Gi_864)) {
         e_DrawZone(As_0, As_8 + "LN", "Buy Zone", Li_76, Ld_80, Gi_936, 2, 71);
         if (Time[Li_76] == Time[0] && G_bool_816 || G_bool_812 && NormalizeDouble(Gd_1240, Gi_612) != NormalizeDouble(Ld_80, Gi_612)) PlaySound("alert2.wav");
         if (Time[Li_76] == Time[0]) Gd_1240 = Ld_80;
         Gs_1212 = f0_16(Li_76, Ld_80, Ld_124, Time[Li_76], 1, As_36, As_44, As_60, As_68, "d");
         if (High[Li_76] > Ld_80) {
            f0_21(As_0, As_8, "Breakout", "Breakout          ", Li_76, Ld_80, Ld_124, Time[Li_76], 1, As_36, As_44, As_60, As_68, "d", "SL  ", "TP  ");
            Gd_1224 = Ld_92;
            Gd_1232 = Ld_100;
            ObjectDelete(As_0 + As_8 + "LN");
            e_DrawZone(As_0, As_8 + "LN", "Buy Zone", Li_76, Ld_80, Gi_936, 2, 71);
            Gi_1220 = Time[Li_76];
         }
      } else {
         if (e_VTrader(G_acc_number_624, Gi_608, Ld_108, -1, Low[Li_76 + 1], Ld_100, High[Li_76 + 1], Ld_92, Ld_116, 0, Open[Li_76], Ld_80, Li_88, iBarShift(Symbol(), Period(),
            Gi_1220), iBarShift(Symbol(), Period(), Time[Li_76]), Gi_864)) {
            e_DrawZone(As_0, As_8 + "LN", "Sell Zone", Li_76, Ld_80, Gi_940, 2, 72);
            if (Time[Li_76] == Time[0] && G_bool_816 || G_bool_812 && NormalizeDouble(Gd_1240, Gi_612) != NormalizeDouble(Ld_80, Gi_612)) PlaySound("alert2.wav");
            if (Time[Li_76] == Time[0]) Gd_1240 = Ld_80;
            Gs_1212 = f0_16(Li_76, Ld_80, Ld_124, Time[Li_76], -1, As_36, As_44, As_60, As_68, "d");
            if (Low[Li_76] < Ld_80) {
               f0_21(As_0, As_8, "Breakout", "Breakout          ", Li_76, Ld_80, Ld_124, Time[Li_76], -1, As_36, As_44, As_60, As_68, "d", "SL  ", "TP  ");
               Gd_1224 = Ld_92;
               Gd_1232 = Ld_100;
               ObjectDelete(As_0 + As_8 + "LN");
               e_DrawZone(As_0, As_8 + "LN", "Sell Zone", Li_76, Ld_80, Gi_940, 2, 72);
               Gi_1220 = Time[Li_76];
            }
         } else {
            ObjectDelete(As_0 + As_8 + "LN");
            Gs_1212 = "";
         }
      }
   }
   return (Gs_1212);
}
			  			    	 	   		  			  	   	 		 	   				   		   		 		   			 	 	 	 				 		 	   	 			  	    	   		   	  	  								 	 		  		   	  	  				 	  	 
// 4C2178474C44869CA790A22E96CE951C
int f0_5(int Ai_0, int Ai_4, int Ai_8, int Ai_unused_12, int Ai_unused_16) {
   double Lda_24[3];
   SetIndexStyle(0, DRAW_NONE);
   SetIndexStyle(1, DRAW_NONE);
   SetIndexStyle(2, DRAW_LINE, STYLE_DOT, 1, Red);
   SetIndexStyle(3, DRAW_LINE, STYLE_DOT, 1, Lime);
   SetIndexStyle(4, DRAW_LINE, STYLE_DOT, 1, Red);
   SetIndexStyle(5, DRAW_LINE, STYLE_DOT, 1, Lime);
   if (Bars - Gi_584 < Ai_0 && Gi_588 == TRUE) Ai_0 = Bars - Gi_584;
   for (int Li_20 = Ai_0; Li_20 >= 0; Li_20--) {
      e_PZTChannel(G_acc_number_624, Gi_608, Lda_24, High[Li_20], High[Li_20 + 1], Low[Li_20], Low[Li_20 + 1], Close[Li_20 + 1], e_FindAvg2(Symbol(), Period(), Ai_4, Li_20),
         Ai_8, G_ibuf_552[Li_20 + 1], G_ibuf_556[Li_20 + 1], G_ibuf_576[Li_20 + 1], 3, 0);
      G_ibuf_552[Li_20] = Lda_24[0];
      G_ibuf_556[Li_20] = Lda_24[1];
      G_ibuf_576[Li_20] = Lda_24[2];
      if (G_ibuf_576[Li_20] < 0.0) {
         G_ibuf_568[Li_20] = Lda_24[0];
         G_ibuf_560[Li_20] = Lda_24[1];
         G_ibuf_572[Li_20] = EMPTY_VALUE;
         G_ibuf_564[Li_20] = EMPTY_VALUE;
      } else {
         if (G_ibuf_576[Li_20] > 0.0) {
            G_ibuf_572[Li_20] = Lda_24[1];
            G_ibuf_564[Li_20] = Lda_24[0];
            G_ibuf_568[Li_20] = EMPTY_VALUE;
            G_ibuf_560[Li_20] = EMPTY_VALUE;
         }
      }
      if (G_ibuf_576[Li_20 + 1] > 0.0 && G_ibuf_576[Li_20] < 0.0) {
         G_ibuf_568[Li_20 + 1] = G_ibuf_564[Li_20 + 1];
         G_ibuf_560[Li_20 + 1] = G_ibuf_572[Li_20 + 1];
      }
      if (G_ibuf_576[Li_20 + 1] < 0.0 && G_ibuf_576[Li_20] > 0.0) {
         G_ibuf_572[Li_20 + 1] = G_ibuf_560[Li_20 + 1];
         G_ibuf_564[Li_20 + 1] = G_ibuf_568[Li_20 + 1];
      }
   }
   return (2);
}
	 		 	 	 	 		    		    			    		  			 	 	 	   				 							 			  					  		   	    					     	     		   		 			 	 		 	 	   	  				    		 			 			 		 
// C2247DACB244D4986EB76224E9EDE142
string f0_27(string As_0, string As_8, int Ai_16, string As_20, double Ad_28, string As_36, string As_44, int Ai_52) {
   int Li_56;
   int Li_60;
   int Li_64;
   double Lda_80[];
   string Lsa_164[1];
   string Lsa_168[1];
   string Lsa_unused_180[1];
   double Ld_68 = 90;
   e_StrExplDbl(As_20, ",", Lda_80);
   double Ld_84 = Lda_80[0];
   double Ld_92 = Lda_80[1];
   double Ld_100 = Lda_80[2];
   double Ld_108 = Lda_80[3];
   double Ld_unused_116 = Lda_80[4];
   double Ld_unused_124 = Lda_80[5];
   double Ld_unused_132 = Lda_80[6];
   double Ld_140 = Lda_80[7];
   double Ld_148 = Lda_80[8];
   double Ld_156 = Lda_80[9];
   int Li_76 = NormalizeDouble(Ld_84, 0);
   if (Ld_100 < Ld_92) {
      Li_56 = 1;
      Li_60 = 159;
      Li_64 = 16748574;
   } else {
      if (Ld_100 > Ld_92) {
         Li_56 = -1;
         Li_60 = 159;
         Li_64 = 255;
      } else {
         ObjectDelete(As_0 + As_8 + "SLCLOSR");
         ObjectDelete(As_0 + As_8 + "SLCLOSR_1");
         return ("");
      }
   }
   int Li_unused_172 = NormalizeDouble(e_StrToDbl(As_36, "d", Lsa_164), 0);
   int Li_176 = NormalizeDouble(e_StrToDbl(As_44, "d", Lsa_168), 0);
   if (Li_56 == 1) {
      if (Ld_108 == 0.0) {
         Ld_108 = e_PercentDeviation(G_acc_number_624, Gi_608, G_ibuf_552[Ai_16 + 1], Ad_28, Li_176, Lsa_168[0], Gd_616, Point);
         Ld_156 = Ld_100;
         As_20 = Lda_80[0] + "," + Lda_80[1] + "," + Lda_80[2] + "," + Ld_108 + "," + Lda_80[4] + "," + Lda_80[5] + "," + Lda_80[6] + "," + Lda_80[7] + "," + Ld_108 + "," +
            Ld_156;
      }
      if (Li_76 < Time[Ai_16]) {
         if (G_ibuf_556[Ai_16 + 1] > Ld_140) Ld_140 = G_ibuf_556[Ai_16 + 1];
         if (Ld_140 < Ld_100) Ld_140 = Ld_100;
         As_20 = Time[Ai_16] + "," + Lda_80[1] + "," + Lda_80[2] + "," + Ld_108 + "," + Lda_80[4] + "," + Lda_80[5] + "," + Lda_80[6] + "," + Ld_140 + "," + Ld_108 + "," +
            Ld_156;
      }
   } else {
      if (Li_56 == -1) {
         if (Ld_108 == 0.0) {
            Ld_108 = e_PercentDeviation(G_acc_number_624, Gi_608, G_ibuf_556[Ai_16 + 1], Ad_28, -Li_176, Lsa_168[0], Gd_616, Point);
            Ld_156 = Ld_100;
            As_20 = Lda_80[0] + "," + Lda_80[1] + "," + Lda_80[2] + "," + Ld_108 + "," + Lda_80[4] + "," + Lda_80[5] + "," + Lda_80[6] + "," + Lda_80[7] + "," + Ld_108 + "," +
               Ld_156;
         }
         if (Li_76 < Time[Ai_16]) {
            if (G_ibuf_552[Ai_16 + 1] < Ld_140) Ld_140 = G_ibuf_552[Ai_16 + 1];
            if (Ld_140 > Ld_100) Ld_140 = Ld_100;
            As_20 = Time[Ai_16] + "," + Lda_80[1] + "," + Lda_80[2] + "," + Ld_108 + "," + Lda_80[4] + "," + Lda_80[5] + "," + Lda_80[6] + "," + Ld_140 + "," + Ld_108 + "," +
               Ld_156;
         }
      }
   }
   if (Ld_148 == 0.0) Ld_148 = Ld_108;
   if (Li_76 < Time[Ai_16] && (Li_56 == 1 && Low[Ai_16] <= Ld_140) || (Li_56 == -1 && High[Ai_16] >= Ld_140)) {
      ObjectDelete(As_0 + As_8 + "SLCLOSR");
      ObjectDelete(As_0 + As_8 + "SLCLOSR_1");
      e_DrawArrow(As_0, As_8 + "SLPOINT", Li_60, Ld_68, Ai_16 + 1, Ld_140, Li_64, Gi_972, 0, "Wingdings");
      return ("");
   }
   if (Li_76 < Time[Ai_16] && (Li_56 == 1 && Low[Ai_16] <= Ld_156) || (Li_56 == -1 && High[Ai_16] >= Ld_156)) {
      Ld_156 = 0;
      As_20 = Time[Ai_16] + "," + Lda_80[1] + "," + Lda_80[2] + "," + Lda_80[3] + "," + Lda_80[4] + "," + Lda_80[5] + "," + Lda_80[6] + "," + Ld_140 + "," + Ld_108 + "," +
         Ld_156;
   } else {
      if (Li_56 == 1 && High[Ai_16 + 1] > Ld_148 && e_PercentDeviation(G_acc_number_624, Gi_608, G_ibuf_552[Ai_16 + 1], Ad_28, -Ai_52, "d", Gd_616, Point) > Ld_156 && Ld_156 > 0.0 &&
         Li_76 < Time[Ai_16]) {
         Ld_156 = e_PercentDeviation(G_acc_number_624, Gi_608, G_ibuf_552[Ai_16 + 1], Ad_28, -Ai_52, "d", Gd_616, Point);
         Ld_148 = G_ibuf_564[Ai_16 + 1];
         As_20 = Time[Ai_16] + "," + Lda_80[1] + "," + Lda_80[2] + "," + Lda_80[3] + "," + Lda_80[4] + "," + Lda_80[5] + "," + G_ibuf_556[Ai_16] + "," + Ld_140 + "," + Ld_148 +
            "," + Ld_156;
      } else {
         if (Li_56 == -1 && Low[Ai_16 + 1] < Ld_148 && e_PercentDeviation(G_acc_number_624, Gi_608, G_ibuf_556[Ai_16 + 1], Ad_28, Ai_52, "d", Gd_616, Point) < Ld_156 && Ld_156 > 0.0 &&
            Li_76 < Time[Ai_16]) {
            Ld_156 = e_PercentDeviation(G_acc_number_624, Gi_608, G_ibuf_556[Ai_16 + 1], Ad_28, Ai_52, "d", Gd_616, Point);
            Ld_148 = G_ibuf_560[Ai_16 + 1];
            As_20 = Time[Ai_16] + "," + Lda_80[1] + "," + Lda_80[2] + "," + Lda_80[3] + "," + Lda_80[4] + "," + Lda_80[5] + "," + G_ibuf_552[Ai_16] + "," + Ld_140 + "," + Ld_148 +
               "," + Ld_156;
         }
      }
   }
   if (Ld_140 > 0.0 && Ld_140 != Ld_100 || iBarShift(Symbol(), Period(), Li_76) - iBarShift(Symbol(), Period(), Time[Ai_16]) > 10 && Time[Ai_16] >= Li_76) {
      e_DrawArrow(As_0, As_8 + "SLPOINT", Li_60, Ld_68, Ai_16, Ld_140, Li_64, Gi_972, 0, "Wingdings");
      if (Ld_156 > 0.0 && Ld_156 != Ld_100) e_DrawArrow(As_0, As_8 + "SLPOIN2", Li_60, Ld_68, Ai_16, Ld_156, Li_64, Gi_964, 0, "Wingdings");
      if (Ai_16 == 0) e_DrawArr(As_0, As_8 + "SLCLOSR", "TSL  ", Ai_16 - 10, Ld_140, Li_64, 2, 6);
   }
   return (As_20);
}
	 	 		   	     	 				   		 		 	   	   			 			 	 		   		 		   	 				     	  	   	 		  	 	    	  	 				 	  		 		  	 		   		    			      	 	 	   	  
// 7E0608B9A83B7FBAA00A2CD756F08379
string f0_17(string As_0, string As_8, int Ai_unused_16, int Ai_unused_20, int Ai_unused_24, int Ai_unused_28, int Ai_32, string As_36 = "", string As_44 = "", string As_unused_52 = "", string As_unused_60 = "") {
   string Lsa_unused_68[1];
   string Lsa_72[1];
   int Li_84;
   int Li_88;
   int Li_unused_92;
   double Ld_unused_96;
   double Ld_unused_104;
   double Ld_unused_112;
   double Ld_unused_120;
   double Ld_unused_128;
   double Ld_unused_136;
   double Ld_144;
   int Li_76 = NormalizeDouble(e_StrToDbl(Gs_708, "d", Lsa_72), 0);
   if (Bars - Gi_584 < Ai_32 && Gi_588 == TRUE) Ai_32 = Bars - Gi_584;
   for (int Li_80 = Ai_32; Li_80 >= 0; Li_80--) {
      Li_84 = G_ibuf_576[Li_80];
      Li_88 = G_ibuf_576[Li_80 + 1];
      Li_unused_92 = G_ibuf_576[Li_80 + 2];
      Ld_unused_96 = G_ibuf_552[Li_80];
      Ld_unused_104 = G_ibuf_556[Li_80];
      Ld_unused_112 = G_ibuf_552[Li_80 + 1];
      Ld_unused_120 = G_ibuf_556[Li_80 + 1];
      Ld_unused_128 = G_ibuf_560[Li_80 + 1];
      Ld_unused_136 = G_ibuf_564[Li_80 + 1];
      Ld_144 = MathAbs(G_ibuf_552[Li_80 + 1] - (G_ibuf_556[Li_80 + 1]));
      if (e_BreakoutTrader(G_acc_number_624, Gi_608, 1, Li_84, Li_88) && G_time_1304 < Time[Li_80]) {
         Gs_1248 = f0_21(As_0, As_8, "Trend", "Trend               ", Li_80, Open[Li_80], Ld_144, Time[Li_80], 1, As_36, 0, 0, 0, "d");
         G_time_1304 = Time[Li_80];
         Gi_1308 = 0;
         Gd_1256 = Open[Li_80];
         Gd_1280 = Gd_1256;
         Gd_1296 = Ld_144;
         Gs_1264 = "";
      } else {
         if (e_BreakoutTrader(G_acc_number_624, Gi_608, -1, Li_84, Li_88) && G_time_1304 < Time[Li_80]) {
            Gs_1248 = f0_21(As_0, As_8, "Trend", "Trend               ", Li_80, Open[Li_80], Ld_144, Time[Li_80], -1, As_36, 0, 0, 0, "d");
            G_time_1304 = Time[Li_80];
            Gi_1308 = 0;
            Gd_1256 = Open[Li_80];
            Gd_1280 = Gd_1256;
            Gd_1296 = Ld_144;
            Gs_1264 = "";
         }
      }
      if (e_SecondEntry(G_acc_number_624, Gi_608, 1, Li_84, Li_88, Gd_1280, Gd_1280, Gd_1280, Gd_1288) && G_time_1304 < Time[Li_80] && Gs_1248 == "" && Gi_1308 == 1 || Gi_1308 == 1 &&
         Open[Li_80] < Gd_1280) {
         e_DrawZone(As_0, As_8 + "LN", "Buy Zone", Li_80, Gd_1280, Gi_936, 2, 71);
         if (Time[Li_80] == Time[0] && G_bool_816 || G_bool_812 && NormalizeDouble(Gd_1272, Gi_612) != NormalizeDouble(Gd_1280, Gi_612)) PlaySound("alert2.wav");
         if (Time[Li_80] == Time[0]) Gd_1272 = Gd_1280;
         Gs_1264 = f0_16(Li_80, Gd_1280, Gd_1296, Time[Li_80], 1, As_36, 0, 0, 0, "d");
         if (High[Li_80] > Gd_1280) {
            Gs_1248 = f0_21(As_0, As_8, "Trend", "Trend               ", Li_80, Gd_1280, Gd_1296, Time[Li_80], 1, As_36, 0, 0, 0, "d");
            G_time_1304 = Time[Li_80];
            Gs_1264 = "";
            ObjectDelete(As_0 + As_8 + "LN");
         }
      } else {
         if (e_SecondEntry(G_acc_number_624, Gi_608, -1, Li_84, Li_88, Gd_1280, Gd_1280, Gd_1280, Gd_1288) && G_time_1304 < Time[Li_80] && Gs_1248 == "" && Gi_1308 == 1 || Gi_1308 == 1 &&
            Open[Li_80] > Gd_1280) {
            e_DrawZone(As_0, As_8 + "LN", "Sell Zone", Li_80, Gd_1280, Gi_940, 2, 72);
            if (Time[Li_80] == Time[0] && G_bool_816 || G_bool_812 && NormalizeDouble(Gd_1272, Gi_612) != NormalizeDouble(Gd_1280, Gi_612)) PlaySound("alert2.wav");
            if (Time[Li_80] == Time[0]) Gd_1272 = Gd_1280;
            Gs_1264 = f0_16(Li_80, Gd_1280, Gd_1296, Time[Li_80], -1, As_36, 0, 0, 0, "d");
            if (Low[Li_80] < Gd_1280) {
               Gs_1248 = f0_21(As_0, As_8, "Trend", "Trend               ", Li_80, Gd_1280, Gd_1296, Time[Li_80], -1, As_36, 0, 0, 0, "d");
               G_time_1304 = Time[Li_80];
               Gs_1264 = "";
               ObjectDelete(As_0 + As_8 + "LN");
            }
         } else ObjectDelete(As_0 + As_8 + "LN");
      }
      if (Gs_1248 != "") {
         Gs_1248 = f0_27(As_0, As_8, Li_80, Gs_1248, MathAbs(Ld_144), As_36, As_44, Li_76);
         if (Gs_1248 == "" && Gi_1308 == 0) {
            Gi_1308 = 1;
            Gd_1280 = Gd_1256 + Li_84 * Gd_1296 * Gi_888 / 100.0;
            continue;
         }
         if (Gs_1248 == "" && Gi_1308 == 1) {
            Gi_1308 = -1;
            Gd_1280 = 0;
         }
      }
   }
   return (Gs_1264);
}
					 	    	 			  	 			 	   		   			 	 				 		  	  	    	  	  			 		 		 		   			  		  		 	 					  	 		    			 	 			  					 	   	 	 	 	  				 	   
// A4B06EA3B3D2162CF587AE3D66374B82
void f0_20(string As_0, string As_8, int Ai_16, int Ai_20, int Ai_24, int Ai_28, int Ai_32) {
   if (Bars - Gi_584 < Ai_16 && Gi_588 == TRUE) Ai_16 = Bars - Gi_584;
   for (int Li_36 = Ai_16; Li_36 >= 0; Li_36--) {
      if (Ai_32 == 2 && G_ibuf_576[Li_36] > 0.0) {
         e_DrawTriangle(As_0, As_8, Ai_20, Ai_24, Ai_28, 1, Li_36 + 1, Li_36, Li_36 + 1, G_ibuf_552[Li_36 + 1], G_ibuf_552[Li_36], G_ibuf_556[Li_36 + 1], 1);
         e_DrawTriangle(As_0, As_8, Ai_20, Ai_24, Ai_28, 2, Li_36, Li_36 + 1, Li_36, G_ibuf_552[Li_36], G_ibuf_556[Li_36 + 1], G_ibuf_556[Li_36], 1);
      } else {
         if (Ai_32 == 2 && G_ibuf_576[Li_36] <= 0.0) {
            e_DrawTriangle(As_0, As_8, Ai_20, Ai_24, Ai_28, 1, Li_36 + 1, Li_36, Li_36 + 1, G_ibuf_552[Li_36 + 1], G_ibuf_552[Li_36], G_ibuf_556[Li_36 + 1], -1);
            e_DrawTriangle(As_0, As_8, Ai_20, Ai_24, Ai_28, 2, Li_36, Li_36 + 1, Li_36, G_ibuf_552[Li_36], G_ibuf_556[Li_36 + 1], G_ibuf_556[Li_36], -1);
         } else {
            if (Ai_32 == 3 && G_ibuf_576[Li_36] > 0.0) {
               e_DrawTriangle(As_0, As_8, Ai_20, Ai_24, Ai_28, 1, Li_36 + 1, Li_36, Li_36 + 1, G_ibuf_552[Li_36 + 1], G_ibuf_552[Li_36], G_ibuf_560[Li_36 + 1], 1);
               e_DrawTriangle(As_0, As_8, Ai_20, Ai_24, Ai_28, 2, Li_36 + 1, Li_36, Li_36, G_ibuf_560[Li_36 + 1], G_ibuf_560[Li_36], G_ibuf_552[Li_36], 1);
               e_DrawTriangle(As_0, As_8, Ai_20, Ai_24, Ai_28, 1, Li_36 + 1, Li_36, Li_36 + 1, G_ibuf_560[Li_36 + 1], G_ibuf_560[Li_36], G_ibuf_556[Li_36 + 1], 0);
               e_DrawTriangle(As_0, As_8, Ai_20, Ai_24, Ai_28, 2, Li_36, Li_36 + 1, Li_36, G_ibuf_560[Li_36], G_ibuf_556[Li_36 + 1], G_ibuf_556[Li_36], 0);
            } else {
               if (Ai_32 == 3 && G_ibuf_576[Li_36] <= 0.0) {
                  e_DrawTriangle(As_0, As_8, Ai_20, Ai_24, Ai_28, 1, Li_36 + 1, Li_36, Li_36 + 1, G_ibuf_552[Li_36 + 1], G_ibuf_552[Li_36], G_ibuf_560[Li_36 + 1], 0);
                  e_DrawTriangle(As_0, As_8, Ai_20, Ai_24, Ai_28, 2, Li_36 + 1, Li_36, Li_36, G_ibuf_560[Li_36 + 1], G_ibuf_560[Li_36], G_ibuf_552[Li_36], 0);
                  e_DrawTriangle(As_0, As_8, Ai_20, Ai_24, Ai_28, 1, Li_36 + 1, Li_36, Li_36 + 1, G_ibuf_560[Li_36 + 1], G_ibuf_560[Li_36], G_ibuf_556[Li_36 + 1], -1);
                  e_DrawTriangle(As_0, As_8, Ai_20, Ai_24, Ai_28, 2, Li_36, Li_36 + 1, Li_36, G_ibuf_560[Li_36], G_ibuf_556[Li_36 + 1], G_ibuf_556[Li_36], -1);
               }
            }
         }
      }
   }
}
	 		 		 		 		 					   	  	      	 			  	  	      	 			   	 					 				 	     	 											  	  					     				 		   	 	 		   			 		  		     			   	
// 66D295AE6B19EEB82FB6B917DCB7B4E4
int f0_10(string As_0, string As_8, int Ai_16, string As_20, string As_28, string As_36, string As_44, string As_52, string As_60, bool Ai_68, bool Ai_72, bool Ai_76, bool Ai_80, bool Ai_84, bool Ai_88) {
   double Ld_92 = 7.0;
   for (int count_100 = 0; count_100 < 57; count_100++) e_DrawLabel(As_0, As_8 + "_LINE_" + count_100, "_", count_100 * Ld_92 + 2.0, Ai_16, Gi_924, "Arial", Gi_964, 1);
   e_DrawLabel2(As_0, As_8 + "00", "Activated Strategies:", 0, 302, Ai_16, G_color_916, "Arial", Gi_956, 1, 0);
   e_DrawLabel2(As_0, As_8 + "10", As_20, 0, 260, Ai_16, G_color_916, "Arial", Gi_956, 1, 0);
   e_DrawLabel2(As_0, As_8 + "20", As_28, 0, 216, Ai_16, G_color_916, "Arial", Gi_956, 1, 0);
   e_DrawLabel2(As_0, As_8 + "30", As_36, 0, 163, Ai_16, G_color_916, "Arial", Gi_956, 1, 0);
   e_DrawLabel2(As_0, As_8 + "40", As_44, 0, 108, Ai_16, G_color_916, "Arial", Gi_956, 1, 0);
   e_DrawLabel2(As_0, As_8 + "50", As_52, 0, 52, Ai_16, G_color_916, "Arial", Gi_956, 1, 0);
   e_DrawLabel2(As_0, As_8 + "60", As_60, 0, 10, Ai_16, G_color_916, "Arial", Gi_956, 1, 0);
   if (Ai_68) ObjectSet(As_0 + As_8 + "10", OBJPROP_COLOR, G_color_900);
   else {
      if (Ai_72) ObjectSet(As_0 + As_8 + "20", OBJPROP_COLOR, G_color_900);
      else {
         if (Ai_76) ObjectSet(As_0 + As_8 + "30", OBJPROP_COLOR, G_color_900);
         else {
            if (Ai_80) ObjectSet(As_0 + As_8 + "40", OBJPROP_COLOR, G_color_900);
            else {
               if (Ai_84) ObjectSet(As_0 + As_8 + "50", OBJPROP_COLOR, G_color_900);
               else
                  if (Ai_88) ObjectSet(As_0 + As_8 + "60", OBJPROP_COLOR, G_color_900);
            }
         }
      }
   }
   Ai_16 = ObjectGet(As_0 + As_8 + "1", OBJPROP_YDISTANCE) + 25.0;
   return (Ai_16);
}
						 		  	    	 	 	  	    	 						  	  		 	 		   	 			   	 	    		   	 	      	 		 	  		 		   	 	 	 			 				 	 		      	 	 		 		 	  		 			  			
// 679C258105517DAAC139C5A889559A8D
int f0_11(string As_0, string As_8, int Ai_16) {
   string Ls_20;
   string Ls_28;
   string Ls_36;
   string Ls_44;
   if (Gi_592 && Gi_596) {
      Ls_20 = StringSubstr(DoubleToStr(Ask, Digits), StringLen(DoubleToStr(Ask, Digits)) - 1, 1);
      Ls_28 = StringSubstr(DoubleToStr(Bid, Digits), StringLen(DoubleToStr(Bid, Digits)) - 1, 1);
      Ls_36 = StringSubstr(DoubleToStr(Ask, Digits), 0, StringLen(DoubleToStr(Ask, Digits)) - 1);
      Ls_44 = StringSubstr(DoubleToStr(Bid, Digits), 0, StringLen(DoubleToStr(Bid, Digits)) - 1);
      e_DrawLabel(As_0, As_8 + 1, Ls_36, 15, Ai_16 - 10, G_color_900, "IrisUPC", G_fontsize_988, 1);
      e_DrawLabel(As_0, As_8 + 2, Ls_20, 2, Ai_16 - 3, G_color_900, "IrisUPC", Gi_980, 1);
      e_DrawLabel(As_0, As_8 + 3, Ls_44, 15, Ai_16 + 15, G_color_908, "IrisUPC", G_fontsize_988, 1);
      e_DrawLabel(As_0, As_8 + 4, Ls_28, 2, Ai_16 + 17, G_color_908, "IrisUPC", Gi_980, 1);
   } else {
      e_DrawLabel(As_0, As_8 + 2, DoubleToStr(Ask, Digits), 2, Ai_16 - 10, G_color_900, "IrisUPC", G_fontsize_988, 1);
      e_DrawLabel(As_0, As_8 + 4, DoubleToStr(Bid, Digits), 2, Ai_16 + 15, G_color_908, "IrisUPC", G_fontsize_988, 1);
   }
   Ai_16 = ObjectGet(As_0 + As_8 + 4, OBJPROP_YDISTANCE) + 40.0;
   return (Ai_16);
}
			  	 		   	   	 		   	   	  					 	 	  			  		    				    		    	 	  	 	 		   	 	 		  		      	 		  			 	  	 	 				    	  			 		  	 		 		 	 			
// 00531FA104D103E8FA4BA8773E8DCBAC
int f0_0(string As_0, string As_8, int Ai_16, int Ai_20, int Ai_24) {
   string Lsa_36[];
   int Lia_40[3];
   string Lsa_44[1];
   int Lia_52[5];
   int Lia_56[];
   double Lda_64[3];
   double Lda_68[5];
   int Li_28 = 10;
   e_PeriodArrT(Period(), Lsa_36, "M1", "M5", "M15", "M30", "H1", "H4", "D1", "W1", "MN");
   int Li_32 = e_PeriodArr(G_acc_number_624, Gi_608, Period(), Lia_40);
   Lsa_44[0] = "";
   Lsa_44[1] = "";
   Ai_24 = e_DrawTable(As_0, As_8, 0, 1, Li_28, Ai_24, 40, 40, Li_32, 2, Lsa_36, Lsa_44, "Arial", Gi_956, Gi_964, G_fontsize_968, G_color_916, Gi_920, G_color_916);
   for (int index_48 = 0; index_48 < Li_32; index_48++) {
      e_GetLV(Lia_40[index_48], ",", Lia_56, M1, M5, M15, M30, H1, H4, D1, W1, MN);
      Lia_52[index_48] = Lia_56[0];
      if (Bars - Gi_584 < Ai_16 && Gi_588 == TRUE) Ai_16 = Bars - Gi_584;
      for (int Li_60 = Ai_16; Li_60 >= 0; Li_60--) {
         e_PZTChannel(G_acc_number_624, Gi_608, Lda_64, iHigh(Symbol(), Lia_40[index_48], Li_60), iHigh(Symbol(), Lia_40[index_48], Li_60 + 1), iLow(Symbol(), Lia_40[index_48],
            Li_60), iLow(Symbol(), Lia_40[index_48], Li_60 + 1), iClose(Symbol(), Lia_40[index_48], Li_60 + 1), e_FindAvg2(Symbol(), Lia_40[index_48], Ai_20, Li_60), Lia_52[index_48],
            Gda_1312[index_48], Gda_1316[index_48], Gda_1320[index_48], 3, 0);
         Gda_1312[index_48] = Lda_64[0];
         Gda_1316[index_48] = Lda_64[1];
         Gda_1320[index_48] = Lda_64[2];
      }
      if (Gda_1320[index_48] > 0.0 && Gda_1312[index_48] - Gda_1316[index_48] != 0.0) Lda_68[index_48] = 100.0 * (iClose(Symbol(), Lia_40[index_48], 0) - Gda_1316[index_48]) / (Gda_1312[index_48] - Gda_1316[index_48]);
      else
         if (Gda_1320[index_48] < 0.0 && Gda_1312[index_48] - Gda_1316[index_48] != 0.0) Lda_68[index_48] = 100.0 * (Gda_1312[index_48] - iClose(Symbol(), Lia_40[index_48], 0)) / (Gda_1312[index_48] - Gda_1316[index_48]);
      if (Lda_68[index_48] <= 5.0) Lda_68[index_48] = 5;
      else {
         if (Lda_68[index_48] <= 15.0) Lda_68[index_48] = 15;
         else {
            if (Lda_68[index_48] <= 30.0) Lda_68[index_48] = 30;
            else {
               if (Lda_68[index_48] <= 50.0) Lda_68[index_48] = 50;
               else {
                  if (Lda_68[index_48] <= 70.0) Lda_68[index_48] = 70;
                  else {
                     if (Lda_68[index_48] <= 85.0) Lda_68[index_48] = 85;
                     else Lda_68[index_48] = 95;
                  }
               }
            }
         }
      }
      if (Gda_1320[index_48] > 0.0) ObjectSetText(As_0 + "V" + As_8 + "1" + index_48, CharToStr(221), G_fontsize_988, "Wingdings", G_color_900);
      else {
         if (Gda_1320[index_48] <= 0.0) ObjectSetText(As_0 + "V" + As_8 + "1" + index_48, CharToStr(222), G_fontsize_988, "Wingdings", G_color_908);
         else ObjectSetText(As_0 + "V" + As_8 + "1" + index_48, CharToStr(220), G_fontsize_988, "Wingdings", G_color_916);
      }
      if (Gda_1320[index_48] > 0.0) ObjectSetText(As_0 + "V" + As_8 + "0" + index_48, DoubleToStr(Lda_68[index_48], 0) + "%", G_fontsize_968, "Arial", G_color_900);
      else
         if (Gda_1320[index_48] <= 0.0) ObjectSetText(As_0 + "V" + As_8 + "0" + index_48, DoubleToStr(Lda_68[index_48], 0) + "%", G_fontsize_968, "Arial", G_color_908);
   }
   return (Ai_24 + 10);
}
		 	 				 			 	 	     		  	    			 		    	     	  				 	  					    		 		 		 	 	 	  				 				  	 	      		  	 			 	  	 	  					  					  	 	 		  		
// 7103A56B2CDB4A5EE62DAF5F6B647534
int f0_15(string As_0, string As_8, int Ai_16, string As_20, string As_28, string As_36, string As_44, string As_52, string As_60, string A_symbol_68) {
   double Lda_76[];
   double Lda_80[];
   double Lda_84[];
   double Lda_88[];
   double Lda_92[];
   double Lda_96[];
   double Lda_100[];
   double Ld_188;
   double Ld_196;
   double Ld_204;
   double Ld_220;
   string Ls_236;
   int Li_244;
   int Li_248;
   int Li_184 = 20;
   double Ld_252 = 0;
   double Ld_260 = 0;
   e_StrExplDbl(As_20, ",", Lda_76);
   e_StrExplDbl(As_28, ",", Lda_80);
   e_StrExplDbl(As_36, ",", Lda_84);
   e_StrExplDbl(As_44, ",", Lda_88);
   e_StrExplDbl(As_52, ",", Lda_92);
   e_StrExplDbl(As_60, ",", Lda_96);
   string Ls_104 = As_20;
   double Ld_112 = Lda_76[0];
   string Ls_228 = "Swing              ";
   if (Lda_80[0] > Ld_112) {
      Ls_104 = As_28;
      Ld_112 = Lda_80[0];
      Ls_228 = "Combo              ";
   }
   if (Lda_84[0] > Ld_112) {
      Ls_104 = As_36;
      Ld_112 = Lda_84[0];
      Ls_228 = "Breakout          ";
   }
   if (Lda_88[0] > Ld_112) {
      Ls_104 = As_44;
      Ld_112 = Lda_88[0];
      Ls_228 = "Trend               ";
   }
   if (Lda_92[0] > Ld_112) {
      Ls_104 = As_52;
      Ld_112 = Lda_92[0];
      Ls_228 = "Dynamic          ";
   }
   if (Lda_96[0] > Ld_112) {
      Ls_104 = As_60;
      Ld_112 = Lda_96[0];
      Ls_228 = "Complex          ";
   }
   e_StrExplDbl(Ls_104, ",", Lda_100);
   double Ld_120 = Lda_100[1];
   double Ld_128 = Lda_100[2];
   double Ld_136 = Lda_100[3];
   double Ld_144 = Lda_100[4];
   double Ld_unused_152 = Lda_100[5];
   double Ld_unused_160 = Lda_100[6];
   double Ld_unused_168 = Lda_100[7];
   double Ld_unused_176 = Lda_100[8];
   if (Ld_120 == 0.0) {
      e_ClearObj(As_0 + As_8);
      return (Ai_16);
   }
   if (Ld_128 < Ld_120) {
      Ls_236 = "Buy";
      Li_244 = 233;
      Li_248 = 65280;
      Ld_252 = 0;
      Ld_260 = 4;
      Ld_220 = (Ld_120 - Ld_128) / Gd_616;
   } else {
      if (Ld_128 > Ld_120) {
         Ls_236 = "Sell";
         Li_244 = 234;
         Li_248 = 255;
         Ld_252 = 0;
         Ld_260 = 7;
         Ld_220 = (Ld_128 - Ld_120) / Gd_616;
      }
   }
   if (Ld_128 < Ld_120 && Ld_144 > 0.0) Ld_204 = (Ld_144 - Ld_120) / Gd_616;
   else {
      if (Ld_128 > Ld_120 && Ld_144 > 0.0) Ld_204 = (Ld_120 - Ld_144) / Gd_616;
      else {
         if (Ld_128 < Ld_120 && Ld_136 > 0.0) Ld_204 = (Ld_136 - Ld_120) / Gd_616;
         else
            if (Ld_128 > Ld_120 && Ld_136 > 0.0) Ld_204 = (Ld_120 - Ld_136) / Gd_616;
      }
   }
   if (Ld_220 != 0.0) {
      Ld_188 = NormalizeDouble(Ld_204 / Ld_220, Gi_612);
      Ld_196 = AccountBalance() * Gd_636 / 100.0 / (MarketInfo(A_symbol_68, MODE_TICKVALUE) * Ld_220 * Gd_616 / Point);
      Ld_196 = MathAbs(Ld_196);
   }
   int Li_268 = 16777215;
   e_DrawLabel(As_0, As_8 + 1, CharToStr(182), 130, Ai_16, 55295, "Wingdings", G_fontsize_968, 1);
   e_DrawLabel(As_0, As_8 + "2", "Trade Calculator", 10, Ai_16, 55295, "Arial", G_fontsize_968, 1);
   Ai_16 = Ai_16 + Li_184 + 8;
   e_DrawLabel(As_0, As_8 + 3, Ls_236, 20, Ai_16, Li_268, "Arial", Gi_964, 1);
   e_DrawLabel(As_0, As_8 + 4, "Order:", 80, Ai_16, G_color_916, "Arial", Gi_964, 1);
   e_DrawLabel2(As_0, As_8 + 5, CharToStr(Li_244), Ld_252, 10, Ai_16 + Ld_260, Li_248, "Wingdings", Gi_964, 1, 0);
   Ai_16 += Li_184;
   e_DrawLabel(As_0, As_8 + 6, DoubleToStr(Ld_120, Gi_612), 10, Ai_16, Li_268, "Arial", Gi_964, 1);
   e_DrawLabel(As_0, As_8 + 7, "Price:", 80, Ai_16, G_color_916, "Arial", Gi_964, 1);
   Ai_16 += Li_184;
   e_DrawLabel(As_0, As_8 + 8, "SL:", 80, Ai_16, G_color_916, "Arial", Gi_964, 1);
   e_DrawLabel(As_0, As_8 + 9, DoubleToStr(Ld_128, Gi_612), 10, Ai_16, Li_268, "Arial", Gi_964, 1);
   if (Ld_136 != 0.0 && Ls_228 != "Trend               ") {
      Ai_16 += Li_184;
      e_DrawLabel(As_0, As_8 + "A10", "TP:", 80, Ai_16, G_color_916, "Arial", Gi_964, 1);
      e_DrawLabel(As_0, As_8 + "A11", DoubleToStr(Ld_136, Gi_612), 10, Ai_16, Gi_924, "Arial", Gi_964, 1);
      Ai_16 += Li_184;
      e_DrawLabel(As_0, As_8 + "A12", "P/L:", 80, Ai_16, G_color_916, "Arial", Gi_964, 1);
      e_DrawLabel(As_0, As_8 + "A13", DoubleToStr(Ld_188, 1), 10, Ai_16, Gi_924, "Arial", Gi_964, 1);
   } else e_ClearObj(As_0 + As_8 + "A");
   Ai_16 += Li_184;
   e_DrawLabel(As_0, As_8 + 14, "Vol.:", 80, Ai_16, G_color_916, "Arial", Gi_964, 1);
   e_DrawLabel(As_0, As_8 + 15, DoubleToStr(Ld_196, 1), 40, Ai_16, Gi_924, "Arial", Gi_964, 1);
   e_DrawLabel(As_0, As_8 + 16, "Lots", 10, Ai_16, Gi_924, "Arial", Gi_964, 1);
   Ai_16 = ObjectGet(As_0 + As_8 + 16, OBJPROP_YDISTANCE) + 20.0;
   return (Ai_16);
}
			  			    	 	   		  			  	   	 		 	   				   		   		 		   			 	 	 	 				 		 	   	 			  	    	   		   	  	  								 	 		  		   	  	  				 	  	 
// 6D9A7DD3A66C935D490C2C917C716818
int f0_13(string As_0, string As_8, int Ai_16, string As_20, string As_28, string As_36, string As_44, string As_52, string As_60, string As_unused_68) {
   double Lda_76[];
   double Lda_80[];
   double Lda_84[];
   double Lda_88[];
   double Lda_92[];
   double Lda_96[];
   double Lda_100[];
   double Ld_204;
   double Ld_212;
   int Li_184 = 20;
   e_StrExplDbl(As_20, ",", Lda_76);
   e_StrExplDbl(As_28, ",", Lda_80);
   e_StrExplDbl(As_36, ",", Lda_84);
   e_StrExplDbl(As_44, ",", Lda_88);
   e_StrExplDbl(As_52, ",", Lda_92);
   e_StrExplDbl(As_60, ",", Lda_96);
   string Ls_104 = As_20;
   double Ld_112 = Lda_76[0];
   string Ls_220 = "Swing              ";
   if (Lda_80[0] > Ld_112) {
      Ls_104 = As_28;
      Ld_112 = Lda_80[0];
      Ls_220 = "Combo              ";
   }
   if (Lda_84[0] > Ld_112) {
      Ls_104 = As_36;
      Ld_112 = Lda_84[0];
      Ls_220 = "Breakout          ";
   }
   if (Lda_88[0] > Ld_112) {
      Ls_104 = As_44;
      Ld_112 = Lda_88[0];
      Ls_220 = "Trend               ";
   }
   if (Lda_92[0] > Ld_112) {
      Ls_104 = As_52;
      Ld_112 = Lda_92[0];
      Ls_220 = "Dynamic          ";
   }
   if (Lda_96[0] > Ld_112) {
      Ls_104 = As_60;
      Ld_112 = Lda_96[0];
      Ls_220 = "Complex          ";
   }
   e_StrExplDbl(Ls_104, ",", Lda_100);
   double Ld_120 = Lda_100[1];
   double Ld_128 = Lda_100[2];
   double Ld_136 = Lda_100[3];
   double Ld_144 = Lda_100[4];
   double Ld_unused_152 = Lda_100[5];
   double Ld_unused_160 = Lda_100[6];
   double Ld_unused_168 = Lda_100[7];
   double Ld_unused_176 = Lda_100[8];
   string Ls_228 = " Pips";
   if (!Gi_592) Ls_228 = " P.  ";
   if (Ld_120 == 0.0) {
      e_ClearObj(As_0 + As_8);
      return (Ai_16);
   }
   if (Ld_128 < Ld_120) Ld_212 = (Ld_120 - Ld_128) / Gd_616;
   else
      if (Ld_128 > Ld_120) Ld_212 = (Ld_128 - Ld_120) / Gd_616;
   if (Ld_128 < Ld_120 && Ld_144 > 0.0) Ld_204 = (Ld_144 - Ld_120) / Gd_616;
   else {
      if (Ld_128 > Ld_120 && Ld_144 > 0.0) Ld_204 = (Ld_120 - Ld_144) / Gd_616;
      else {
         if (Ld_128 < Ld_120 && Ld_136 > 0.0) Ld_204 = (Ld_136 - Ld_120) / Gd_616;
         else
            if (Ld_128 > Ld_120 && Ld_136 > 0.0) Ld_204 = (Ld_120 - Ld_136) / Gd_616;
      }
   }
   int Li_unused_236 = 16777215;
   e_DrawLabel(As_0, As_8 + 1, CharToStr(182), 118, Ai_16, 55295, "Wingdings", G_fontsize_968, 1);
   e_DrawLabel(As_0, As_8 + "2", "Trade Potential", 10, Ai_16, 55295, "Arial", G_fontsize_968, 1);
   Ai_16 = Ai_16 + Li_184 + 8;
   e_DrawLabel(As_0, As_8 + 3, "Loss:", 80, Ai_16, G_color_916, "Arial", Gi_964, 1);
   e_DrawLabel(As_0, As_8 + 4, "-" + DoubleToStr(Ld_212, 0) + Ls_228, 10, Ai_16, 255, "Arial", Gi_964, 1);
   if (Ld_136 != 0.0 && Ls_220 != "Trend               ") {
      Ai_16 += Li_184;
      e_DrawLabel(As_0, As_8 + "A5", "Profit:", 80, Ai_16, G_color_916, "Arial", Gi_964, 1);
      e_DrawLabel(As_0, As_8 + "A6", "+" + DoubleToStr(Ld_204, 0) + Ls_228, 10, Ai_16, 65280, "Arial", Gi_964, 1);
   } else e_ClearObj(As_0 + As_8 + "A");
   Ai_16 = ObjectGet(As_0 + As_8 + "A6", OBJPROP_YDISTANCE) + 20.0;
   return (Ai_16);
}