Navigation:Home > Content >

Greenbuxprofit~.mq4

Time: 2017-02-14 | Download file:Greenbuxprofit~.mq4

/*
   G e n e r a t e d  by ex4-to-mq4 decompiler FREEWARE 4.0.509.5
   Website: H t TP: //w W W . me T aqu ot eS .N eT
   E-mail : S u pPo r t @ M E T aq Uo te S.NE T
*/

extern string TimeFrame = "H1";
extern bool Use_Trade_Time = FALSE;
extern string Time_Start = "07:00";
extern string Time_Stop = "21:00";
extern string str1 = "----- ZigZag -----";
extern int ExtDepth = 12;
extern int ExtDeviation = 5;
extern int ExtBackstep = 3;
extern string str2 = "----- Первичные ордера -----";
extern int Dist = 10;
extern int StopLoss = 50;
extern int TakeProfit = 50;
extern int Life_Time_First = 3;
extern int Lot_Variant = 1;
extern double Lot_Fix = 0.1;
extern double Balance_Start = 1000.0;
extern double Balance_Step = 100.0;
extern double Lot_Start = 0.1;
extern double Lot_Step = 0.01;
extern string str3 = "----- Серии ордеров -----";
extern bool Use_Series = TRUE;
extern int Orders_Max = 7;
extern double Lot_K = 2.0;
extern int Life_Time_Series = 7;
extern bool Use_Series_Bezubytok = TRUE;
extern bool Use_Series_TrailingStop = TRUE;
extern string str4 = "--------------";
extern string str5 = "----- Безубыток -----";
extern int Profit_Size = 20;
extern int Bezubytok_Size = 1;
extern string str6 = "----- ТрейлингСтоп -----";
extern int TrailingStop = 20;
extern int TrailingStep = 1;
extern string str7 = "--------------";
extern string Сomment = "Сomment";
extern bool Sound = TRUE;
extern string Sound_Name = "news.wav";
extern int Slippage = 3;
extern int Magic_Number = 777;
string Gs_304 = "";
int G_timeframe_312;
int G_stoplevel_316;
int G_spread_320;
int G_freezelevel_324;
double Gd_328;
double Gd_336;
double Gd_344;
int G_datetime_352;

// E37F0136AA3FFAF149B351F6A4C948E9
int init() {
   f0_18();
   f0_3();
   return (0);
}

// 52D46093050F38C27267BCE42543EF60
int deinit() {
   return (0);
}

// EA2B2676C28C0DB26D39331A336C6B92
int start() {
   double Ld_0;
   double Ld_8;
   double Ld_16;
   G_stoplevel_316 = MarketInfo(Symbol(), MODE_STOPLEVEL);
   G_spread_320 = MarketInfo(Symbol(), MODE_SPREAD);
   G_freezelevel_324 = MarketInfo(Symbol(), MODE_FREEZELEVEL);
   if (G_datetime_352 == 0) {
      if (f0_4(Symbol()) == 0) G_datetime_352 = TimeCurrent();
      else G_datetime_352 = 1;
   }
   f0_10();
   f0_17();
   f0_8();
   f0_5();
   if (f0_15() == 1) {
      if (Gd_336 > 0.0 && f0_16(OP_BUYSTOP, Gd_336) == 0) {
         Ld_0 = Gd_336;
         Gs_304 = "1-" + " " + Сomment;
         if (NormalizeDouble(Ld_0 - Ask, Digits) > NormalizeDouble(G_stoplevel_316 * Point, Digits)) {
            if (StopLoss > 0 && StopLoss >= G_stoplevel_316 + G_spread_320) Ld_8 = Ld_0 - StopLoss * Point;
            if (TakeProfit > 0 && TakeProfit >= G_stoplevel_316) Ld_16 = Ld_0 + TakeProfit * Point;
            f0_13(Symbol(), OP_BUYSTOP, f0_12(), Ld_0, Ld_8, Ld_16, Gs_304, 0);
         }
      }
      if (Gd_344 > 0.0 && f0_16(OP_SELLSTOP, Gd_344) == 0) {
         Ld_0 = Gd_344;
         Gs_304 = "1-" + " " + Сomment;
         if (NormalizeDouble(Bid - Ld_0, Digits) > NormalizeDouble(G_stoplevel_316 * Point, Digits)) {
            if (StopLoss > 0 && StopLoss >= G_stoplevel_316 + G_spread_320) Ld_8 = Ld_0 + StopLoss * Point;
            if (TakeProfit > 0 && TakeProfit >= G_stoplevel_316) Ld_16 = Ld_0 - TakeProfit * Point;
            f0_13(Symbol(), OP_SELLSTOP, f0_12(), Ld_0, Ld_8, Ld_16, Gs_304, 0);
         }
      }
   }
   if (Profit_Size > 0 && Profit_Size - Bezubytok_Size >= G_stoplevel_316) {
      for (int pos_24 = 0; pos_24 < OrdersTotal(); pos_24++) {
         OrderSelect(pos_24, SELECT_BY_POS, MODE_TRADES);
         if (OrderMagicNumber() == Magic_Number)
            if (f0_2() == 1 || Use_Series_Bezubytok == TRUE) f0_14();
      }
   }
   if (TrailingStop > 0 && TrailingStop >= G_stoplevel_316) {
      for (pos_24 = 0; pos_24 < OrdersTotal(); pos_24++) {
         OrderSelect(pos_24, SELECT_BY_POS, MODE_TRADES);
         if (OrderMagicNumber() == Magic_Number)
            if (f0_2() == 1 || Use_Series_TrailingStop == TRUE) f0_7();
      }
   }
   return (0);
}

// AA5EA51BFAC7B64E723BF276E0075513
int f0_13(string A_symbol_0, int A_cmd_8, double A_lots_12, double Ad_20, double Ad_28, double Ad_36, string A_comment_44, int A_datetime_52) {
   color color_56;
   if (A_cmd_8 == OP_BUY || A_cmd_8 == OP_BUYSTOP) color_56 = Blue;
   else color_56 = Red;
   int ticket_60 = OrderSend(A_symbol_0, A_cmd_8, A_lots_12, NormalizeDouble(Ad_20, Digits), Slippage, NormalizeDouble(Ad_28, Digits), NormalizeDouble(Ad_36, Digits),
      A_comment_44, Magic_Number, A_datetime_52, color_56);
   if (ticket_60 > 0)
      if ((!IsTesting()) && Sound) PlaySound(Sound_Name);
   Sleep(1000);
   if (ticket_60 > 0) return (1);
   return (0);
}

// 2569208C5E61CB15E209FFE323DB48B7
int f0_1(string A_symbol_0, int A_cmd_8) {
   int Li_ret_12;
   for (int pos_16 = 0; pos_16 < OrdersTotal(); pos_16++) {
      OrderSelect(pos_16, SELECT_BY_POS, MODE_TRADES);
      if (OrderSymbol() == A_symbol_0 && OrderMagicNumber() == Magic_Number)
         if (OrderType() == A_cmd_8) Li_ret_12++;
   }
   return (Li_ret_12);
}

// 50257C26C4E5E915F022247BABD914FE
int f0_4(int Ai_unused_0) {
   int Li_ret_4;
   for (int pos_8 = 0; pos_8 < OrdersTotal(); pos_8++) {
      OrderSelect(pos_8, SELECT_BY_POS, MODE_TRADES);
      if (OrderMagicNumber() == Magic_Number) Li_ret_4++;
   }
   return (Li_ret_4);
}

// FD4055E1AC0A7D690C66D37B2C70E529
void f0_18() {
   if (TimeFrame == "M1" || TimeFrame == "М1") G_timeframe_312 = 1;
   if (TimeFrame == "M5" || TimeFrame == "М5") G_timeframe_312 = 5;
   if (TimeFrame == "M15" || TimeFrame == "М15") G_timeframe_312 = 15;
   if (TimeFrame == "M30" || TimeFrame == "М30") G_timeframe_312 = 30;
   if (TimeFrame == "H1" || TimeFrame == "Н1") G_timeframe_312 = 60;
   if (TimeFrame == "H4" || TimeFrame == "Н4") G_timeframe_312 = 240;
   if (TimeFrame == "D1") G_timeframe_312 = 1440;
   if (TimeFrame == "W1") G_timeframe_312 = 10080;
   if (TimeFrame == "MN1") G_timeframe_312 = 43200;
}

// 78BAA8FAE18F93570467778F2E829047
void f0_9(string As_unused_0, int A_cmd_8) {
   int Li_12;
   while (f0_1(Symbol(), A_cmd_8) > 0) {
      Li_12 = OrdersTotal();
      for (int pos_16 = 0; pos_16 < Li_12; pos_16++) {
         OrderSelect(pos_16, SELECT_BY_POS, MODE_TRADES);
         if (OrderMagicNumber() == Magic_Number) {
            if (OrderType() == A_cmd_8) {
               if (A_cmd_8 == OP_BUY) {
                  RefreshRates();
                  if (OrderClose(OrderTicket(), OrderLots(), NormalizeDouble(Bid, Digits), Slippage, Violet)) {
                     if (pos_16 < Li_12 - 1) {
                        pos_16--;
                        Li_12--;
                     }
                  }
                  Sleep(500);
               }
               if (A_cmd_8 == OP_SELL) {
                  RefreshRates();
                  if (OrderClose(OrderTicket(), OrderLots(), NormalizeDouble(Ask, Digits), Slippage, Violet)) {
                     if (pos_16 < Li_12 - 1) {
                        pos_16--;
                        Li_12--;
                     }
                  }
                  Sleep(500);
               }
               if (A_cmd_8 == OP_BUYSTOP || A_cmd_8 == OP_SELLLIMIT) {
                  RefreshRates();
                  if (NormalizeDouble(OrderOpenPrice() - Ask, Digits) <= NormalizeDouble(G_freezelevel_324 * Point, Digits)) return;
                  if (OrderDelete(OrderTicket())) {
                     if (pos_16 < Li_12 - 1) {
                        pos_16--;
                        Li_12--;
                     }
                  }
                  Sleep(500);
               }
               if (A_cmd_8 == OP_SELLSTOP || A_cmd_8 == OP_BUYLIMIT) {
                  RefreshRates();
                  if (NormalizeDouble(Bid - OrderOpenPrice(), Digits) <= NormalizeDouble(G_freezelevel_324 * Point, Digits)) return;
                  if (OrderDelete(OrderTicket())) {
                     if (pos_16 < Li_12 - 1) {
                        pos_16--;
                        Li_12--;
                     }
                  }
                  Sleep(500);
               }
            }
         }
      }
      Sleep(500);
   }
}

// 945D754CB0DC06D04243FCBA25FC0802
void f0_10() {
   double Ld_0;
   double Ld_8;
   double Ld_16;
   int Li_24;
   Gd_336 = 0;
   Gd_344 = 0;
   while (true) {
      Ld_0 = NormalizeDouble(iCustom(NULL, G_timeframe_312, "ZigZag", ExtDepth, ExtDeviation, ExtBackstep, 0, Li_24), Digits);
      if (Ld_0 > 0.0) {
         if (Ld_8 == 0.0) {
            Ld_8 = Ld_0;
            Li_24++;
            continue;
         }
         if (Ld_16 == 0.0) {
            Ld_16 = Ld_0;
            break;
         }
      }
      Li_24++;
   }
   if (Ld_16 >= Ld_8) {
      Gd_336 = Ld_16 + Dist * Point;
      return;
   }
   Gd_344 = Ld_16 - Dist * Point;
}

// F4F2EE5CE6F3F7678B6B3F2A5D4685D7
int f0_16(int A_cmd_0, double Ad_4) {
   bool cmd_12;
   bool Li_ret_16 = FALSE;
   if (A_cmd_0 == OP_BUYSTOP) cmd_12 = FALSE;
   if (A_cmd_0 == OP_SELLSTOP) cmd_12 = TRUE;
   for (int pos_20 = OrdersTotal() - 1; pos_20 >= 0; pos_20--) {
      OrderSelect(pos_20, SELECT_BY_POS, MODE_TRADES);
      if (OrderMagicNumber() == Magic_Number) {
         if (OrderType() == A_cmd_0 || OrderType() == cmd_12) {
            if (NormalizeDouble(OrderOpenPrice(), Digits) == NormalizeDouble(Ad_4, Digits)) {
               Li_ret_16 = TRUE;
               break;
            }
         }
      }
   }
   return (Li_ret_16);
}

// 5710F6E623305B2C1458238C9757193B
double f0_5() {
   int ticket_0;
   int Li_4;
   int cmd_8;
   double Ld_12;
   double Ld_20;
   double Ld_28;
   double order_lots_36;
   if (Use_Series == FALSE) return (0);
   for (int pos_44 = OrdersHistoryTotal() - 1; pos_44 >= 0; pos_44--) {
      OrderSelect(pos_44, SELECT_BY_POS, MODE_HISTORY);
      if (OrderMagicNumber() == Magic_Number) {
         if (!((OrderType() == OP_BUY || OrderType() == OP_SELL))) break;
         if (OrderCloseTime() < G_datetime_352) break;
         if (OrderProfit() >= 0.0) break;
         cmd_8 = OrderType();
         ticket_0 = OrderTicket();
         Ld_12 = OrderOpenPrice();
         order_lots_36 = OrderLots();
         Li_4 = f0_2();
         if (!((Li_4 < Orders_Max && f0_6(ticket_0, Ld_12) == 0))) break;
         Gs_304 = DoubleToStr(Li_4 + 1, 0) + "-" + DoubleToStr(ticket_0, 0) + "#" + " " + Сomment;
         order_lots_36 = NormalizeDouble(order_lots_36 * Lot_K, Gd_328);
         if (cmd_8 == OP_BUY) {
            if (NormalizeDouble(Ld_12 - Ask, Digits) > NormalizeDouble(G_stoplevel_316 * Point, Digits)) {
               if (StopLoss > 0 && StopLoss >= G_stoplevel_316 + G_spread_320) Ld_20 = Ld_12 - StopLoss * Point;
               if (TakeProfit > 0 && TakeProfit >= G_stoplevel_316) Ld_28 = Ld_12 + TakeProfit * Point;
               f0_13(Symbol(), OP_BUYSTOP, order_lots_36, Ld_12, Ld_20, Ld_28, Gs_304, 0);
            }
            if (NormalizeDouble(Ask, Digits) >= NormalizeDouble(Ld_12, Digits)) {
               Ld_12 = Ask;
               if (StopLoss > 0 && StopLoss >= G_stoplevel_316 + G_spread_320) Ld_20 = Ld_12 - StopLoss * Point;
               if (TakeProfit > 0 && TakeProfit >= G_stoplevel_316) Ld_28 = Ld_12 + TakeProfit * Point;
               f0_13(Symbol(), OP_BUY, order_lots_36, Ld_12, Ld_20, Ld_28, Gs_304, 0);
            }
         }
         if (cmd_8 != OP_SELL) break;
         if (NormalizeDouble(Bid - Ld_12, Digits) > NormalizeDouble(G_stoplevel_316 * Point, Digits)) {
            if (StopLoss > 0 && StopLoss >= G_stoplevel_316 + G_spread_320) Ld_20 = Ld_12 + StopLoss * Point;
            if (TakeProfit > 0 && TakeProfit >= G_stoplevel_316) Ld_28 = Ld_12 - TakeProfit * Point;
            f0_13(Symbol(), OP_SELLSTOP, order_lots_36, Ld_12, Ld_20, Ld_28, Gs_304, 0);
         }
         if (NormalizeDouble(Bid, Digits) > NormalizeDouble(Ld_12, Digits)) break;
         Ld_12 = Bid;
         if (StopLoss > 0 && StopLoss >= G_stoplevel_316 + G_spread_320) Ld_20 = Ld_12 + StopLoss * Point;
         if (TakeProfit > 0 && TakeProfit >= G_stoplevel_316) Ld_28 = Ld_12 - TakeProfit * Point;
         f0_13(Symbol(), OP_SELL, order_lots_36, Ld_12, Ld_20, Ld_28, Gs_304, 0);
         break;
      }
   }
   return (0.0);
}

// 58B0897F29A3AD862616D6CBF39536ED
int f0_6(int Ai_0, double Ad_4) {
   bool Li_ret_12 = FALSE;
   for (int pos_16 = OrdersTotal() - 1; pos_16 >= 0; pos_16--) {
      OrderSelect(pos_16, SELECT_BY_POS, MODE_TRADES);
      if (OrderMagicNumber() == Magic_Number) {
         if (f0_0() == Ai_0) {
            Li_ret_12 = TRUE;
            break;
         }
      }
   }
   if (Li_ret_12 == FALSE) {
      for (pos_16 = OrdersHistoryTotal() - 1; pos_16 >= 0; pos_16--) {
         OrderSelect(pos_16, SELECT_BY_POS, MODE_HISTORY);
         if (OrderMagicNumber() == Magic_Number) {
            if (OrderCloseTime() < G_datetime_352) break;
            if (OrderType() == OP_BUY || OrderType() == OP_SELL) {
               if (f0_0() == Ai_0) {
                  Li_ret_12 = TRUE;
                  break;
               }
            }
            if (!((OrderType() == OP_BUYSTOP || OrderType() == OP_SELLSTOP))) break;
            if (NormalizeDouble(OrderOpenPrice(), Digits) != NormalizeDouble(Ad_4, Digits)) break;
            Li_ret_12 = TRUE;
            break;
         }
      }
   }
   return (Li_ret_12);
}

// 28EFB830D150E70A8BB0F12BAC76EF35
int f0_2() {
   int str2int_0;
   string Ls_4 = "";
   string Ls_12 = "";
   for (int Li_20 = 0; Li_20 < StringLen(OrderComment()); Li_20++) {
      Ls_4 = StringSubstr(OrderComment(), Li_20, 1);
      if (Ls_4 == "-") break;
      Ls_12 = Ls_12 + Ls_4;
   }
   str2int_0 = StrToInteger(Ls_12);
   return (str2int_0);
}

// 09CBB5F5CE12C31A043D5C81BF20AA4A
int f0_0() {
   int str2int_0;
   string Ls_4 = "";
   string Ls_12 = "";
   for (int Li_20 = StringFind(OrderComment(), "-", 0) + 1; Li_20 < StringLen(OrderComment()); Li_20++) {
      Ls_4 = StringSubstr(OrderComment(), Li_20, 1);
      if (Ls_4 == "#") break;
      Ls_12 = Ls_12 + Ls_4;
   }
   str2int_0 = StrToInteger(Ls_12);
   return (str2int_0);
}

// A9B24A824F70CC1232D1C2BA27039E8D
double f0_12() {
   double Ld_ret_0;
   int Li_8;
   double Ld_12 = MarketInfo(Symbol(), MODE_MINLOT);
   double Ld_20 = MarketInfo(Symbol(), MODE_MAXLOT);
   if (Lot_Variant == 1) Ld_ret_0 = Lot_Fix;
   if (Lot_Variant == 2) {
      if (AccountBalance() > Balance_Start) {
         Li_8 = (AccountBalance() - Balance_Start) / Balance_Step;
         Ld_ret_0 = Lot_Start + Li_8 * Lot_Step;
      } else Ld_ret_0 = Lot_Start;
   }
   Ld_ret_0 = NormalizeDouble(Ld_ret_0, Gd_328);
   if (Ld_ret_0 < Ld_12) Ld_ret_0 = Ld_12;
   if (Ld_ret_0 > Ld_20) Ld_ret_0 = Ld_20;
   return (Ld_ret_0);
}

// 6ABA3523C7A75AAEA41CC0DEC7953CC5
void f0_8() {
   int Li_0;
   int Li_4 = OrdersTotal();
   for (int pos_8 = 0; pos_8 < Li_4; pos_8++) {
      OrderSelect(pos_8, SELECT_BY_POS, MODE_TRADES);
      if (OrderMagicNumber() == Magic_Number) {
         if (OrderType() == OP_BUYSTOP || OrderType() == OP_SELLSTOP) {
            Li_0 = f0_2();
            if ((TimeCurrent() - OrderOpenTime() >= 3600 * Life_Time_First && Li_0 == 1) || (TimeCurrent() - OrderOpenTime() >= 3600 * Life_Time_Series && Li_0 > 1)) {
               if (OrderDelete(OrderTicket()) == 1) {
                  if (pos_8 < Li_4 - 1) {
                     pos_8--;
                     Li_4--;
                  }
               }
               Sleep(500);
            }
         }
      }
   }
   if (f0_15() == 0) {
      f0_9(Symbol(), OP_SELLSTOP);
      f0_9(Symbol(), OP_BUYSTOP);
   }
}

// F7B1F0AA13347699EFAE0D924298CB02
void f0_17() {
   double Ld_0;
   double Ld_8;
   int Li_16 = OrdersTotal();
   for (int pos_20 = 0; pos_20 < Li_16; pos_20++) {
      OrderSelect(pos_20, SELECT_BY_POS, MODE_TRADES);
      if (OrderMagicNumber() == Magic_Number) {
         if (OrderType() == OP_BUY) {
            Ld_0 = OrderOpenPrice() - StopLoss * Point;
            Ld_8 = OrderOpenPrice() + TakeProfit * Point;
            if (NormalizeDouble(Bid, Digits) <= NormalizeDouble(Ld_0, Digits) || NormalizeDouble(Bid, Digits) >= NormalizeDouble(Ld_8, Digits)) {
               RefreshRates();
               if (OrderClose(OrderTicket(), OrderLots(), NormalizeDouble(Bid, Digits), Slippage, Violet)) {
                  if (pos_20 < Li_16 - 1) {
                     pos_20--;
                     Li_16--;
                  }
               }
               Sleep(500);
            }
         }
         if (OrderType() == OP_SELL) {
            Ld_0 = OrderOpenPrice() + StopLoss * Point;
            Ld_8 = OrderOpenPrice() - TakeProfit * Point;
            if (NormalizeDouble(Ask, Digits) >= NormalizeDouble(Ld_0, Digits) || NormalizeDouble(Ask, Digits) <= NormalizeDouble(Ld_8, Digits)) {
               RefreshRates();
               if (OrderClose(OrderTicket(), OrderLots(), NormalizeDouble(Ask, Digits), Slippage, Violet)) {
                  if (pos_20 < Li_16 - 1) {
                     pos_20--;
                     Li_16--;
                  }
               }
               Sleep(500);
            }
         }
      }
   }
}

// D1DDCE31F1A86B3140880F6B1877CBF8
void f0_14() {
   double bid_0;
   double ask_8;
   double point_16 = MarketInfo(OrderSymbol(), MODE_POINT);
   if (OrderType() == OP_BUY) {
      bid_0 = MarketInfo(OrderSymbol(), MODE_BID);
      if (NormalizeDouble(bid_0 - OrderOpenPrice(), Digits) >= NormalizeDouble(Profit_Size * point_16, Digits)) {
         if (NormalizeDouble(OrderStopLoss(), Digits) < NormalizeDouble(OrderOpenPrice(), Digits)) {
            f0_11(OrderOpenPrice() + Bezubytok_Size * point_16);
            return;
         }
      }
   }
   if (OrderType() == OP_SELL) {
      ask_8 = MarketInfo(OrderSymbol(), MODE_ASK);
      if (NormalizeDouble(OrderOpenPrice() - ask_8, Digits) >= NormalizeDouble(Profit_Size * point_16, Digits))
         if (NormalizeDouble(OrderStopLoss(), Digits) > NormalizeDouble(OrderOpenPrice(), Digits) || OrderStopLoss() == 0.0) f0_11(OrderOpenPrice() - Bezubytok_Size * point_16);
   }
}

// 689C35E4872BA754D7230B8ADAA28E48
void f0_7() {
   double bid_0;
   double ask_8;
   double point_16 = MarketInfo(OrderSymbol(), MODE_POINT);
   if (OrderType() == OP_BUY) {
      bid_0 = MarketInfo(OrderSymbol(), MODE_BID);
      if (bid_0 - OrderOpenPrice() > TrailingStop * point_16) {
         if (OrderStopLoss() < bid_0 - (TrailingStop + TrailingStep - 1) * point_16) {
            f0_11(bid_0 - TrailingStop * point_16);
            return;
         }
      }
   }
   if (OrderType() == OP_SELL) {
      ask_8 = MarketInfo(OrderSymbol(), MODE_ASK);
      if (OrderOpenPrice() - ask_8 > TrailingStop * point_16)
         if (OrderStopLoss() > ask_8 + (TrailingStop + TrailingStep - 1) * point_16 || OrderStopLoss() == 0.0) f0_11(ask_8 + TrailingStop * point_16);
   }
}

// 9B1AEE847CFB597942D106A4135D4FE6
void f0_11(double A_price_0) {
   bool bool_8 = OrderModify(OrderTicket(), OrderOpenPrice(), A_price_0, OrderTakeProfit(), 0, CLR_NONE);
}

// D362D41CFF235C066CFB390D52F4EB13
int f0_15() {
   bool Li_ret_0 = FALSE;
   int str2time_4 = StrToTime(TimeToStr(iTime(NULL, PERIOD_D1, 0), TIME_DATE) + " " + Time_Start);
   int str2time_8 = StrToTime(TimeToStr(iTime(NULL, PERIOD_D1, 0), TIME_DATE) + " " + Time_Stop);
   if (Use_Trade_Time == FALSE) return (1);
   if (str2time_4 == str2time_8) return (1);
   if (str2time_4 < str2time_8)
      if (TimeCurrent() >= str2time_4 && TimeCurrent() < str2time_8) Li_ret_0 = TRUE;
   if (str2time_4 > str2time_8)
      if (TimeCurrent() >= str2time_4 || TimeCurrent() < str2time_8) Li_ret_0 = TRUE;
   return (Li_ret_0);
}

// 2FC9212C93C86A99B2C376C96453D3A4
void f0_3() {
   double lotstep_0 = MarketInfo(Symbol(), MODE_LOTSTEP);
   if (lotstep_0 == 0.1) Gd_328 = 1;
   if (lotstep_0 == 0.01) Gd_328 = 2;
}

Recommend