Make Better EA Simple Scalping with Marti & Hedging

Back to topics list To post a new topic, please log in or register
avatar
1
r2tan 2015.04.27 07:47
 

For Couple Week i try to modified open source ea simple scalping with marti and Hedging, please somebody help to make this ea better or work best,

Trigger by HL candle on H1, optimized on TF 15M pair EurUsd (filtering not add yet)

on BT 2014 had passed with profit more than 1000% with Dd more than 60% (high riskt i think)

I Note good cooder, please help us


Here is Code

#property copyright "Copyright©2015 - R2Tan"
#property link      "www.r2tan.com"

//#import "cblib.dll"
//   int calc(double a0, double a1, double a2, double a3, double a4, double a5, double a6, double a7, double a8, double a9, int a10, int a11, double a12);
//#import

extern double Lots = 0.1;
extern int Sensitivity = 5;
extern string TimeStart = "00:00";
extern string TimeEnd = "13:00";
extern int StartTake = 20;
extern double K_NextLot = 1.2;
extern int OrderMax = 10;
extern bool Hedging = FALSE;
extern double MM = 0.3;
int gi_132 = 211;
int gi_136 = 5;
int gi_140;
int gi_144;
int gi_148;
int gi_152;
int gi_156;
int g_pos_164 = 0;
int gi_unused_172 = 0;
int gi_176 = 5;
int gi_180;
int gi_184;
double g_lots_188 = 0.0;
double gd_196;
double g_order_lots_204;
double g_order_lots_212;
double g_price_220;
double g_price_228;
double g_iopen_244;
double g_ihigh_252;
double g_ilow_260;
double g_iclose_268;
double g_ihigh_276;
double g_ilow_284;
double g_iclose_292;
double g_ihigh_300;
double g_ilow_308;
double g_iclose_316;
double g_point_324;
string gs_348 = "r2tan cb ea";
string gs_search_356 = "search";
string gs_364 = "On";
int gi_372 = 10;
int gi_376 = 0;
int gi_380 = 0;
int gi_384;
int gi_388;
int g_str2time_400;
int g_str2time_404;
int g_datetime_408;
int g_datetime_412;
int g_datetime_416;
bool gi_420;
bool gi_424;

int init() {
   gi_388 = calc(1, 200, 200, 200, 1, 1, 1, 1, 1, 1, 1, 1, 1);
   if (!Hedging) gs_364 = "Off";
   f0_7();
   gi_384 = gi_132 + StringGetChar(Symbol(), 1) + StringGetChar(Symbol(), 2) + StringGetChar(Symbol(), 3) + StringGetChar(Symbol(), 4) + StringGetChar(Symbol(), 5) + StringGetChar(Symbol(),
      6) + Period();
   g_datetime_416 = TimeCurrent();
   PlaySound("news.wav");
   return (0);
}

void deinit() {
   ObjectDelete("Logo0");
   ObjectDelete("Logo1");
   ObjectDelete("Logo2");
   ObjectDelete("Logo3");
   ObjectDelete("Logo4");
   ObjectDelete("Logo5");
   ObjectDelete("Logo6");
   ObjectDelete("Logo7");
   ObjectDelete("Logo8");
   ObjectDelete("Logo9");
   ObjectDelete("Logo10");
   ObjectDelete("Logo11");
   ObjectDelete("Logo12");
   ObjectDelete("Logo13");
   ObjectDelete("Logo14");
   ObjectDelete("Logo25");
   ObjectDelete("Logo27");
}

int start() {
   //if (AccountNumber() != gi_388) {
   //   Comment("R2TANn");
   //   Print("R2TAN");
   //   return;
   //}
   gi_148 = StartTake;
   g_str2time_400 = StrToTime(TimeToStr(TimeCurrent(), TIME_DATE) + " " + TimeStart);
   g_str2time_404 = StrToTime(TimeToStr(TimeCurrent(), TIME_DATE) + " " + TimeEnd);
   gi_176 = MarketInfo(Symbol(), MODE_DIGITS);
   if (gi_176 == 5 || gi_176 == 3) gi_372 = 10;
   if (gi_176 == 4 || gi_176 == 2) gi_372 = 1;
   g_lots_188 = Lots;
   if (MM > 0.0) {
      g_lots_188 = NormalizeDouble(AccountBalance() * MM / 10000.0, 2);
      if (g_lots_188 < MarketInfo(Symbol(), MODE_MINLOT)) g_lots_188 = MarketInfo(Symbol(), MODE_MINLOT);
   }
   gi_376 = f0_6(gi_384);
   gi_380 = f0_2(gi_384);
   gi_152 = f0_4(gi_384);
   gi_156 = f0_5(gi_384);
   if ((!IsOptimization()) && !IsTesting()) f0_8();
   g_iopen_244 = iOpen(NULL, PERIOD_H1, 0);
   g_ihigh_252 = iHigh(NULL, PERIOD_H1, 1);
   g_ilow_260 = iLow(NULL, PERIOD_H1, 1);
   g_iclose_268 = iClose(NULL, PERIOD_H1, 1);
   g_ihigh_276 = iHigh(NULL, PERIOD_H1, 2);
   g_ilow_284 = iLow(NULL, PERIOD_H1, 2);
   g_iclose_292 = iClose(NULL, PERIOD_H1, 2);
   g_ihigh_300 = iHigh(NULL, PERIOD_H1, 2);
   g_ilow_308 = iLow(NULL, PERIOD_H1, 2);
   g_iclose_316 = iClose(NULL, PERIOD_H1, 2);
   gi_180 = Sensitivity;
   gi_184 = gi_372;
   g_point_324 = Point;
   gd_196 = 0;
   gd_196 = calc(g_iopen_244, g_ihigh_252, g_ilow_260, g_iclose_268, g_ihigh_276, g_ilow_284, g_iclose_292, g_ihigh_300, g_ilow_308, g_iclose_316, gi_180, gi_184, g_point_324);

   gi_420 = FALSE;
   gi_424 = FALSE;
   if (gd_196 > 0.0) gi_420 = TRUE;
   if (gd_196 < 0.0) gi_424 = TRUE;
   if (gi_376 == 0 && gi_380 == 0) gs_search_356 = "searching";
   if (gi_376 > 0 && gi_376 < OrderMax) {
      gs_search_356 = "trading";
      f0_0(gi_384);
   }
   if (gi_152 > 0 && gi_156 > 0) gs_search_356 = "hedging";
   if (gi_376 >= OrderMax) gs_search_356 = "drawdown";
   if (gi_376 == 0 && gi_380 > 0) gs_search_356 = "waiting";
   if (!Hedging && gi_376 > 0) return (0);
   if (gi_420 && gi_152 == 0) {
      gi_140 = StartTake;
      gi_144 = gi_148;
      if (TimeCurrent() - g_datetime_416 < 300) return;
      if (TimeCurrent() < g_str2time_400 || TimeCurrent() > g_str2time_404) return;
      g_price_220 = NormalizeDouble(Ask + gi_140 * gi_372 * Point, gi_176);
      f0_1(Blue, gi_384);
   }
   if (gi_424 && gi_156 == 0) {
      gi_140 = StartTake;
      gi_144 = gi_148;
      if (TimeCurrent() - g_datetime_416 < 300) return;
      if (TimeCurrent() < g_str2time_400 || TimeCurrent() > g_str2time_404) return;
      g_price_220 = NormalizeDouble(Bid - gi_140 * gi_372 * Point, gi_176);
      f0_3(Red, gi_384);
   }
   return (0);
}

void f0_0(int a_magic_0) {
   double order_open_price_12;
   double order_takeprofit_20;
   double order_open_price_28;
   double order_takeprofit_36;
   int order_total_4 = OrdersTotal();
   double ld_44 = 0;
   double ld_52 = 0;
   bool bool_60 = FALSE;
   g_pos_164 = 0;
   while (g_pos_164 <= order_total_4) {
      OrderSelect(g_pos_164, SELECT_BY_POS);
      if (OrderMagicNumber() == a_magic_0 && OrderSymbol() == Symbol()) {
         if (OrderType() == OP_BUY) {
            order_open_price_12 = OrderOpenPrice();
            order_takeprofit_20 = OrderTakeProfit();
            g_datetime_408 = OrderOpenTime();
            g_order_lots_204 = OrderLots();
         }
         if (OrderType() == OP_SELL) {
            order_open_price_28 = OrderOpenPrice();
            order_takeprofit_36 = OrderTakeProfit();
            g_datetime_412 = OrderOpenTime();
            g_order_lots_212 = OrderLots();
         }
      }
      g_pos_164++;
   }
   gi_144 = gi_148;
   if (gi_152 > 1) gi_144 = gi_148 * MathPow(K_NextLot, gi_152);
   if (NormalizeDouble(Ask, gi_176) - order_open_price_12 < (-(gi_144 * gi_372 * Point)) && gi_152 > 0 && gi_152 < OrderMax) {
      g_lots_188 = g_order_lots_204 * K_NextLot;
      g_price_220 = 0;
      f0_1(Blue, a_magic_0);
      order_total_4 = OrdersTotal();
      for (g_pos_164 = 0; g_pos_164 <= order_total_4; g_pos_164++) {
         OrderSelect(g_pos_164, SELECT_BY_POS);
         if (OrderMagicNumber() == a_magic_0 && OrderSymbol() == Symbol() && OrderType() == OP_BUY) {
            ld_44 += OrderOpenPrice() * OrderLots();
            ld_52 += OrderLots();
         }
      }
      ld_44 = NormalizeDouble(ld_44 / ld_52, gi_176);
      g_price_228 = NormalizeDouble(ld_44 + StartTake * gi_372 * Point, gi_176);
      for (g_pos_164 = 0; g_pos_164 < order_total_4; g_pos_164++) {
         if (OrderSelect(g_pos_164, SELECT_BY_POS) && OrderType() == OP_BUY && OrderMagicNumber() == a_magic_0 && OrderSymbol() == Symbol() && NormalizeDouble(OrderTakeProfit(),
            gi_176) != NormalizeDouble(g_price_228, gi_176)) {
            for (int li_8 = 1; li_8 <= gi_136; li_8++) {
               while (!IsTradeAllowed()) Sleep(2000);
               RefreshRates();
               bool_60 = OrderModify(OrderTicket(), OrderOpenPrice(), OrderStopLoss(), g_price_228, 0, Green);
               if (bool_60) break;
               if (!bool_60) Print("OrderModify Buy failed with error #", GetLastError());
               Sleep(5000);
            }
         }
      }
   }
   gi_144 = gi_148;
   if (gi_156 > 1) gi_144 = gi_148 * MathPow(K_NextLot, gi_156);
   if (order_open_price_28 - NormalizeDouble(Bid, gi_176) < (-(gi_144 * gi_372 * Point)) && gi_156 > 0 && gi_156 < OrderMax) {
      g_lots_188 = g_order_lots_212 * K_NextLot;
      g_price_220 = 0;
      f0_3(Red, a_magic_0);
      order_total_4 = OrdersTotal();
      for (g_pos_164 = 0; g_pos_164 <= order_total_4; g_pos_164++) {
         OrderSelect(g_pos_164, SELECT_BY_POS);
         if (OrderMagicNumber() == a_magic_0 && OrderSymbol() == Symbol() && OrderType() == OP_SELL) {
            ld_44 += OrderOpenPrice() * OrderLots();
            ld_52 += OrderLots();
         }
      }
      ld_44 = NormalizeDouble(ld_44 / ld_52, gi_176);
      g_price_228 = NormalizeDouble(ld_44 - StartTake * gi_372 * Point, gi_176);
      for (g_pos_164 = 0; g_pos_164 < order_total_4; g_pos_164++) {
         if (OrderSelect(g_pos_164, SELECT_BY_POS) && OrderType() == OP_SELL && OrderSymbol() == Symbol() && OrderMagicNumber() == a_magic_0 && NormalizeDouble(OrderTakeProfit(),
            gi_176) != NormalizeDouble(g_price_228, gi_176)) {
            for (li_8 = 1; li_8 <= gi_136; li_8++) {
               while (!IsTradeAllowed()) Sleep(2000);
               RefreshRates();
               bool_60 = OrderModify(OrderTicket(), OrderOpenPrice(), OrderStopLoss(), g_price_228, 0, Green);
               if (bool_60) break;
               if (!bool_60) Print("OrderModify Sell failed with error #", GetLastError());
               Sleep(5000);
            }
         }
      }
   }
}

void f0_1(color a_color_0, int a_magic_4) {
   int ticket_12;
   bool bool_24 = FALSE;
   int li_8 = 1;
   while (li_8 <= gi_136) {
      while (!IsTradeAllowed()) Sleep(5000);
      RefreshRates();
      ticket_12 = OrderSend(Symbol(), OP_BUY, g_lots_188, NormalizeDouble(Ask, gi_176), gi_372 * 2, 0, 0, gs_348 + " (" + Symbol() + ")", a_magic_4, 0, a_color_0);
      Sleep(2000);
      if (ticket_12 > 0) {
         if (OrderSelect(ticket_12, SELECT_BY_TICKET, MODE_TRADES)) {
            for (int li_16 = 1; li_16 <= gi_136; li_16++) {
               while (!IsTradeAllowed()) Sleep(2000);
               RefreshRates();
               if (g_price_220 == 0.0) break;
               bool_24 = OrderModify(OrderTicket(), OrderOpenPrice(), OrderStopLoss(), g_price_220, 0, Green);
               if (bool_24) {
                  PlaySound("news.wav");
                  return;
               }
               if (!bool_24) Print("OrderModify Buy failed with error #", GetLastError());
               Sleep(5000);
            }
            return;
         }
      } else {
         Print("Error opening BUY order : ", GetLastError());
         Sleep(5000);
      }
      li_8++;
   }
}

void f0_3(color a_color_0, int a_magic_4) {
   int ticket_12;
   bool bool_24 = FALSE;
   int li_8 = 1;
   while (li_8 <= gi_136) {
      while (!IsTradeAllowed()) Sleep(5000);
      RefreshRates();
      ticket_12 = OrderSend(Symbol(), OP_SELL, g_lots_188, NormalizeDouble(Bid, gi_176), gi_372 * 2, 0, 0, gs_348 + " (" + Symbol() + ")", a_magic_4, 0, a_color_0);
      Sleep(2000);
      if (ticket_12 > 0) {
         if (OrderSelect(ticket_12, SELECT_BY_TICKET, MODE_TRADES)) {
            for (int li_16 = 1; li_16 <= gi_136; li_16++) {
               while (!IsTradeAllowed()) Sleep(2000);
               RefreshRates();
               if (g_price_220 == 0.0) break;
               bool_24 = OrderModify(OrderTicket(), OrderOpenPrice(), OrderStopLoss(), g_price_220, 0, Green);
               if (bool_24) {
                  PlaySound("news.wav");
                  return;
               }
               if (!bool_24) Print("OrderModify Sell failed with error #", GetLastError());
               Sleep(5000);
            }
            return;
         }
      } else {
         Print("Error opening SELL order : ", GetLastError());
         Sleep(5000);
      }
      li_8++;
   }
}

int f0_6(int a_magic_0) {
   int order_total_4 = OrdersTotal();
   int count_8 = 0;
   for (g_pos_164 = 0; g_pos_164 < order_total_4; g_pos_164++) {
      OrderSelect(g_pos_164, SELECT_BY_POS);
      if (OrderSymbol() == Symbol() && OrderType() == OP_BUY || OrderType() == OP_SELL && OrderMagicNumber() == a_magic_0) count_8++;
   }
   return (count_8);
}

int f0_2(int ai_unused_0) {
   int order_total_4 = OrdersTotal();
   int count_8 = 0;
   for (g_pos_164 = 0; g_pos_164 < order_total_4; g_pos_164++) {
      OrderSelect(g_pos_164, SELECT_BY_POS);
      if (OrderType() == OP_BUY || OrderType() == OP_SELL) count_8++;
   }
   return (count_8);
}

int f0_4(int a_magic_0) {
   int order_total_4 = OrdersTotal();
   int count_8 = 0;
   for (g_pos_164 = 0; g_pos_164 < order_total_4; g_pos_164++) {
      OrderSelect(g_pos_164, SELECT_BY_POS);
      if (OrderSymbol() == Symbol() && OrderType() == OP_BUY && OrderMagicNumber() == a_magic_0) count_8++;
   }
   return (count_8);
}

int f0_5(int a_magic_0) {
   int order_total_4 = OrdersTotal();
   int count_8 = 0;
   for (g_pos_164 = 0; g_pos_164 < order_total_4; g_pos_164++) {
      OrderSelect(g_pos_164, SELECT_BY_POS);
      if (OrderSymbol() == Symbol() && OrderType() == OP_SELL && OrderMagicNumber() == a_magic_0) count_8++;
   }
   return (count_8);
}

void f0_8() {
   int li_0 = 15;
   string name_4 = "Logo" + "0";
   if (ObjectFind(name_4) == -1) {
      ObjectCreate(name_4, OBJ_LABEL, 0, 0, 0);
      ObjectSet(name_4, OBJPROP_CORNER, 0);
      ObjectSet(name_4, OBJPROP_XDISTANCE, 10);
      ObjectSet(name_4, OBJPROP_YDISTANCE, 1 * li_0 + 5);
   }
   ObjectSetText(name_4, "R2TAN SIMPLE MARTI EA - 2015 V.1.0", 8, "Verdana", IndianRed);
   name_4 = "Logo" + "1";
   if (ObjectFind(name_4) == -1) {
      ObjectCreate(name_4, OBJ_LABEL, 0, 0, 0);
      ObjectSet(name_4, OBJPROP_CORNER, 0);
      ObjectSet(name_4, OBJPROP_XDISTANCE, 10);
      ObjectSet(name_4, OBJPROP_YDISTANCE, li_0 * 2);
   }
   ObjectSetText(name_4, "_____________________________", 8, "Verdana", DodgerBlue);
   name_4 = "Logo" + "2";
   if (ObjectFind(name_4) == -1) {
      ObjectCreate(name_4, OBJ_LABEL, 0, 0, 0);
      ObjectSet(name_4, OBJPROP_CORNER, 0);
      ObjectSet(name_4, OBJPROP_XDISTANCE, 10);
      ObjectSet(name_4, OBJPROP_YDISTANCE, 3 * li_0);
   }
   ObjectSetText(name_4, "AccountNumber : " + DoubleToStr(AccountNumber(), 0), 8, "Verdana", DodgerBlue);
   name_4 = "Logo" + "3";
   if (ObjectFind(name_4) == -1) {
      ObjectCreate(name_4, OBJ_LABEL, 0, 0, 0);
      ObjectSet(name_4, OBJPROP_CORNER, 0);
      ObjectSet(name_4, OBJPROP_XDISTANCE, 10);
      ObjectSet(name_4, OBJPROP_YDISTANCE, li_0 * 4);
   }
   ObjectSetText(name_4, TerminalCompany(), 8, "Verdana", DodgerBlue);
   name_4 = "Logo" + "4";
   if (ObjectFind(name_4) == -1) {
      ObjectCreate(name_4, OBJ_LABEL, 0, 0, 0);
      ObjectSet(name_4, OBJPROP_CORNER, 0);
      ObjectSet(name_4, OBJPROP_XDISTANCE, 10);
      ObjectSet(name_4, OBJPROP_YDISTANCE, 5 * li_0);
   }
   ObjectSetText(name_4, "Current Server Time : " + TimeToStr(TimeCurrent(), TIME_SECONDS), 8, "Verdana", DodgerBlue);
   name_4 = "Logo" + "5";
   if (ObjectFind(name_4) == -1) {
      ObjectCreate(name_4, OBJ_LABEL, 0, 0, 0);
      ObjectSet(name_4, OBJPROP_CORNER, 0);
      ObjectSet(name_4, OBJPROP_XDISTANCE, 10);
      ObjectSet(name_4, OBJPROP_YDISTANCE, 6 * li_0 - 5);
   }
   ObjectSetText(name_4, "_____________________________", 8, "Verdana", DodgerBlue);
   name_4 = "Logo" + "6";
   if (ObjectFind(name_4) == -1) {
      ObjectCreate(name_4, OBJ_LABEL, 0, 0, 0);
      ObjectSet(name_4, OBJPROP_CORNER, 0);
      ObjectSet(name_4, OBJPROP_XDISTANCE, 10);
      ObjectSet(name_4, OBJPROP_YDISTANCE, 7 * li_0);
   }
   ObjectSetText(name_4, "Mode : " + gs_search_356, 8, "Verdana", DodgerBlue);
   name_4 = "Logo" + "7";
   if (ObjectFind(name_4) == -1) {
      ObjectCreate(name_4, OBJ_LABEL, 0, 0, 0);
      ObjectSet(name_4, OBJPROP_CORNER, 0);
      ObjectSet(name_4, OBJPROP_XDISTANCE, 10);
      ObjectSet(name_4, OBJPROP_YDISTANCE, li_0 * 8);
   }
   ObjectSetText(name_4, "Open orders total : " + DoubleToStr(gi_380, 0), 8, "Verdana", DodgerBlue);
   name_4 = "Logo" + "8";
   if (ObjectFind(name_4) == -1) {
      ObjectCreate(name_4, OBJ_LABEL, 0, 0, 0);
      ObjectSet(name_4, OBJPROP_CORNER, 0);
      ObjectSet(name_4, OBJPROP_XDISTANCE, 10);
      ObjectSet(name_4, OBJPROP_YDISTANCE, 9 * li_0);
   }
   ObjectSetText(name_4, "Open orders on symbol : " + DoubleToStr(gi_376, 0), 8, "Verdana", DodgerBlue);
   name_4 = "Logo" + "9";
   if (ObjectFind(name_4) == -1) {
      ObjectCreate(name_4, OBJ_LABEL, 0, 0, 0);
      ObjectSet(name_4, OBJPROP_CORNER, 0);
      ObjectSet(name_4, OBJPROP_XDISTANCE, 10);
      ObjectSet(name_4, OBJPROP_YDISTANCE, 10 * li_0);
   }
   ObjectSetText(name_4, "Sensitivity : " + DoubleToStr(Sensitivity, 0) + " StartTake : " + DoubleToStr(StartTake, 0), 8, "Verdana", DodgerBlue);
   name_4 = "Logo" + "10";
   if (ObjectFind(name_4) == -1) {
      ObjectCreate(name_4, OBJ_LABEL, 0, 0, 0);
      ObjectSet(name_4, OBJPROP_CORNER, 0);
      ObjectSet(name_4, OBJPROP_XDISTANCE, 10);
      ObjectSet(name_4, OBJPROP_YDISTANCE, 11 * li_0);
   }
   ObjectSetText(name_4, "Lot multiplier : " + DoubleToStr(K_NextLot, 1), 8, "Verdana", DodgerBlue);
   name_4 = "Logo" + "11";
   if (ObjectFind(name_4) == -1) {
      ObjectCreate(name_4, OBJ_LABEL, 0, 0, 0);
      ObjectSet(name_4, OBJPROP_CORNER, 0);
      ObjectSet(name_4, OBJPROP_XDISTANCE, 10);
      ObjectSet(name_4, OBJPROP_YDISTANCE, 12 * li_0);
   }
   ObjectSetText(name_4, "Start lot : " + DoubleToStr(Lots, 2) + "  Min lot : " + DoubleToStr(MarketInfo(Symbol(), MODE_MINLOT), 2), 8, "Verdana", DodgerBlue);
   name_4 = "Logo" + "12";
   if (ObjectFind(name_4) == -1) {
      ObjectCreate(name_4, OBJ_LABEL, 0, 0, 0);
      ObjectSet(name_4, OBJPROP_CORNER, 0);
      ObjectSet(name_4, OBJPROP_XDISTANCE, 10);
      ObjectSet(name_4, OBJPROP_YDISTANCE, 13 * li_0);
   }
   ObjectSetText(name_4, "Trading time : " + TimeStart + " - " + TimeEnd, 8, "Verdana", DodgerBlue);
   name_4 = "Logo" + "13";
   if (ObjectFind(name_4) == -1) {
      ObjectCreate(name_4, OBJ_LABEL, 0, 0, 0);
      ObjectSet(name_4, OBJPROP_CORNER, 0);
      ObjectSet(name_4, OBJPROP_XDISTANCE, 10);
      ObjectSet(name_4, OBJPROP_YDISTANCE, 14 * li_0);
   }
   ObjectSetText(name_4, "Hedging mode : " + gs_364, 8, "Verdana", DodgerBlue);
   name_4 = "Logo" + "14";
   if (ObjectFind(name_4) == -1) {
      ObjectCreate(name_4, OBJ_LABEL, 0, 0, 0);
      ObjectSet(name_4, OBJPROP_CORNER, 0);
      ObjectSet(name_4, OBJPROP_XDISTANCE, 10);
      ObjectSet(name_4, OBJPROP_YDISTANCE, 15 * li_0 - 5);
   }
   ObjectSetText(name_4, "_____________________________", 8, "Verdana", DodgerBlue);
}

void f0_7() {
   string name_0 = "Logo" + "27";
   if (ObjectFind(name_0) == -1) {
      ObjectCreate(name_0, OBJ_LABEL, 0, 0, 0);
      ObjectSet(name_0, OBJPROP_CORNER, 3);
      ObjectSet(name_0, OBJPROP_XDISTANCE, 5);
      ObjectSet(name_0, OBJPROP_YDISTANCE, 5);
   }
   ObjectSetText(name_0, "http://R2Tan.com", 8, "Verdana", Silver);
   name_0 = "Logo" + "25";
   if (ObjectFind(name_0) == -1) {
      ObjectCreate(name_0, OBJ_LABEL, 0, 0, 0);
      ObjectSet(name_0, OBJPROP_CORNER, 3);
      ObjectSet(name_0, OBJPROP_XDISTANCE, 5);
      ObjectSet(name_0, OBJPROP_YDISTANCE, 20);
   }
   ObjectSetText(name_0, "R2TAN CB EA", 10, "Verdana", Red);
}

int calc(double a0, double a1, double a2, double a3, double a4, double a5, double a6, double a7, double a8, double a9, int a10, int a11, double a12) {
  int v13;

  v13 = 0;
  if ((a11 * a10) * a12 + a0 < (a1 + a2 + a3) / 3.0 )
    v13 = 72737;
  if ( a9 - (a11 * a10) * a12 > (a1 + a2 + a3) / 3.0 )
    v13 = -72737;
  return (v13);
}


avatar
12985
WHRoeder 2015.04.27 14:54 #
 
int gi_132 = 211;
int gi_136 = 5;
int gi_140;
  1. Don't paste code
    Play video
    Please edit your post.
    For large amounts of code, attach it.

  2. Ask the owner of the source code to give it to you or have him convert it for you.

    Decompiled code is stolen code. Either you are a thief, a fence, or the receiver of stolen (intellectual) property. Either way we will not be an accomplice after the fact to theft. See also https://forum.mql4.com/41864#490649

    If you post decompiled code again, you will likely be banned

    Don't tell us you found it on the 'net: if someone stole your bank details and uploaded them on to the internet, is it OK for everyone to use them because "someone uploaded it, I don't know why I can't use that"?

avatar
273
sheriffonline 2015.04.27 15:36 #
 
Its decompiled code. Ask the owner of the source code.
Back to topics list  

To add comments, please log in or register