#property copyright "Copyright © 2012 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 <fxpreislevelsv4.mqh>
#import "fxpreislevelsv4.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_ObjXCrIfNF(string a0, string a1, int a2, int a3, double a4, int a5, int a6, int a7, int a8); // 457483BEED0B0E9ED5074B55849E11FD
   int e_StrExpl(string a0, string a1, int& a2[]); // 822F2AFF3B18563C26F438B7DC59F6C0
   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
   int e_Acc(int a0, int a1, int a2, int a3); // E091D64D9F328739B1842EBFCB466E1D
   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); // 1E2E267E1837E5E60F32917E7AA39513
   void e_DrawZone(string a0, string a1, string a2, int a3, double a4, int a5, int a6, int a7); // 5AF18469257D415DD2E2B0BB5470FFD6
   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 "fxpreislevelsv4.dll"
   string i_GetName(int a0);
   int i_Count(int a0);
   int i_Count2(int a0);
   int i_Fun1(int a0, int a1);
   int i_Fun3(int a0, int a1);
   int i_Fun5(int a0);
   int i_GetTF(int a0);
   int i_Digit(int a0);
   double i_Point(double a0);
   int i_GetSF2(int a0, int a1, int a2, int a3, int a4, int a5, int a6, int a7, int a8, int a9, int a10);
   string i_PeriodT(int a0, string a1, string a2, string a3, string a4, string a5, string a6, string a7, string a8, string a9);
   int i_PeriodArr(int a0, int& a1[]);
   double i_PercentDeviation(double a0, double a1, double a2);
   double i_GetLev(double a0, int a1, int a2);
   bool i_SwingTrader(int a0, double a1, double a2, double a3, double a4, double a5, double a6, double a7);
   bool i_BreakoutTrader(int a0, double a1, double a2);
   bool i_VTrader(int a0, int a1, double a2, double a3, double a4, double a5, double a6, double a7, double a8, double a9, int a10, int a11, int a12, int a13);
   bool i_TrailingStop(int a0, double a1, double a2, int a3, int a4, double a5, double a6);
   double i_BrCandle(double a0, double a1, double a2);
#import

extern bool PENDING_ORDER_CALCULATOR = FALSE;
extern string Pair = "EURUSD";
extern double Entry_Price = 1.2295;
extern double Stop_Loss = 1.2219;
extern double Take_Profit = 1.2473;
extern double Trade_Risk_Percent = 2.0;
extern bool MARKET_ORDER_CALCULATOR = FALSE;
extern string Market_Order_Type = "B";
extern string Market_Order_StopLoss = "A25";
extern string Market_Order_TakeProfit = "A50";
extern string LEVELS_L1\L2\L3 = "";
extern string M1 = "10,24,36";
extern string M5 = "13,20,26";
extern string M15 = "14,28,42";
extern string M30 = "40,80,120";
extern string H1 = "60,120,180";
extern string H4 = "60,120,180";
extern string D1 = "150,300,450";
extern string W1 = "350,700,1050";
extern string MN = "700,1400,2100";
extern int Periods = 1;
extern string STRATEGIES = "";
extern bool SwingL1_Strategy = FALSE;
extern string StopLoss_Distance = "p80";
extern string TakeProfit_Distance = "p120";
extern string TakeProfit_Distance2 = "p200";
extern bool SwingL2_Strategy = FALSE;
extern string Stop_Loss_Distance = "p50";
extern string Take_Profit_Distance = "p120";
extern bool Breakout_Strategy = FALSE;
extern string Stoploss_Distance = "p50";
extern string Takeprofit_Distance = "p100";
extern string Takeprofit_Distance2 = "p200";
extern bool Trend_Strategy = FALSE;
extern string Stoploss_Distance_ = "d50";
extern string TSL_Steps = "d100";
extern int _Signal_Filter = 10;
extern int M1_ = 2;
extern int M5_ = 2;
extern int M15_ = 2;
extern int M30_ = 2;
extern int H1_ = 2;
extern int H4_ = 2;
extern int D1_ = 2;
extern int W1_ = 2;
extern int MN_ = 2;
extern bool Dynamic_Strategy = FALSE;
extern string StopLoss_Distance_ = "d100";
extern string TakeProfit_Distance_ = "d100";
extern string TakeProfit_Distance2_ = "d200";
int Gi_404 = 100;
extern int SignalFilter = 10;
extern int M1__ = 3;
extern int M5__ = 3;
extern int M15__ = 3;
extern int M30__ = 3;
extern int H1__ = 3;
extern int H4__ = 3;
extern int D1__ = 3;
extern int W1__ = 3;
extern int MN__ = 3;
extern bool Complex_Strategy = FALSE;
extern string StopLoss__Distance_ = "d100";
extern string TakeProfit__Distance_ = "d100";
extern string TakeProfit__Distance2_ = "d200";
extern int Signal_Filter = 10;
extern string M1___ = "20,1";
extern string M5___ = "60,6";
extern string M15___ = "30,6";
extern string M30___ = "30,8";
extern string H1___ = "50,10";
extern string H4___ = "30,8";
extern string D1___ = "20,20";
extern string W1___ = "30,40";
extern string MN___ = "30,100";
extern string STYLE = "";
extern bool Alert_Sound = FALSE;
extern bool Alert_Window = FALSE;
bool Gi_568 = FALSE;
extern bool Ask_Bid = TRUE;
extern bool Multi_Timeframe_Trends = TRUE;
extern bool Price_Fluctuations = FALSE;
extern string Price_Fluctuation_Periods = "20,20";
extern bool Showing_Strategies = TRUE;
extern bool Logo = TRUE;
extern int PaintCount = 500;
extern int BarCount = 1000;
extern bool White_Background = FALSE;
double G_ibuf_612[];
double G_ibuf_616[];
double G_ibuf_620[];
double G_ibuf_624[];
double G_ibuf_628[];
double G_ibuf_632[];
double G_ibuf_636[];
int G_ind_counted_640;
bool Gi_644;
int Gi_648 = -100;
int Gi_652 = -100;
int Gi_656 = -100;
int Gi_unused_660 = -100;
int Gi_664 = -100;
int Gi_unused_668 = -100;
int Gi_672 = -100;
int Gi_676 = -100;
int Gi_680 = -100;
int Gi_684 = 0;
double Gd_688 = 0.0;
int G_acc_number_696;
bool G_bool_700;
bool G_bool_704;
string Gs_708;
double Gd_716;
double Gd_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;
string Gs_804;
string Gs_812;
string Gs_820;
string Gs_828;
string Gs_836;
string Gs_844;
string Gs_852;
string Gs_860;
string Gs_868;
string Gs_876;
string Gs_884;
bool G_bool_892;
int Gi_896;
int Gi_900;
bool G_bool_904;
bool G_bool_908;
int Gi_912;
bool G_bool_916;
bool G_bool_920;
bool G_bool_924;
bool G_bool_928;
bool G_bool_932;
bool G_bool_936;
bool G_bool_940;
bool G_bool_944;
bool G_bool_948;
int Gi_952;
int Gi_956;
int Gi_960;
string Gs_dummy_964;
string Gs_972;
bool G_bool_980;
color G_color_984;
int Gi_unused_988;
color G_color_992;
int Gi_unused_996;
color G_color_1000;
int Gi_1004;
color G_color_1008;
int Gi_1012;
color G_color_1016;
int Gi_1020;
int Gi_1024;
int Gi_1028;
int Gi_1032;
int Gi_1036;
double Gd_1040;
string Gs_1048;
double Gd_1056;
string Gs_1064;
string Gs_1072;
double Gd_1080;
string Gs_1088;
double G_icustom_1096;
double G_icustom_1104;
int Gi_1112;
double Gd_1116;
string Gs_1124;
int Gi_1132;
double G_icustom_1136;
double G_icustom_1144;
double Gd_1152;
string Gs_1160;
int Gi_1168;
double G_icustom_1172;
double G_icustom_1180;
double Gd_1188;

// 59D6AB1D2B3C1B8E9408D1D58708CAF2
void f0_5(bool Ai_0) {
   if (!Ai_0) {
      G_color_984 = Lime;
      Gi_unused_988 = 16711680;
      G_color_992 = Red;
      Gi_unused_996 = 255;
      G_color_1000 = Silver;
      Gi_1004 = 12632256;
      G_color_1008 = White;
      Gi_1012 = 55295;
      G_color_1016 = White;
      Gi_1020 = 10025880;
      Gi_1024 = 3937500;
      Gi_1028 = 10240;
      Gi_1032 = 6558720;
      Gi_1036 = 100;
      return;
   }
   if (Ai_0) {
      G_color_984 = DarkBlue;
      Gi_unused_988 = 16711680;
      G_color_992 = Brown;
      Gi_unused_996 = 2763429;
      G_color_1000 = C'0x64,0x64,0x64';
      Gi_1004 = 6579300;
      G_color_1008 = C'0x2A,0x2A,0x2A';
      Gi_1012 = 7346457;
      G_color_1016 = Silver;
      Gi_1020 = 10025880;
      Gi_1024 = 3937500;
      Gi_1028 = 14876614;
      Gi_1032 = 16769734;
      Gi_1036 = 12303359;
   }
}

// AA3AE3A50846CE065160114647E8E750
void f0_18() {
   G_bool_700 = MARKET_ORDER_CALCULATOR;
   G_bool_704 = PENDING_ORDER_CALCULATOR;
   Gs_708 = Pair;
   Gd_716 = Entry_Price;
   Gd_724 = Trade_Risk_Percent;
   Gs_732 = StopLoss_Distance;
   Gs_740 = TakeProfit_Distance;
   Gs_748 = TakeProfit_Distance2;
   Gs_756 = Stop_Loss_Distance;
   Gs_764 = Take_Profit_Distance;
   Gs_772 = Stoploss_Distance;
   Gs_780 = Takeprofit_Distance;
   Gs_788 = Takeprofit_Distance2;
   Gs_796 = Stoploss_Distance_;
   Gs_804 = Stoploss_Distance_;
   Gs_812 = Stoploss_Distance_;
   Gs_820 = TSL_Steps;
   Gs_844 = StopLoss_Distance_;
   Gs_852 = TakeProfit_Distance_;
   Gs_860 = TakeProfit_Distance2_;
   Gs_868 = StopLoss__Distance_;
   Gs_876 = TakeProfit__Distance_;
   Gs_884 = TakeProfit__Distance2_;
   Gi_952 = _Signal_Filter;
   Gi_956 = SignalFilter;
   Gi_960 = Signal_Filter;
   G_bool_892 = Price_Fluctuations;
   Gi_896 = PaintCount;
   Gi_900 = BarCount;
   G_bool_904 = Alert_Window;
   G_bool_908 = Alert_Sound;
   Gi_912 = Gi_568;
   G_bool_916 = Multi_Timeframe_Trends;
   G_bool_920 = Showing_Strategies;
   G_bool_924 = Logo;
   G_bool_928 = SwingL1_Strategy;
   G_bool_932 = SwingL2_Strategy;
   G_bool_936 = Breakout_Strategy;
   G_bool_940 = Trend_Strategy;
   G_bool_944 = Dynamic_Strategy;
   G_bool_948 = Complex_Strategy;
   Gs_972 = Price_Fluctuation_Periods;
   G_bool_980 = White_Background;
}

// 37E0CCF864ECB85BD531788C844894E4
void f0_2(string As_0, string As_8) {
   e_DrawLabel(As_0, As_8 + "1", "Authorization .....", 20, 30, G_color_1000, "Tahoma Narrow", 32, 1);
   e_DrawLabel(As_0, As_8 + "2", "Licensed only for: " + i_GetName(0), 20, 80, G_color_992, "Tahoma Narrow", 20, 3);
   e_DrawLabel(As_0, As_8 + "3", "(" + i_GetName(1) + ")", 20, 40, G_color_992, "Tahoma Narrow", 20, 3);
   e_DrawLabel(As_0, As_8 + "4", "Resale and sharing of this product is strictly prohibited", 20, 0, G_color_1008, "Tahoma Narrow", 12, 3);
   if (G_bool_924) e_DrawLabel(As_0, As_8 + "5", "©  W W W . F X P R E I S L E V E L S . C O M", 0, 15, Gi_1012, "Arial", 9, 0);
}

// 8325809BC4A6E4AC6294F0CFC5FA22B3
void f0_13(string As_0, string As_8) {
   e_DrawLabel(As_0, As_8 + "1", " ", 20, 30, G_color_1000, "Tahoma Narrow", 32, 1);
   e_DrawLabel(As_0, As_8 + "2", " ", 20, 80, G_color_992, "Tahoma Narrow", 20, 3);
   e_DrawLabel(As_0, As_8 + "3", " ", 20, 40, G_color_992, "Tahoma Narrow", 20, 3);
   e_DrawLabel(As_0, As_8 + "4", " ", 20, 0, G_color_1008, "Tahoma Narrow", 12, 3);
}

// 7038CEFC24BD85E6D3162F93184DA62B
void f0_10(string As_0, string As_8) {
   e_ObjXCrIfNF(As_0, As_8 + "1", 22, 0, 0, Time[0], 14, 6, G_color_1016);
   e_ObjXCrIfNF(As_0, As_8 + "2", 22, 0, 0, Time[0], 14, 6, G_color_1016);
   e_ObjXCrIfNF(As_0, As_8 + "3", 22, 0, 0, Time[0], 14, 6, G_color_1016);
   e_ObjXCrIfNF(As_0, As_8 + "4", 22, 0, 0, Time[0], 14, 6, G_color_1016);
   ObjectMove(As_0 + As_8 + "1", 0, Time[0], G_ibuf_612[0]);
   ObjectMove(As_0 + As_8 + "2", 0, Time[0], G_ibuf_616[0]);
   ObjectMove(As_0 + As_8 + "3", 0, Time[0], G_ibuf_620[0]);
   ObjectMove(As_0 + As_8 + "4", 0, Time[0], G_ibuf_624[0]);
}

// 6B5762A5091517F92E582FD281BEE0A8
string f0_9(string As_0, string As_8, string As_16) {
   string Ls_unused_24;
   string Ls_unused_32;
   string Ls_unused_40;
   string Ls_unused_48;
   As_0 = e_StringL(As_0);
   if (As_0 == "s") Gd_716 = Bid;
   else
      if (As_0 == "b") Gd_716 = Ask;
   As_8 = e_StringL(As_8);
   if (e_StrToDbl(As_8, "a") > 0.0) {
      if (As_0 == "s") Stop_Loss = Gd_716 + Gd_716 * e_StrToDbl(As_8, "a") / Gi_656;
      else
         if (As_0 == "b") Stop_Loss = Gd_716 - Gd_716 * e_StrToDbl(As_8, "a") / Gi_656;
   } else
      if (e_StrToDbl(As_8, "") > 0.0) Stop_Loss = StrToDouble(As_8);
   As_16 = e_StringL(As_16);
   if (e_StrToDbl(As_16, "a") > 0.0) {
      if (As_0 == "s") Take_Profit = Gd_716 - Gd_716 * e_StrToDbl(As_16, "a") / Gi_656;
      else
         if (As_0 == "b") Take_Profit = Gd_716 + Gd_716 * e_StrToDbl(As_16, "a") / Gi_656;
   } else
      if (e_StrToDbl(As_16, "") > 0.0) Take_Profit = StrToDouble(As_16);
   return (Symbol());
}

// E37F0136AA3FFAF149B351F6A4C948E9
int init() {
   e_ClearObj("FXPL1_");
   f0_18();
   f0_5(G_bool_980);
   f0_2("FXPL1_", "AUTRS0");
   IndicatorBuffers(7);
   SetIndexStyle(0, DRAW_LINE, STYLE_SOLID, 2, G_color_1016);
   SetIndexStyle(1, DRAW_LINE, STYLE_SOLID, 2, G_color_1016);
   SetIndexStyle(2, DRAW_LINE, STYLE_DOT, 1, G_color_1016);
   SetIndexStyle(3, DRAW_LINE, STYLE_DOT, 1, G_color_1016);
   SetIndexStyle(4, DRAW_LINE, STYLE_DOT, 1, G_color_1016);
   SetIndexStyle(5, DRAW_LINE, STYLE_DOT, 1, G_color_1016);
   SetIndexBuffer(0, G_ibuf_612);
   SetIndexBuffer(1, G_ibuf_616);
   SetIndexBuffer(2, G_ibuf_620);
   SetIndexBuffer(3, G_ibuf_624);
   SetIndexBuffer(4, G_ibuf_628);
   SetIndexBuffer(5, G_ibuf_632);
   SetIndexBuffer(6, G_ibuf_636);
   IndicatorShortName("FX Preis Levels");
   IndicatorDigits(Digits);
   return (0);
}

// 52D46093050F38C27267BCE42543EF60
int deinit() {
   e_ClearObj("FXPL1_");
   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_52;
   int Li_0 = 5;
   bool Li_60 = FALSE;
   for (int Li_64 = 1000; Li_64 >= 0; Li_64--) {
      G_acc_number_696 = 60759099;
      if (Gi_652 < 1) Gi_652 = i_Count(G_acc_number_696);
      if (Gi_672 < 1) Gi_672 = i_Count2(G_acc_number_696);
      if (Gi_648 == -100) Gi_648 = e_Acc(Gi_652, i_Fun5(1), i_Fun5(2), i_Fun5(3));
      if (Gi_656 < 1) Gi_656 = i_Fun1(Gi_672, Gi_648);
      if (Gi_664 < 1) Gi_664 = i_Fun3(Gi_652, Gi_648);
      if (Gi_680 == -100) Gi_680 = i_GetTF(Period());
      if (Gi_684 == 0) Gi_684 = i_Digit(Digits);
      if (Gd_688 == 0.0) Gd_688 = i_Point(Point);
      Gi_676 = 4 * Periods;
      if (Gi_652 < 1 || Gi_672 < 1 || Gi_648 == -100 || Gi_656 < 1 || Gi_664 < 1 || Gi_676 == -100 || Gi_680 == -100 || Gd_688 == 0.0) {
         RefreshRates();
         WindowRedraw();
      } else {
         Li_60 = TRUE;
         break;
      }
   }
   G_ind_counted_640 = IndicatorCounted();
   if (Li_60) {
      f0_13("FXPL1_", "AUTRS0");
      f0_4(Gi_900);
      f0_3("FXPL1_", "LEVELS", Gi_896, Gi_1028, Gi_1036, Gi_1032);
      f0_10("FXPL1_", "RGPRS0");
      if (G_bool_928) Ls_4 = f0_16("FXPL1_", "SWING1", 3000, Gs_732, Gs_740, Gs_748, "");
      if (G_bool_932) Ls_12 = f0_8("FXPL1_", "SWING2", 3000, Gs_756, Gs_764, "", "");
      if (G_bool_936) Ls_20 = f0_19("FXPL1_", "BREAKT", 3000, Gs_772, Gs_780, Gs_788, "");
      if (G_bool_940) Ls_28 = f0_12("FXPL1_", "TRENDT", 3000, Gs_796, Gs_804, Gs_828, Gs_836);
      if (G_bool_944) Ls_36 = f0_20("FXPL1_", "VT1TRD", 3000, Gs_844, Gs_852, Gs_860, "");
      if (G_bool_948) Ls_44 = f0_15("FXPL1_", "VT2TRD", 3000, Gs_868, Gs_876, Gs_884, "");
      if (G_bool_920) {
         Li_0 = f0_6("FXPL1_", "STRTB0", Li_0, "Trend", "Dynamic", "Complex", "Breakout", "Swing L1", "Swing L2", G_bool_940, G_bool_944, G_bool_948, G_bool_936, G_bool_928,
            G_bool_932);
      }
      if (Ask_Bid) Li_0 = f0_7("FXPL1_", "ASKBID", Li_0);
      if (G_bool_916) Li_0 = f0_0("FXPL1_", "MTFIND", Li_0);
      if (G_bool_700) Ls_52 = f0_9(Market_Order_Type, Market_Order_StopLoss, Market_Order_TakeProfit);
      else Ls_52 = Gs_708;
      if (G_bool_700 || G_bool_704) Li_0 = f0_1("FXPL1_", "TRDRHN", Li_0, G_bool_700, Gd_716, Stop_Loss, Take_Profit, Ls_52);
      if ((!G_bool_700) && !G_bool_704) Li_0 = f0_11("FXPL1_", "TRDRHN", Li_0, Ls_4, Ls_12, Ls_20, Ls_28, Ls_36, Ls_44, Symbol());
      if (G_bool_892) Li_0 = f0_14("FXPL1_", "KRSCHW", Li_0, Gi_680);
      Gi_644 = TRUE;
   }
   return (0);
}

// 4202E3883AB2935583A067519005624E
void f0_4(int Ai_0) {
   int Lia_20[];
   if (Bars - G_ind_counted_640 < Ai_0 && Gi_644 == TRUE) Ai_0 = Bars - G_ind_counted_640;
   e_GetLV(Period(), ",", Lia_20, M1, M5, M15, M30, H1, H4, D1, W1, MN);
   int Li_4 = Lia_20[0];
   int Li_8 = Lia_20[1];
   int Li_12 = Lia_20[2];
   for (int Li_16 = Ai_0; Li_16 >= 0; Li_16--) {
      G_ibuf_612[Li_16] = iCustom(Symbol(), Period(), "FXPREISLEVELS_V40", Gi_676, Li_12, Gi_900, 0, 0, Li_16);
      G_ibuf_616[Li_16] = iCustom(Symbol(), Period(), "FXPREISLEVELS_V40", Gi_676, Li_12, Gi_900, 0, 1, Li_16);
      G_ibuf_636[Li_16] = iCustom(Symbol(), Period(), "FXPREISLEVELS_V40", Gi_676, Li_12, Gi_900, 0, 2, Li_16);
      G_ibuf_620[Li_16] = G_ibuf_620[Li_16 + 1];
      G_ibuf_624[Li_16] = G_ibuf_624[Li_16 + 1];
      G_ibuf_628[Li_16] = G_ibuf_628[Li_16 + 1];
      if (G_ibuf_636[Li_16] > 0.0) {
         G_ibuf_620[Li_16] = i_GetLev(G_ibuf_612[Li_16], -Li_4, Gi_656);
         G_ibuf_624[Li_16] = i_GetLev(G_ibuf_612[Li_16], -Li_8, Gi_656);
         G_ibuf_628[Li_16] = i_GetLev(G_ibuf_612[Li_16], -Li_12, Gi_656);
         if (G_ibuf_628[Li_16] < G_ibuf_616[Li_16]) G_ibuf_628[Li_16] = G_ibuf_616[Li_16];
         G_ibuf_632[Li_16] = EMPTY_VALUE;
      } else {
         if (G_ibuf_636[Li_16] == 0.0) {
            G_ibuf_624[Li_16] = i_GetLev(G_ibuf_616[Li_16], Li_4, Gi_656);
            G_ibuf_620[Li_16] = i_GetLev(G_ibuf_616[Li_16], Li_8, Gi_656);
            G_ibuf_632[Li_16] = i_GetLev(G_ibuf_616[Li_16], Li_12, Gi_656);
            if (G_ibuf_632[Li_16] > G_ibuf_612[Li_16]) G_ibuf_632[Li_16] = G_ibuf_612[Li_16];
            G_ibuf_628[Li_16] = EMPTY_VALUE;
         }
      }
   }
}

// 3D7F76A66D3D0CA1189A2F59226D3A8A
void f0_3(string As_0, string As_8, int Ai_16, int Ai_20, int Ai_24, int Ai_28) {
   if (Bars - G_ind_counted_640 < Ai_16 && Gi_644 == TRUE) Ai_16 = Bars - G_ind_counted_640;
   for (int Li_32 = Ai_16; Li_32 >= 0; Li_32--) {
      if (G_ibuf_636[Li_32] > 0.0) {
         e_DrawTriangle(As_0, As_8, Ai_20, Ai_24, Ai_28, 1, Li_32 + 1, Li_32, Li_32 + 1, G_ibuf_612[Li_32 + 1], G_ibuf_612[Li_32], G_ibuf_620[Li_32 + 1], 1);
         e_DrawTriangle(As_0, As_8, Ai_20, Ai_24, Ai_28, 2, Li_32 + 1, Li_32, Li_32, G_ibuf_620[Li_32 + 1], G_ibuf_620[Li_32], G_ibuf_612[Li_32], 1);
         e_DrawTriangle(As_0, As_8, Ai_20, Ai_24, Ai_28, 1, Li_32 + 1, Li_32, Li_32, G_ibuf_624[Li_32 + 1], G_ibuf_624[Li_32], G_ibuf_620[Li_32], 0);
         e_DrawTriangle(As_0, As_8, Ai_20, Ai_24, Ai_28, 2, Li_32 + 1, Li_32 + 1, Li_32, G_ibuf_620[Li_32 + 1], G_ibuf_624[Li_32 + 1], G_ibuf_620[Li_32], 0);
      } else {
         if (G_ibuf_636[Li_32] == 0.0) {
            e_DrawTriangle(As_0, As_8, Ai_20, Ai_24, Ai_28, 1, Li_32 + 1, Li_32, Li_32 + 1, G_ibuf_616[Li_32 + 1], G_ibuf_616[Li_32], G_ibuf_624[Li_32 + 1], -1);
            e_DrawTriangle(As_0, As_8, Ai_20, Ai_24, Ai_28, 2, Li_32 + 1, Li_32, Li_32, G_ibuf_624[Li_32 + 1], G_ibuf_624[Li_32], G_ibuf_616[Li_32], -1);
            e_DrawTriangle(As_0, As_8, Ai_20, Ai_24, Ai_28, 1, Li_32 + 1, Li_32, Li_32, G_ibuf_624[Li_32 + 1], G_ibuf_624[Li_32], G_ibuf_620[Li_32], 0);
            e_DrawTriangle(As_0, As_8, Ai_20, Ai_24, Ai_28, 2, Li_32 + 1, Li_32 + 1, Li_32, G_ibuf_620[Li_32 + 1], G_ibuf_624[Li_32 + 1], G_ibuf_620[Li_32], 0);
         }
      }
   }
}

// A9F91B8287C9CA9443D4DD8543B8A624
string f0_17(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 Ls_ret_132 = "";
   int Li_188 = NormalizeDouble(e_StrToDbl(As_60, As_92), 0);
   int Li_192 = NormalizeDouble(e_StrToDbl(As_68, As_92), 0);
   int Li_196 = NormalizeDouble(e_StrToDbl(As_76, As_92), 0);
   int Li_200 = NormalizeDouble(e_StrToDbl(As_84, As_92), 0);
   if (Ai_56 == 1) {
      Ld_140 = i_PercentDeviation(Ad_36, Ad_44, -Li_188);
      Ld_148 = i_PercentDeviation(Ad_36, Ad_44, Li_192);
      Ld_156 = i_PercentDeviation(Ad_36, Ad_44, Li_196);
      Ld_164 = i_PercentDeviation(Ad_36, Ad_44, Li_200);
      Li_172 = 0;
      color_176 = G_color_984;
      Ls_180 = "Long";
   } else {
      Ld_140 = i_PercentDeviation(Ad_36, Ad_44, Li_188);
      Ld_148 = i_PercentDeviation(Ad_36, Ad_44, -Li_192);
      Ld_156 = i_PercentDeviation(Ad_36, Ad_44, -Li_196);
      Ld_164 = i_PercentDeviation(Ad_36, Ad_44, -Li_200);
      Li_172 = 180;
      color_176 = G_color_992;
      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, 14, color_176, G_color_992, G_color_984, As_100, As_108, As_116, As_124)) {
      if (Ld_140 == Ad_36) Ld_140 = 0;
      if (Ld_148 == Ad_36) Ld_148 = 0;
      if (Ld_156 == Ad_36) Ld_156 = 0;
      if (Ld_164 == Ad_36) Ld_164 = 0;
      if (Ai_52 == Time[0] && G_bool_908 && (!G_bool_904)) PlaySound("alert.wav");
      else
         if (Ai_52 == Time[0] && G_bool_904) Alert(As_16 + ": " + Symbol() + " (", i_PeriodT(Period(), "M1", "M5", "M15", "M30", "H1", "H4", "D1", "W1", "MN"), ") ", Ls_180, " ", Ad_36, ", ", TimeToStr(Ai_52));
      if (Ai_52 == Time[0] && Gi_912) {
         SendMail("FX Preis Levels Alert " + Ls_180 + " (" + TimeToStr(Ai_52) + ")", As_16 + ": " + Symbol() + " (" + i_PeriodT(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);
}

// C2247DACB244D4986EB76224E9EDE142
string f0_21(string As_0, string As_8, int Ai_16, string As_20, double Ad_28, int Ai_36, int Ai_40) {
   int Li_44;
   int Li_48;
   int Li_52;
   double Lda_68[];
   double Ld_56 = 90;
   e_StrExplDbl(As_20, ",", Lda_68);
   double Ld_72 = Lda_68[0];
   double Ld_unused_80 = Lda_68[1];
   double Ld_88 = Lda_68[2];
   double Ld_96 = Lda_68[3];
   double Ld_unused_104 = Lda_68[4];
   double Ld_unused_112 = Lda_68[5];
   double Ld_120 = Lda_68[6];
   double Ld_128 = Lda_68[7];
   double Ld_136 = Lda_68[8];
   int Li_64 = NormalizeDouble(Ld_72, 0);
   if (Ld_88 < Ld_96) {
      Li_44 = 1;
      Li_48 = 159;
      Li_52 = 65280;
   } else {
      if (Ld_88 > Ld_96) {
         Li_44 = -1;
         Li_48 = 159;
         Li_52 = 255;
      } else {
         ObjectDelete(As_0 + As_8 + "SLCLOSR");
         ObjectDelete(As_0 + As_8 + "SLCLOSR_1");
         return ("");
      }
   }
   if (Li_64 < Time[Ai_16] && (Li_44 == 1 && Low[Ai_16] < Ld_128) || (Li_44 == -1 && High[Ai_16] > Ld_128)) {
      ObjectDelete(As_0 + As_8 + "SLCLOSR");
      ObjectDelete(As_0 + As_8 + "SLCLOSR_1");
      return ("");
   }
   if (i_TrailingStop(Li_44, High[Ai_16 + 1], Ld_136, Li_64, Time[Ai_16], Ld_120, i_PercentDeviation(Ld_136, Ad_28, Ai_36 - Ai_40)) && Li_64 < Time[Ai_16]) {
      Ld_128 = Ld_120;
      As_20 = Time[Ai_16] + "," + Lda_68[1] + "," + Lda_68[2] + "," + Lda_68[3] + "," + Lda_68[4] + "," + Lda_68[5] + "," + i_PercentDeviation(Ld_136, Ad_28, Ai_36 - Ai_40) + "," + Ld_128 + "," + i_PercentDeviation(Ld_136,
         Ad_28, Ai_36);
   } else {
      if (i_TrailingStop(Li_44, Low[Ai_16 + 1], Ld_136, Li_64, Time[Ai_16], Ld_120, i_PercentDeviation(Ld_136, Ad_28, Ai_40 - Ai_36)) && Li_64 < Time[Ai_16]) {
         Ld_128 = Ld_120;
         As_20 = Time[Ai_16] + "," + Lda_68[1] + "," + Lda_68[2] + "," + Lda_68[3] + "," + Lda_68[4] + "," + Lda_68[5] + "," + i_PercentDeviation(Ld_136, Ad_28, Ai_40 - Ai_36) + "," + Ld_128 + "," + i_PercentDeviation(Ld_136,
            Ad_28, -Ai_36);
      }
   }
   if (Ld_128 > 0.0 && Ld_128 != Ld_88 || iBarShift(Symbol(), Period(), Li_64) - iBarShift(Symbol(), Period(), Time[Ai_16]) > 10 && Time[Ai_16] >= Li_64) {
      e_DrawArrow(As_0, As_8 + "SLPOINT", Li_48, Ld_56, Ai_16 + 1, Ld_128, Li_52, 14, 0, "Wingdings");
      if (Ai_16 == 0) e_DrawArr(As_0, As_8 + "SLCLOSR", "TSL  ", Ai_16 - 10, Ld_128, Li_52, 2, 6);
   }
   return (As_20);
}

// A7945C6C6B32938391BAF8696F834595
string f0_16(string As_0, string As_8, int Ai_16, string As_20 = "", string As_28 = "", string As_36 = "", string As_44 = "") {
   string Ls_56;
   if (Bars - G_ind_counted_640 < Ai_16 && Gi_644 == TRUE) Ai_16 = Bars - G_ind_counted_640;
   for (int Li_52 = Ai_16; Li_52 >= 0; Li_52--) {
      if (i_SwingTrader(1, G_ibuf_636[Li_52], G_ibuf_636[Li_52 + 1], NormalizeDouble(High[Li_52], Gi_684), NormalizeDouble(Low[Li_52], Gi_684), NormalizeDouble(G_ibuf_612[Li_52],
         Gi_684), NormalizeDouble(G_ibuf_620[Li_52 + 1], Gi_684), NormalizeDouble(Gd_1040, Gi_684))) {
         Ls_56 = f0_17(As_0, As_8, "Swing L1", "Swing Trader 1 ", Li_52, G_ibuf_620[Li_52], G_ibuf_612[Li_52 + 1] - G_ibuf_620[Li_52], Time[Li_52], 1, As_20, As_28, As_36,
            As_44, "p");
         Gd_1040 = G_ibuf_620[Li_52];
      } else {
         if (i_SwingTrader(-1, G_ibuf_636[Li_52], G_ibuf_636[Li_52 + 1], NormalizeDouble(High[Li_52], Gi_684), NormalizeDouble(Low[Li_52], Gi_684), NormalizeDouble(G_ibuf_616[Li_52],
            Gi_684), NormalizeDouble(G_ibuf_624[Li_52 + 1], Gi_684), NormalizeDouble(Gd_1040, Gi_684))) {
            Ls_56 = f0_17(As_0, As_8, "Swing L1", "Swing Trader 1 ", Li_52, G_ibuf_624[Li_52], G_ibuf_624[Li_52] - (G_ibuf_616[Li_52 + 1]), Time[Li_52], -1, As_20, As_28, As_36,
               As_44, "p");
            Gd_1040 = G_ibuf_624[Li_52];
         }
      }
      if (Ls_56 != "") Gs_1048 = Ls_56;
   }
   return (Gs_1048);
}

// 69232FD436CBFEE607594D46C0FC55A3
string f0_8(string As_0, string As_8, int Ai_16, string As_20 = "", string As_28 = "", string As_36 = "", string As_44 = "") {
   string Ls_56;
   if (Bars - G_ind_counted_640 < Ai_16 && Gi_644 == TRUE) Ai_16 = Bars - G_ind_counted_640;
   for (int Li_52 = Ai_16; Li_52 >= 0; Li_52--) {
      if (i_SwingTrader(1, G_ibuf_636[Li_52], G_ibuf_636[Li_52 + 1], NormalizeDouble(High[Li_52], Gi_684), NormalizeDouble(Low[Li_52], Gi_684), NormalizeDouble(G_ibuf_612[Li_52],
         Gi_684), NormalizeDouble(G_ibuf_624[Li_52 + 1], Gi_684), NormalizeDouble(Gd_1056, Gi_684))) {
         Ls_56 = f0_17(As_0, As_8, "Swing L2", "Swing Trader 2 ", Li_52, G_ibuf_624[Li_52], G_ibuf_612[Li_52 + 1] - G_ibuf_624[Li_52], Time[Li_52], 1, As_20, As_28, As_36,
            As_44, "p");
         Gd_1056 = G_ibuf_624[Li_52];
      } else {
         if (i_SwingTrader(-1, G_ibuf_636[Li_52], G_ibuf_636[Li_52 + 1], NormalizeDouble(High[Li_52], Gi_684), NormalizeDouble(Low[Li_52], Gi_684), NormalizeDouble(G_ibuf_616[Li_52],
            Gi_684), NormalizeDouble(G_ibuf_620[Li_52 + 1], Gi_684), NormalizeDouble(Gd_1056, Gi_684))) {
            Ls_56 = f0_17(As_0, As_8, "Swing L2", "Swing Trader 2 ", Li_52, G_ibuf_620[Li_52], G_ibuf_620[Li_52] - (G_ibuf_616[Li_52 + 1]), Time[Li_52], -1, As_20, As_28, As_36,
               As_44, "p");
            Gd_1056 = G_ibuf_620[Li_52];
         }
      }
      if (Ls_56 != "") Gs_1064 = Ls_56;
   }
   return (Gs_1064);
}

// B14D5D7CCFAA2BF739A832FAFBE9858C
string f0_19(string As_0, string As_8, int Ai_16, string As_20 = "", string As_28 = "", string As_36 = "", string As_44 = "") {
   string Ls_56;
   if (Bars - G_ind_counted_640 < Ai_16 && Gi_644 == TRUE) Ai_16 = Bars - G_ind_counted_640;
   for (int Li_52 = Ai_16; Li_52 >= 0; Li_52--) {
      if (i_BreakoutTrader(1, G_ibuf_636[Li_52], G_ibuf_636[Li_52 + 1])) {
         Ls_56 = f0_17(As_0, As_8, "Breakout", "Breakout Trader", Li_52, G_ibuf_612[Li_52 + 1], G_ibuf_612[Li_52 + 1] - (G_ibuf_616[Li_52 + 1]), Time[Li_52], 1, As_20, As_28,
            As_36, As_44, "p");
      } else {
         if (i_BreakoutTrader(-1, G_ibuf_636[Li_52], G_ibuf_636[Li_52 + 1])) {
            Ls_56 = f0_17(As_0, As_8, "Breakout", "Breakout Trader", Li_52, G_ibuf_616[Li_52 + 1], G_ibuf_612[Li_52 + 1] - (G_ibuf_616[Li_52 + 1]), Time[Li_52], -1, As_20, As_28,
               As_36, As_44, "p");
         }
      }
      if (Ls_56 != "") Gs_1072 = Ls_56;
   }
   return (Gs_1072);
}

// 7E0608B9A83B7FBAA00A2CD756F08379
string f0_12(string As_0, string As_8, int Ai_16, string As_20 = "", string As_28 = "", string As_36 = "", string As_44 = "") {
   string Ls_56;
   int Li_64;
   int Lia_68[];
   double icustom_92;
   double icustom_100;
   double icustom_108;
   double icustom_116;
   e_GetLV(Period(), ",", Lia_68, M1, M5, M15, M30, H1, H4, D1, W1, MN);
   int Li_72 = Lia_68[2];
   int Li_76 = i_GetSF2(0, Period(), M1_, M5_, M15_, M30_, H1_, H4_, D1_, W1_, MN_);
   int Li_80 = NormalizeDouble(Li_72 / Li_76, 0);
   int Li_84 = NormalizeDouble(e_StrToDbl(Gs_820, "d"), 0);
   int Li_88 = NormalizeDouble(e_StrToDbl(Gs_812, "d"), 0);
   if (Bars - G_ind_counted_640 < Ai_16 && Gi_644 == TRUE) Ai_16 = Bars - G_ind_counted_640;
   for (int Li_52 = Ai_16; Li_52 >= 0; Li_52--) {
      icustom_92 = iCustom(Symbol(), Period(), "FXPREISLEVELS_V40", 0, 0, Gi_900, Li_80, 3, Li_52 + 1);
      icustom_100 = iCustom(Symbol(), Period(), "FXPREISLEVELS_V40", 0, 0, Gi_900, Li_80, 4, Li_52 + 1);
      icustom_108 = iCustom(Symbol(), Period(), "FXPREISLEVELS_V40", 0, 0, Gi_900, Li_80, 5, Li_52 + 1);
      icustom_116 = iCustom(Symbol(), Period(), "FXPREISLEVELS_V40", 0, 0, Gi_900, Li_72, 5, Li_52 + 1);
      Gd_1080 = i_BrCandle(icustom_108, High[Li_52 + 1], Low[Li_52 + 1]);
      if (G_icustom_1096 == icustom_92 && G_icustom_1104 == icustom_100) Li_64 = 1;
      else Li_64 = -1;
      if (i_VTrader(icustom_108, 1, Low[Li_52 + 1], icustom_100, High[Li_52 + 1], icustom_92, icustom_116, 0, Open[Li_52], Gd_1080, Li_64, iBarShift(Symbol(), Period(),
         Gi_1112), iBarShift(Symbol(), Period(), Time[Li_52]), Gi_952) && Gs_1088 == "") {
         e_DrawZone(As_0, As_8 + "LN", "Buy Zone", Li_52, Gd_1080, Gi_1020, 2, 71);
         if (Time[Li_52] == Time[0] && G_bool_908 || G_bool_904 && NormalizeDouble(Gd_1116, Gi_684) != NormalizeDouble(Gd_1080, Gi_684)) PlaySound("alert2.wav");
         if (Time[Li_52] == Time[0]) Gd_1116 = Gd_1080;
         if (High[Li_52] > Gd_1080) {
            Ls_56 = f0_17(As_0, As_8, "Trend", "Trend               ", Li_52, Gd_1080, MathAbs(icustom_92 - icustom_100), Time[Li_52], 1, As_20, As_28, As_36, As_44, "d", "SL  ",
               "DRAWNONE");
            G_icustom_1096 = icustom_92;
            G_icustom_1104 = icustom_100;
            Gi_1112 = Time[Li_52];
            ObjectDelete(As_0 + As_8 + "LN");
         }
      } else {
         if (i_VTrader(icustom_108, -1, Low[Li_52 + 1], icustom_100, High[Li_52 + 1], icustom_92, icustom_116, 0, Open[Li_52], Gd_1080, Li_64, iBarShift(Symbol(), Period(),
            Gi_1112), iBarShift(Symbol(), Period(), Time[Li_52]), Gi_952) && Gs_1088 == "") {
            e_DrawZone(As_0, As_8 + "LN", "Sell Zone", Li_52, Gd_1080, Gi_1024, 2, 72);
            if (Time[Li_52] == Time[0] && G_bool_908 || G_bool_904 && NormalizeDouble(Gd_1116, Gi_684) != NormalizeDouble(Gd_1080, Gi_684)) PlaySound("alert2.wav");
            if (Time[Li_52] == Time[0]) Gd_1116 = Gd_1080;
            if (Low[Li_52] < Gd_1080) {
               Ls_56 = f0_17(As_0, As_8, "Trend", "Trend               ", Li_52, Gd_1080, MathAbs(icustom_92 - icustom_100), Time[Li_52], -1, As_20, As_28, As_36, As_44, "d", "SL  ",
                  "DRAWNONE");
               G_icustom_1096 = icustom_92;
               G_icustom_1104 = icustom_100;
               Gi_1112 = Time[Li_52];
               ObjectDelete(As_0 + As_8 + "LN");
            }
         } else ObjectDelete(As_0 + As_8 + "LN");
      }
      if (Ls_56 != "") Gs_1088 = Ls_56;
      Ls_56 = f0_21(As_0, As_8, Li_52, Gs_1088, MathAbs(icustom_92 - icustom_100), Li_84, Li_88);
      if (Ls_56 == "" && Gs_1088 != "") Gi_1112 = Time[Li_52];
      Gs_1088 = Ls_56;
   }
   return (Gs_1088);
}

// BEBFBFE95B91D773851EC395966950B0
string f0_20(string As_0, string As_8, int Ai_16, string As_20 = "", string As_28 = "", string As_36 = "", string As_44 = "") {
   string Ls_56;
   double Ld_64;
   int Li_72;
   int Lia_76[];
   double icustom_100;
   double icustom_108;
   double icustom_116;
   double icustom_124;
   e_GetLV(Period(), ",", Lia_76, M1, M5, M15, M30, H1, H4, D1, W1, MN);
   int Li_80 = Lia_76[2];
   int Li_84 = i_GetSF2(0, Period(), M1__, M5__, M15__, M30__, H1__, H4__, D1__, W1__, MN__);
   int Li_88 = NormalizeDouble(Li_80 / Li_84, 0);
   double Ld_92 = Li_88 * Gi_404 / 100;
   if (Bars - G_ind_counted_640 < Ai_16 && Gi_644 == TRUE) Ai_16 = Bars - G_ind_counted_640;
   for (int Li_52 = Ai_16; Li_52 >= 0; Li_52--) {
      icustom_100 = iCustom(Symbol(), Period(), "FXPREISLEVELS_V40", 0, 0, Gi_900, Li_88, 3, Li_52 + 1);
      icustom_108 = iCustom(Symbol(), Period(), "FXPREISLEVELS_V40", 0, 0, Gi_900, Li_88, 4, Li_52 + 1);
      icustom_116 = iCustom(Symbol(), Period(), "FXPREISLEVELS_V40", 0, 0, Gi_900, Li_88, 5, Li_52 + 1);
      icustom_124 = iCustom(Symbol(), Period(), "FXPREISLEVELS_V40", 0, 0, Gi_900, Li_80, 5, Li_52 + 1);
      if (icustom_116 > 0.0) Ld_64 = i_GetLev(icustom_100, -Ld_92, Gi_656);
      else
         if (icustom_116 < 0.0) Ld_64 = i_GetLev(icustom_108, Ld_92, Gi_656);
      if (G_icustom_1136 == icustom_100 && G_icustom_1144 == icustom_108) Li_72 = 1;
      else Li_72 = -1;
      if (i_VTrader(icustom_116, 1, Low[Li_52 + 1], icustom_108, High[Li_52 + 1], icustom_100, icustom_124, 0, Open[Li_52], Ld_64, Li_72, iBarShift(Symbol(), Period(),
         Gi_1132), iBarShift(Symbol(), Period(), Time[Li_52]), Gi_956)) {
         e_DrawZone(As_0, As_8 + "LN", "Buy Zone", Li_52, Ld_64, Gi_1020, 2, 71);
         if (Time[Li_52] == Time[0] && G_bool_908 || G_bool_904 && NormalizeDouble(Gd_1152, Gi_684) != NormalizeDouble(Ld_64, Gi_684)) PlaySound("alert2.wav");
         if (Time[Li_52] == Time[0]) Gd_1152 = Ld_64;
         if (High[Li_52] > Ld_64) {
            Ls_56 = f0_17(As_0, As_8, "Dynamic", "Dynamic          ", Li_52, Ld_64, MathAbs(icustom_100 - icustom_108), Time[Li_52], 1, As_20, As_28, As_36, As_44, "d");
            G_icustom_1136 = icustom_100;
            G_icustom_1144 = icustom_108;
            ObjectDelete(As_0 + As_8 + "LN");
            Gi_1132 = Time[Li_52];
         }
      } else {
         if (i_VTrader(icustom_116, -1, Low[Li_52 + 1], icustom_108, High[Li_52 + 1], icustom_100, icustom_124, 0, Open[Li_52], Ld_64, Li_72, iBarShift(Symbol(), Period(),
            Gi_1132), iBarShift(Symbol(), Period(), Time[Li_52]), Gi_956)) {
            e_DrawZone(As_0, As_8 + "LN", "Sell Zone", Li_52, Ld_64, Gi_1024, 2, 72);
            if (Time[Li_52] == Time[0] && G_bool_908 || G_bool_904 && NormalizeDouble(Gd_1152, Gi_684) != NormalizeDouble(Ld_64, Gi_684)) PlaySound("alert2.wav");
            if (Time[Li_52] == Time[0]) Gd_1152 = Ld_64;
            if (Low[Li_52] < Ld_64) {
               Ls_56 = f0_17(As_0, As_8, "Dynamic", "Dynamic          ", Li_52, Ld_64, MathAbs(icustom_100 - icustom_108), Time[Li_52], -1, As_20, As_28, As_36, As_44, "d");
               G_icustom_1136 = icustom_100;
               G_icustom_1144 = icustom_108;
               ObjectDelete(As_0 + As_8 + "LN");
               Gi_1132 = Time[Li_52];
            }
         } else ObjectDelete(As_0 + As_8 + "LN");
      }
      if (Ls_56 != "") Gs_1124 = Ls_56;
   }
   return (Gs_1124);
}

// 915167769A54197251A5F29F4048F553
string f0_15(string As_0, string As_8, int Ai_16, string As_20 = "", string As_28 = "", string As_36 = "", string As_44 = "") {
   string Ls_56;
   double Ld_64;
   int Li_72;
   int Lia_80[];
   double ima_92;
   double icustom_100;
   double icustom_108;
   double icustom_116;
   int Li_unused_76 = 0;
   e_GetLV(Period(), ",", Lia_80, M1___, M5___, M15___, M30___, H1___, H4___, D1___, W1___, MN___);
   int period_84 = 3 * Lia_80[0];
   int Li_88 = 5 * Lia_80[1];
   if (Bars - G_ind_counted_640 < Ai_16 && Gi_644 == TRUE) Ai_16 = Bars - G_ind_counted_640;
   for (int Li_52 = Ai_16; Li_52 >= 0; Li_52--) {
      ima_92 = iMA(Symbol(), Period(), period_84, 0, MODE_EMA, PRICE_CLOSE, Li_52 + 1);
      icustom_100 = iCustom(Symbol(), Period(), "FXPREISLEVELS_V40", 0, 0, Gi_900, Li_88, 3, Li_52 + 1);
      icustom_108 = iCustom(Symbol(), Period(), "FXPREISLEVELS_V40", 0, 0, Gi_900, Li_88, 4, Li_52 + 1);
      icustom_116 = iCustom(Symbol(), Period(), "FXPREISLEVELS_V40", 0, 0, Gi_900, Li_88, 5, Li_52 + 1);
      Ld_64 = i_BrCandle(icustom_116, High[Li_52 + 1], Low[Li_52 + 1]);
      if (G_icustom_1172 == icustom_100 && G_icustom_1180 == icustom_108) Li_72 = 1;
      else Li_72 = -1;
      if (i_VTrader(icustom_116, 1, Low[Li_52 + 1], icustom_108, High[Li_52 + 1], icustom_100, Ld_64, ima_92, Open[Li_52], Ld_64, Li_72, iBarShift(Symbol(), Period(), Gi_1168),
         iBarShift(Symbol(), Period(), Time[Li_52]), Gi_960)) {
         e_DrawZone(As_0, As_8 + "LN", "Buy Zone", Li_52, Ld_64, Gi_1020, 2, 71);
         if (Time[Li_52] == Time[0] && G_bool_908 || G_bool_904 && NormalizeDouble(Gd_1188, Gi_684) != NormalizeDouble(Ld_64, Gi_684)) PlaySound("alert2.wav");
         if (Time[Li_52] == Time[0]) Gd_1188 = Ld_64;
         if (High[Li_52] > Ld_64) {
            Ls_56 = f0_17(As_0, As_8, "Complex", "Complex          ", Li_52, Ld_64, MathAbs(icustom_100 - icustom_108), Time[Li_52], 1, As_20, As_28, As_36, As_44, "d");
            G_icustom_1172 = icustom_100;
            G_icustom_1180 = icustom_108;
            Gi_1168 = Time[Li_52];
            ObjectDelete(As_0 + As_8 + "LN");
         }
      } else {
         if (i_VTrader(icustom_116, -1, Low[Li_52 + 1], icustom_108, High[Li_52 + 1], icustom_100, Ld_64, ima_92, Open[Li_52], Ld_64, Li_72, iBarShift(Symbol(), Period(),
            Gi_1168), iBarShift(Symbol(), Period(), Time[Li_52]), Gi_960)) {
            e_DrawZone(As_0, As_8 + "LN", "Sell Zone", Li_52, Ld_64, Gi_1024, 2, 72);
            if (Time[Li_52] == Time[0] && G_bool_908 || G_bool_904 && NormalizeDouble(Gd_1188, Gi_684) != NormalizeDouble(Ld_64, Gi_684)) PlaySound("alert2.wav");
            if (Time[Li_52] == Time[0]) Gd_1188 = Ld_64;
            if (Low[Li_52] < Ld_64) {
               Ls_56 = f0_17(As_0, As_8, "Complex", "Complex          ", Li_52, Ld_64, MathAbs(icustom_100 - icustom_108), Time[Li_52], -1, As_20, As_28, As_36, As_44, "d");
               G_icustom_1172 = icustom_100;
               G_icustom_1180 = icustom_108;
               Gi_1168 = Time[Li_52];
               ObjectDelete(As_0 + As_8 + "LN");
            }
         } else ObjectDelete(As_0 + As_8 + "LN");
      }
      if (Ls_56 != "") Gs_1160 = Ls_56;
   }
   return (Gs_1160);
}

// 66D295AE6B19EEB82FB6B917DCB7B4E4
int f0_6(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;
   int Li_100 = 254;
   int Li_104 = 253;
   for (int count_108 = 0; count_108 < 67; count_108++) e_DrawLabel(As_0, As_8 + "_LINE_" + count_108, "_", count_108 * Ld_92 + 2.0, Ai_16 + 4, G_color_1008, "Arial", 10, 1);
   e_DrawLabel(As_0, As_8 + "0", "Activated Strategies:", 368, Ai_16, G_color_1000, "Arial", 8, 1);
   e_DrawLabel(As_0, As_8 + "10", As_20, 336, Ai_16, G_color_1000, "Arial", 8, 1);
   e_DrawLabel(As_0, As_8 + "11", CharToStr(Li_104), 319, Ai_16, G_color_1000, "Wingdings", 10, 1);
   e_DrawLabel(As_0, As_8 + "20", As_28, 274, Ai_16, G_color_1000, "Arial", 8, 1);
   e_DrawLabel(As_0, As_8 + "21", CharToStr(Li_104), 258, Ai_16, G_color_1000, "Wingdings", 10, 1);
   e_DrawLabel(As_0, As_8 + "30", As_36, 212, Ai_16, G_color_1000, "Arial", 8, 1);
   e_DrawLabel(As_0, As_8 + "31", CharToStr(Li_104), 196, Ai_16, G_color_1000, "Wingdings", 10, 1);
   e_DrawLabel(As_0, As_8 + "40", As_44, 149, Ai_16, G_color_1000, "Arial", 8, 1);
   e_DrawLabel(As_0, As_8 + "41", CharToStr(Li_104), 132, Ai_16, G_color_1000, "Wingdings", 10, 1);
   e_DrawLabel(As_0, As_8 + "50", As_52, 82, Ai_16, G_color_1000, "Arial", 8, 1);
   e_DrawLabel(As_0, As_8 + "51", CharToStr(Li_104), 67, Ai_16, G_color_1000, "Wingdings", 10, 1);
   e_DrawLabel(As_0, As_8 + "60", As_60, 17, Ai_16, G_color_1000, "Arial", 8, 1);
   e_DrawLabel(As_0, As_8 + "61", CharToStr(Li_104), 2, Ai_16, G_color_1000, "Wingdings", 10, 1);
   if (Ai_68) {
      ObjectSet(As_0 + As_8 + "10", OBJPROP_COLOR, G_color_1008);
      ObjectSetText(As_0 + As_8 + "11", CharToStr(Li_100), 10, "Wingdings", G_color_984);
   }
   if (Ai_72) {
      ObjectSet(As_0 + As_8 + "20", OBJPROP_COLOR, G_color_1008);
      ObjectSetText(As_0 + As_8 + "21", CharToStr(Li_100), 10, "Wingdings", G_color_984);
   }
   if (Ai_76) {
      ObjectSet(As_0 + As_8 + "30", OBJPROP_COLOR, G_color_1008);
      ObjectSetText(As_0 + As_8 + "31", CharToStr(Li_100), 10, "Wingdings", G_color_984);
   }
   if (Ai_80) {
      ObjectSet(As_0 + As_8 + "40", OBJPROP_COLOR, G_color_1008);
      ObjectSetText(As_0 + As_8 + "41", CharToStr(Li_100), 10, "Wingdings", G_color_984);
   }
   if (Ai_84) {
      ObjectSet(As_0 + As_8 + "50", OBJPROP_COLOR, G_color_1008);
      ObjectSetText(As_0 + As_8 + "51", CharToStr(Li_100), 10, "Wingdings", G_color_984);
   }
   if (Ai_88) {
      ObjectSet(As_0 + As_8 + "60", OBJPROP_COLOR, G_color_1008);
      ObjectSetText(As_0 + As_8 + "61", CharToStr(Li_100), 10, "Wingdings", G_color_984);
   }
   Ai_16 = ObjectGet(As_0 + As_8 + "11", OBJPROP_YDISTANCE) + 25.0;
   return (Ai_16);
}

// 679C258105517DAAC139C5A889559A8D
int f0_7(string As_0, string As_8, int Ai_16) {
   string Ls_20;
   string Ls_28;
   if (Digits > 4) {
      Ls_20 = StringSubstr(DoubleToStr(Ask, Digits), StringLen(DoubleToStr(Ask, Digits)) - 1, 1);
      Ls_28 = StringSubstr(DoubleToStr(Bid, Digits), StringLen(DoubleToStr(Bid, Digits)) - 1, 1);
      e_DrawLabel(As_0, As_8 + 1, DoubleToStr(Ask, Digits - 1), 15, Ai_16 - 10, G_color_984, "IrisUPC", 28, 1);
      e_DrawLabel(As_0, As_8 + 2, Ls_20, 2, Ai_16 - 3, G_color_984, "IrisUPC", 18, 1);
      e_DrawLabel(As_0, As_8 + 3, DoubleToStr(Bid, Digits - 1), 15, Ai_16 + 15, G_color_992, "IrisUPC", 28, 1);
      e_DrawLabel(As_0, As_8 + 4, Ls_28, 2, Ai_16 + 17, G_color_992, "IrisUPC", 18, 1);
   } else {
      e_DrawLabel(As_0, As_8 + 2, DoubleToStr(Ask, Digits), 2, Ai_16 - 10, G_color_984, "IrisUPC", 28, 1);
      e_DrawLabel(As_0, As_8 + 4, DoubleToStr(Bid, Digits), 2, Ai_16 + 15, G_color_992, "IrisUPC", 28, 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) {
   string Lsa_28[];
   int Lia_32[4];
   string Lsa_36[2];
   int Lia_44[];
   int Li_unused_48;
   int Li_unused_52;
   int Li_56;
   double icustom_60;
   double icustom_68;
   double icustom_76;
   int Lia_84[];
   int period_88;
   double ima_92;
   double ima_100;
   double Ld_108;
   int Li_20 = 10;
   e_PeriodArrT(Period(), Lsa_28, "M1", "M5", "M15", "M30", "H1", "H4", "D1", "W1", "MN");
   int Li_24 = i_PeriodArr(Period(), Lia_32);
   Lsa_36[0] = "MTF2";
   Lsa_36[1] = "MTF1";
   Ai_16 = e_DrawTable(As_0, As_8, 0, 1, Li_20, Ai_16, 40, 40, Li_24, 2, Lsa_28, Lsa_36, "Arial", 8, 10, 12, G_color_1000, Gi_1004, G_color_1000);
   for (int index_40 = 0; index_40 < Li_24; index_40++) {
      e_GetLV(Lia_32[index_40], ",", Lia_44, M1, M5, M15, M30, H1, H4, D1, W1, MN);
      Li_unused_48 = Lia_44[0];
      Li_unused_52 = Lia_44[1];
      Li_56 = Lia_44[2];
      icustom_60 = iCustom(Symbol(), Lia_32[index_40], "FXPREISLEVELS_V40", Periods * 4, Li_56, Gi_900, 0, 0, 0);
      icustom_68 = iCustom(Symbol(), Lia_32[index_40], "FXPREISLEVELS_V40", Periods * 4, Li_56, Gi_900, 0, 1, 0);
      icustom_76 = iCustom(Symbol(), Lia_32[index_40], "FXPREISLEVELS_V40", Periods * 4, Li_56, Gi_900, 0, 2, 0);
      if (icustom_76 > 0.0) ObjectSetText(As_0 + "V" + As_8 + "1" + index_40, CharToStr(221), 28, "Wingdings", G_color_984);
      else {
         if (icustom_76 == 0.0) ObjectSetText(As_0 + "V" + As_8 + "1" + index_40, CharToStr(222), 28, "Wingdings", G_color_992);
         else ObjectSetText(As_0 + "V" + As_8 + "1" + index_40, CharToStr(220), 28, "Wingdings", G_color_1000);
      }
      e_GetLV(Lia_32[index_40], ",", Lia_84, M1___, M5___, M15___, M30___, H1___, H4___, D1___, W1___, MN___);
      period_88 = 3 * Lia_84[0];
      ima_92 = iMA(Symbol(), Lia_32[index_40], period_88, 0, MODE_EMA, PRICE_CLOSE, 0);
      ima_100 = iMA(Symbol(), Lia_32[index_40], NormalizeDouble(period_88 / 5, 0), 0, MODE_EMA, PRICE_CLOSE, 0);
      Ld_108 = i_BrCandle(ima_100 - ima_92, -1, 1);
      if (Ld_108 > 0.0) ObjectSetText(As_0 + "V" + As_8 + "0" + index_40, CharToStr(221), 28, "Wingdings", G_color_984);
      else {
         if (Ld_108 < 0.0) ObjectSetText(As_0 + "V" + As_8 + "0" + index_40, CharToStr(222), 28, "Wingdings", G_color_992);
         else ObjectSetText(As_0 + "V" + As_8 + "0" + index_40, CharToStr(220), 28, "Wingdings", G_color_1000);
      }
   }
   return (Ai_16);
}

// 7103A56B2CDB4A5EE62DAF5F6B647534
int f0_11(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_212;
   double Ld_220;
   double Ld_228;
   double Ld_236;
   double Ld_244;
   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_252 = "Swing Trader 1 ";
   if (Lda_80[0] > Ld_112) {
      Ls_104 = As_28;
      Ld_112 = Lda_80[0];
      Ls_252 = "Swing Trader 2 ";
   }
   if (Lda_84[0] > Ld_112) {
      Ls_104 = As_36;
      Ld_112 = Lda_84[0];
      Ls_252 = "Breakout Trader";
   }
   if (Lda_88[0] > Ld_112) {
      Ls_104 = As_44;
      Ld_112 = Lda_88[0];
      Ls_252 = "Trend               ";
   }
   if (Lda_92[0] > Ld_112) {
      Ls_104 = As_52;
      Ld_112 = Lda_92[0];
      Ls_252 = "Dynamic          ";
   }
   if (Lda_96[0] > Ld_112) {
      Ls_104 = As_60;
      Ld_112 = Lda_96[0];
      Ls_252 = "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_152 = Lda_100[5];
   double Ld_unused_160 = Lda_100[6];
   double Ld_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_136) {
      Ld_220 = (Ld_136 - Ld_120) / Gd_688;
      Ld_244 = (Ld_120 - Ld_128) / Gd_688;
   } else {
      if (Ld_128 > Ld_136) {
         Ld_220 = (Ld_120 - Ld_136) / Gd_688;
         Ld_244 = (Ld_128 - Ld_120) / Gd_688;
      }
   }
   if (Ld_128 < Ld_144) Ld_228 = (Ld_144 - Ld_120) / Gd_688;
   else
      if (Ld_128 > Ld_144) Ld_228 = (Ld_120 - Ld_144) / Gd_688;
   if (Ld_128 < Ld_152) Ld_236 = (Ld_152 - Ld_120) / Gd_688;
   else
      if (Ld_128 > Ld_152) Ld_236 = (Ld_120 - Ld_152) / Gd_688;
   if (Ld_244 != 0.0) {
      Ld_188 = NormalizeDouble(Ld_220 / Ld_244, Gi_684);
      Ld_196 = NormalizeDouble(Ld_228 / Ld_244, Gi_684);
      Ld_204 = NormalizeDouble(Ld_236 / Ld_244, Gi_684);
      Ld_212 = AccountBalance() * Gd_724 / 100.0 / (MarketInfo(A_symbol_68, MODE_TICKVALUE) * Ld_244 * Gd_688 / Point);
      Ld_212 = MathAbs(Ld_212);
   }
   if (Ld_212 > 0.0) {
      e_DrawLabel(As_0, As_8 + 1, CharToStr(196), 122, Ai_16, G_color_1000, "Wingdings", 10, 1);
      e_DrawLabel(As_0, As_8 + 2, "Trade-Calculator", 22, Ai_16, G_color_1000, "Arial", 10, 1);
      Ai_16 += Li_184;
      e_DrawLabel(As_0, As_8 + 3, Ls_252, 6, Ai_16, Gi_1012, "Arial", 10, 1);
      e_DrawLabel(As_0, As_8 + 4, "Str.:", 108, Ai_16, G_color_1000, "Arial", 10, 1);
      Ai_16 += Li_184;
      e_DrawLabel(As_0, As_8 + 10, "S/L:", 108, Ai_16, G_color_1000, "Arial", 10, 1);
      if (Ls_252 == "Trend               " && Ld_168 > 0.0) e_DrawLabel(As_0, As_8 + 11, DoubleToStr(Ld_168, Gi_684), 60, Ai_16, G_color_1008, "Arial", 10, 1);
      else e_DrawLabel(As_0, As_8 + 11, DoubleToStr(Ld_128, Gi_684), 60, Ai_16, G_color_1008, "Arial", 10, 1);
      if (Ld_136 != 0.0 && Ls_252 != "Trend               ") {
         Ai_16 += Li_184;
         e_DrawLabel(As_0, As_8 + "A12", "T/P:", 108, Ai_16, G_color_1000, "Arial", 10, 1);
         e_DrawLabel(As_0, As_8 + "A13", DoubleToStr(Ld_136, Gi_684), 60, Ai_16, G_color_1008, "Arial", 10, 1);
         e_DrawLabel(As_0, As_8 + "A14", "P/L=", 20, Ai_16, G_color_1000, "Arial", 10, 1);
         e_DrawLabel(As_0, As_8 + "A15", DoubleToStr(Ld_188, 1), 2, Ai_16, G_color_1008, "Arial", 10, 1);
      } else e_ClearObj(As_0 + As_8 + "A");
      if (Ld_144 != 0.0 && Ls_252 != "Trend               ") {
         Ai_16 += Li_184;
         e_DrawLabel(As_0, As_8 + "B16", "T/P2:", 108, Ai_16, G_color_1000, "Arial", 10, 1);
         e_DrawLabel(As_0, As_8 + "B17", DoubleToStr(Ld_144, Gi_684), 60, Ai_16, G_color_1008, "Arial", 10, 1);
         e_DrawLabel(As_0, As_8 + "B18", "P/L=", 20, Ai_16, G_color_1000, "Arial", 10, 1);
         e_DrawLabel(As_0, As_8 + "B19", DoubleToStr(Ld_196, 1), 2, Ai_16, G_color_1008, "Arial", 10, 1);
      } else e_ClearObj(As_0 + As_8 + "B");
      if (Ld_152 != 0.0 && Ls_252 != "Trend               ") {
         Ai_16 += Li_184;
         e_DrawLabel(As_0, As_8 + "C20", "T/P3:", 108, Ai_16, G_color_1000, "Arial", 10, 1);
         e_DrawLabel(As_0, As_8 + "C21", DoubleToStr(Ld_152, Gi_684), 60, Ai_16, G_color_1008, "Arial", 10, 1);
         e_DrawLabel(As_0, As_8 + "C22", "P/L=", 20, Ai_16, G_color_1000, "Arial", 10, 1);
         e_DrawLabel(As_0, As_8 + "C23", DoubleToStr(Ld_204, 1), 2, Ai_16, G_color_1008, "Arial", 10, 1);
      } else e_ClearObj(As_0 + As_8 + "C");
      Ai_16 += Li_184;
      e_DrawLabel(As_0, As_8 + 24, "Vol.:", 105, Ai_16, G_color_1000, "Arial", 10, 1);
      e_DrawLabel(As_0, As_8 + 25, DoubleToStr(Ld_212, 1), 80, Ai_16, G_color_1008, "Arial", 10, 1);
      e_DrawLabel(As_0, As_8 + 26, "Lots", 46, Ai_16, G_color_1000, "Arial", 10, 1);
      Ai_16 = ObjectGet(As_0 + As_8 + 26, OBJPROP_YDISTANCE) + 20.0;
   } else Ai_16 = f0_22(As_0, As_8, Ai_16);
   return (Ai_16);
}

// 19527EF6EC602101593AEEAD16B901EF
int f0_1(string As_0, string As_8, int Ai_16, bool Ai_20, double Ad_24, double Ad_32, double Ad_40, string A_symbol_48) {
   double Ld_56;
   double Ld_64;
   string Ls_72;
   int Li_80;
   int color_84;
   string Ls_unused_88;
   double Ld_96;
   double Ld_104;
   string Ls_112;
   int Li_120 = 20;
   if (Ai_20) Ls_112 = "Market  ";
   else
      if (!Ai_20) Ls_112 = "Pending";
   if (Ad_24 != 0.0) {
      if (Ad_32 < Ad_40) {
         Ld_96 = (Ad_40 - Ad_24) / Gd_688;
         Ld_104 = (Ad_24 - Ad_32) / Gd_688;
         Ls_72 = "Buy";
         Li_80 = 233;
         color_84 = G_color_984;
      } else {
         if (Ad_32 > Ad_40) {
            Ld_96 = (Ad_24 - Ad_40) / Gd_688;
            Ld_104 = (Ad_32 - Ad_24) / Gd_688;
            Ls_72 = "Sell";
            Li_80 = 234;
            color_84 = G_color_992;
         }
      }
      if (Ld_104 != 0.0 && MarketInfo(A_symbol_48, MODE_TICKVALUE) > 0.0) {
         Ld_56 = NormalizeDouble(Ld_96 / Ld_104, Gi_684);
         Ld_64 = AccountBalance() * Gd_724 / 100.0 / (MarketInfo(A_symbol_48, MODE_TICKVALUE) * Ld_104 * Gd_688 / Point);
      }
      if (Ld_56 > 0.0 && Ld_64 > 0.0) {
         e_DrawLabel(As_0, As_8 + 1, CharToStr(196), 122, Ai_16, G_color_1000, "Wingdings", 10, 1);
         e_DrawLabel(As_0, As_8 + 2, "Trade-Calculator", 22, Ai_16, G_color_1000, "Arial", 10, 1);
         Ai_16 += Li_120;
         e_DrawLabel(As_0, As_8 + 5, "Type:", 108, Ai_16, G_color_1000, "Arial", 10, 1);
         e_DrawLabel(As_0, As_8 + 6, Ls_72 + " " + Ls_112, 22, Ai_16, G_color_1008, "Arial", 10, 1);
         e_DrawLabel(As_0, As_8 + 7, CharToStr(Li_80), 0, Ai_16 + 2, color_84, "Wingdings", 8, 1);
         Ai_16 += Li_120;
         e_DrawLabel(As_0, As_8 + 8, "E/P:", 106, Ai_16, G_color_1000, "Arial", 10, 1);
         e_DrawLabel(As_0, As_8 + 9, DoubleToStr(Ad_24, Gi_684), 60, Ai_16, G_color_1008, "Arial", 10, 1);
         Ai_16 += Li_120;
         e_DrawLabel(As_0, As_8 + 10, "S/L:", 108, Ai_16, G_color_1000, "Arial", 10, 1);
         e_DrawLabel(As_0, As_8 + 11, DoubleToStr(Ad_32, Gi_684), 60, Ai_16, G_color_1008, "Arial", 10, 1);
         if (Ad_40 != 0.0) {
            Ai_16 += Li_120;
            e_DrawLabel(As_0, As_8 + 12, "T/P:", 108, Ai_16, G_color_1000, "Arial", 10, 1);
            e_DrawLabel(As_0, As_8 + 13, DoubleToStr(Ad_40, Gi_684), 60, Ai_16, G_color_1008, "Arial", 10, 1);
            e_DrawLabel(As_0, As_8 + 14, "P/L=", 20, Ai_16, G_color_1000, "Arial", 10, 1);
            e_DrawLabel(As_0, As_8 + 15, DoubleToStr(Ld_56, 1), 2, Ai_16, G_color_1008, "Arial", 10, 1);
         }
         Ai_16 += Li_120;
         e_DrawLabel(As_0, As_8 + 24, "Vol.:", 105, Ai_16, G_color_1000, "Arial", 10, 1);
         e_DrawLabel(As_0, As_8 + 25, DoubleToStr(Ld_64, 1), 80, Ai_16, G_color_1008, "Arial", 10, 1);
         e_DrawLabel(As_0, As_8 + 26, "Lots", 46, Ai_16, G_color_1000, "Arial", 10, 1);
         Ai_16 = ObjectGet(As_0 + As_8 + 26, OBJPROP_YDISTANCE) + 20.0;
      } else Ai_16 = f0_22(As_0, As_8, Ai_16);
   }
   return (Ai_16);
}

// E46C76F3E8EA7749935D63F7E10EF40C
int f0_22(string As_0, string As_8, int Ai_16) {
   int count_20 = 0;
   int Li_24 = 20;
   e_DrawLabel(As_0, As_8 + count_20, "! Incorrect Input !", 2, Ai_16 + Li_24 * count_20, G_color_992, "Arial", 10, 1);
   count_20++;
   e_DrawLabel(As_0, As_8 + count_20, "For Buy-Order:", 2, Ai_16 + Li_24 * count_20, G_color_1008, "Arial", 10, 1);
   count_20++;
   e_DrawLabel(As_0, As_8 + count_20, "Stop Loss < Entry Price < Take Profit", 2, Ai_16 + Li_24 * count_20, G_color_1008, "Arial", 10, 1);
   count_20++;
   e_DrawLabel(As_0, As_8 + count_20, "or", 2, Ai_16 + Li_24 * count_20, G_color_1008, "Arial", 10, 1);
   count_20++;
   e_DrawLabel(As_0, As_8 + count_20, "For Sell-Order:", 2, Ai_16 + Li_24 * count_20, G_color_1008, "Arial", 10, 1);
   count_20++;
   e_DrawLabel(As_0, As_8 + count_20, "Stop Loss > Entry Price > Take Profit", 2, Ai_16 + Li_24 * count_20, G_color_1008, "Arial", 10, 1);
   count_20++;
   count_20--;
   Ai_16 = ObjectGet(As_0 + As_8 + count_20, OBJPROP_YDISTANCE);
   return (Ai_16);
}

// 8AD0CDF0F285038515B6A91FC04038A0
int f0_14(string As_0, string As_8, int Ai_16, int A_timeframe_20) {
   string dbl2str_24;
   string dbl2str_32;
   string dbl2str_40;
   string dbl2str_48;
   string dbl2str_56;
   string dbl2str_64;
   int Lia_84[];
   int Li_72 = 252;
   int Li_76 = 76;
   int Li_80 = 16;
   e_StrExpl(Gs_972, ",", Lia_84);
   int period_88 = Lia_84[0];
   int period_92 = Lia_84[1];
   double istddev_96 = iStdDev(NULL, A_timeframe_20, period_88, 0, MODE_SMA, PRICE_MEDIAN, 0);
   double istddev_104 = iStdDev(NULL, A_timeframe_20, period_92, 0, MODE_SMA, PRICE_MEDIAN, 0);
   double ima_112 = iMA(NULL, A_timeframe_20, period_88, 0, MODE_SMA, PRICE_MEDIAN, 0);
   double ima_120 = iMA(NULL, A_timeframe_20, period_92, 0, MODE_SMA, PRICE_MEDIAN, 0);
   if (ima_120 - istddev_104 < Bid) dbl2str_24 = DoubleToStr(ima_120 - istddev_104, Gi_684);
   else dbl2str_24 = "";
   if (ima_120 - 2.0 * istddev_104 < Bid) dbl2str_32 = DoubleToStr(ima_120 - 2.0 * istddev_104, Gi_684);
   else dbl2str_32 = "";
   if (ima_120 - 3.0 * istddev_104 < Bid) dbl2str_40 = DoubleToStr(ima_120 - 3.0 * istddev_104, Gi_684);
   else dbl2str_40 = "";
   if (ima_112 + istddev_96 > Ask) dbl2str_48 = DoubleToStr(ima_112 + istddev_96, Gi_684);
   else dbl2str_48 = "";
   if (ima_112 + 2.0 * istddev_96 > Ask) dbl2str_56 = DoubleToStr(ima_112 + 2.0 * istddev_96, Gi_684);
   else dbl2str_56 = "";
   if (ima_112 + 3.0 * istddev_96 > Ask) dbl2str_64 = DoubleToStr(ima_112 + 3.0 * istddev_96, Gi_684);
   else dbl2str_64 = "";
   int Li_128 = 0;
   e_DrawLabel(As_0, As_8 + "0", CharToStr(196), 112, Ai_16 + Li_128, G_color_1000, "Wingdings", 10, 1);
   e_DrawLabel(As_0, As_8 + "1", "Price Fluctuations", 2, Ai_16 + Li_128, G_color_1000, "Arial", 10, 1);
   e_DrawLabel(As_0, As_8 + "2", "A:", 110, Ai_16 + Li_128 + 20, G_color_1000, "Arial", 10, 1);
   if (dbl2str_24 == "") e_DrawLabel(As_0, As_8 + "3", CharToStr(Li_72), Li_76, Ai_16 + Li_128 + 20, G_color_992, "Wingdings", 10, 1);
   else e_DrawLabel(As_0, As_8 + "3", dbl2str_24, 65, Ai_16 + Li_128 + 20, G_color_992, "Arial", 10, 1);
   e_DrawLabel(As_0, As_8 + "4", "|", 50, Ai_16 + Li_128 + 20, G_color_1000, "Arial", 10, 1);
   if (dbl2str_48 == "") e_DrawLabel(As_0, As_8 + "5", CharToStr(Li_72), Li_80, Ai_16 + Li_128 + 20, G_color_984, "Wingdings", 10, 1);
   else e_DrawLabel(As_0, As_8 + "5", dbl2str_48, 2, Ai_16 + Li_128 + 20, G_color_984, "Arial", 10, 1);
   e_DrawLabel(As_0, As_8 + "6", "B:", 110, Ai_16 + Li_128 + 40, G_color_1000, "Arial", 10, 1);
   if (dbl2str_32 == "") e_DrawLabel(As_0, As_8 + "7", CharToStr(Li_72), Li_76, Ai_16 + Li_128 + 40, G_color_992, "Wingdings", 10, 1);
   else e_DrawLabel(As_0, As_8 + "7", dbl2str_32, 65, Ai_16 + Li_128 + 40, G_color_992, "Arial", 10, 1);
   e_DrawLabel(As_0, As_8 + "8", "|", 50, Ai_16 + Li_128 + 40, G_color_1000, "Arial", 10, 1);
   if (dbl2str_56 == "") e_DrawLabel(As_0, As_8 + "9", CharToStr(Li_72), Li_80, Ai_16 + Li_128 + 40, G_color_984, "Wingdings", 10, 1);
   else e_DrawLabel(As_0, As_8 + "9", dbl2str_56, 2, Ai_16 + Li_128 + 40, G_color_984, "Arial", 10, 1);
   e_DrawLabel(As_0, As_8 + "10", "C:", 110, Ai_16 + Li_128 + 60, G_color_1000, "Arial", 10, 1);
   if (dbl2str_40 == "") e_DrawLabel(As_0, As_8 + "11", CharToStr(Li_72), Li_76, Ai_16 + Li_128 + 60, G_color_992, "Wingdings", 10, 1);
   else e_DrawLabel(As_0, As_8 + "11", dbl2str_40, 65, Ai_16 + Li_128 + 60, G_color_992, "Arial", 10, 1);
   e_DrawLabel(As_0, As_8 + "12", "|", 50, Ai_16 + Li_128 + 60, G_color_1000, "Arial", 10, 1);
   if (dbl2str_64 == "") e_DrawLabel(As_0, As_8 + "13", CharToStr(Li_72), Li_80, Ai_16 + Li_128 + 60, G_color_984, "Wingdings", 10, 1);
   else e_DrawLabel(As_0, As_8 + "13", dbl2str_64, 2, Ai_16 + Li_128 + 60, G_color_984, "Arial", 10, 1);
   Ai_16 = ObjectGet(As_0 + As_8 + "13", OBJPROP_YDISTANCE) + 30.0;
   return (Ai_16);
}