/*
   Generated by EX4-TO-MQ4 decompiler V4.0.224.1 []
   Website: http://purebeam.biz
   E-mail : purebeam@gmail.com
*/

#property indicator_chart_window

bool gi_76 = TRUE;
int g_color_80 = Black;
int g_fontsize_84 = 32;
string gs_arial_88 = "Arial";
int g_corner_96 = 1;
double g_bid_100;

int init() {
   return (0);
}

int deinit() {
   ObjectsDeleteAll(0, OBJ_LABEL);
   return (0);
}

int start() {
   if (gi_76 == TRUE) {
      if (Bid > g_bid_100) g_color_80 = Blue;
      if (Bid < g_bid_100) g_color_80 = Red;
      g_bid_100 = Bid;
   }
   double l_iatr_0 = iATR(Symbol(), Period(), 50, 1);
   double ld_8 = 0.75 * MathRound(l_iatr_0 * MathPow(10, Digits));
   double ld_16 = 1.3 * ld_8;
   double ld_24 = 1.85 * ld_8;
   double ld_32 = 2.45 * ld_8;
   ObjectCreate("txtStop", OBJ_LABEL, 0, 0, 0);
   ObjectSetText("txtStop", DoubleToStr(ld_8, 0), 14, "Arial Bold", Red);
   ObjectSet("txtStop", OBJPROP_CORNER, g_corner_96);
   ObjectSet("txtStop", OBJPROP_XDISTANCE, 120);
   ObjectSet("txtStop", OBJPROP_YDISTANCE, 70);
   ObjectCreate("txtProfit", OBJ_LABEL, 0, 0, 0);
   ObjectSetText("txtProfit", DoubleToStr(ld_16, 0), 14, "Arial Bold", Lime);
   ObjectSet("txtProfit", OBJPROP_CORNER, g_corner_96);
   ObjectSet("txtProfit", OBJPROP_XDISTANCE, 5);
   ObjectSet("txtProfit", OBJPROP_YDISTANCE, 70);
   ObjectCreate("txtProfit2", OBJ_LABEL, 0, 0, 0);
   ObjectSetText("txtProfit2", DoubleToStr(ld_24, 0), 14, "Arial Bold", Lime);
   ObjectSet("txtProfit2", OBJPROP_CORNER, g_corner_96);
   ObjectSet("txtProfit2", OBJPROP_XDISTANCE, 120);
   ObjectSet("txtProfit2", OBJPROP_YDISTANCE, 160);
   ObjectCreate("txtProfit3", OBJ_LABEL, 0, 0, 0);
   ObjectSetText("txtProfit3", DoubleToStr(ld_32, 0), 14, "Arial Bold", Lime);
   ObjectSet("txtProfit3", OBJPROP_CORNER, g_corner_96);
   ObjectSet("txtProfit3", OBJPROP_XDISTANCE, 5);
   ObjectSet("txtProfit3", OBJPROP_YDISTANCE, 160);
   string l_dbl2str_40 = DoubleToStr(Bid, Digits);
   ObjectCreate("Profit Info", OBJ_LABEL, 0, 0, 0);
   ObjectSetText("Profit Info", l_dbl2str_40, g_fontsize_84, gs_arial_88, g_color_80);
   ObjectSet("Profit Info", OBJPROP_CORNER, g_corner_96);
   ObjectSet("Profit Info", OBJPROP_XDISTANCE, 5);
   ObjectSet("Profit Info", OBJPROP_YDISTANCE, 100);
   return (0);
}
