有您的持续关注
我们会做得更好

欧元英镑5分钟剥头皮EA EURGBP_M5



EURGBP_M5 EA用在欧元英镑五分钟图表,属于超短剥头皮类型。用在其它周期可自行测试。交易策略面临的问题仍然是盈亏比问题。

本网收集整理智能交易EA仅为MQL4编程爱好者提供语法及相关编程技巧的学习研究之用,智能交易存在极高的风险测试请用模拟盘,请勿用于实盘。EURGBP_M5 EA源码:

//+------------------------------------------------------------------+
//|                                                    EURGBP_M5.mq4 |
//|                                     Copyright 2016, QQ:125808047 |
//+------------------------------------------------------------------+
#property copyright "www.125808047.com"
#property link      "http://www.125808047.com/"

extern string comment = "TCS";
extern int magicbuy = 1234;
extern int magicsell = 4321;
extern string moneymanagement = "Money Management";
extern double lots = 0.1;
extern bool lotsoptimized = FALSE;
extern double risk = 1.0;
extern bool martingale = FALSE;
extern double multiplier = 2.0;
extern double minlot = 0.01;
extern double maxlot = 10.0;
extern double lotdigits = 2.0;
extern bool basketpercent = FALSE;
extern double profit = 10.0;
extern double loss = 30.0;
extern string ordersmanagement = "Order Management";
extern bool oppositeclose = FALSE;
extern bool reversesignals = FALSE;
extern int maxtrades = 1;
extern int tradesperbar = 100;
extern bool hidestop = FALSE;
extern bool hidetarget = FALSE;
extern double buystop = 55.0;
extern double buytarget = 4.0;
extern double sellstop = 45.0;
extern double selltarget = 4.0;
extern double trailingstart = 16.0;
extern double trailingstop = 5.0;
extern double trailingstep = 1.0;
extern double breakevengain = 0.0;
extern double breakeven = 0.0;
int gi_unused_280 = 225;
extern double slippage = 2.0;
extern double maxspread = 3.0;
extern string entrylogics = "Entry Logics";
extern int channeltf = 15;
extern int uppermamethod = 3;
extern int uppermaperiod = 3;
extern int uppermaprice = 2;
extern double uppermargin = 0.0;
extern int lowermamethod = 0;
extern int lowermaperiod = 2;
extern int lowermaprice = 3;
extern double lowermargin = 0.0;
extern double longmargin = 0.0;
extern double shortmargin = -0.5;
extern int shift = 1;
extern string timefilter = "Time Filter";
extern int gmtshift = 2;
extern bool filter = TRUE;
extern int starthour = 17;
extern int startminute = 0;
extern int endhour = 4;
extern int endminute = 0;
extern bool tradesunday = TRUE;
extern bool fridayfilter = TRUE;
extern int fridayend = 20;
datetime gt_unused_416;
datetime gt_unused_420;
int g_datetime_424;
int g_datetime_428;
double gd_432 = 0.0;
double g_ord_open_price_440 = 0.0;
double g_ord_open_price_448 = 0.0;
double g_ord_stoploss_456 = 0.0;
double g_ord_stoploss_464 = 0.0;
double g_ord_takeprofit_472 = 0.0;
double g_ord_takeprofit_480 = 0.0;
int g_ticket_488 = 0;
int g_ticket_492 = 0;
double g_price_496;
double g_price_504;
double gd_512;
double gd_520;
double g_ord_profit_544;
int g_pos_552;
int g_pos_556;
int g_pos_560;
int g_pos_564;
int g_digits_568;
int g_bars_572 = -1;
int g_count_576 = 0;
int g_count_580 = 0;
int g_ord_total_584;
int g_ticket_588;
int g_count_592 = 0;
int g_count_596 = 0;
int g_count_600 = 0;
int gi_unused_604 = 0;
int gi_unused_608 = 0;
int g_pos_612 = 0;
double gd_616 = 1.0;
double g_lots_624;
double gd_632 = 1.0;
bool cg = false;

int init() {
   int li_0;
   gt_unused_416 = Time[0];
   gt_unused_420 = Time[0];
   g_digits_568 = Digits;
   if (g_digits_568 == 3 || g_digits_568 == 5) {
      gd_512 = 10.0 * Point;
      gd_520 = 10;
   } else {
      gd_512 = Point;
      gd_520 = 1;
   }
   int l_ord_total_4 = OrdersTotal();
   if (li_0 == 0 && l_ord_total_4 > 0) {
      for (int l_pos_8 = 0; l_pos_8 < l_ord_total_4; l_pos_8++) {
         if (OrderSelect(l_pos_8, SELECT_BY_POS)) {
            if (OrderSymbol() == Symbol() && (OrderMagicNumber() == magicbuy || OrderMagicNumber() == magicsell)) {
               li_0 = NormalizeDouble(OrderLots() / lots, (MarketInfo(Symbol(), MODE_MINLOT) == 0.01) + 1);
               break;
            }
         }
      }
   }
   int l_hist_total_12 = OrdersHistoryTotal();
   if (li_0 == 0 && l_hist_total_12 > 0) {
      for (l_pos_8 = 0; l_pos_8 < l_hist_total_12; l_pos_8++) {
         if (OrderSelect(l_pos_8, SELECT_BY_POS, MODE_HISTORY)) {
            if (OrderSymbol() == Symbol() && (OrderMagicNumber() == magicbuy || OrderMagicNumber() == magicsell)) {
               li_0 = NormalizeDouble(OrderLots() / lots, (MarketInfo(Symbol(), MODE_MINLOT) == 0.01) + 1);
               break;
            }
         }
      }
   }
   if (li_0 > 0) gd_616 = li_0;
   return (0);
}

void deinit() {
  Comment("www.125808047.com");
}



int start() {
   double ld_8;
   double ld_16;
   g_ord_total_584 = OrdersTotal();
   if (breakevengain > 0.0) {
      for (int l_pos_0 = 0; l_pos_0 < g_ord_total_584; l_pos_0++) {
         cg = OrderSelect(l_pos_0, SELECT_BY_POS, MODE_TRADES);
         if (OrderType() <= OP_SELL && OrderSymbol() == Symbol() && (OrderMagicNumber() == magicbuy || OrderMagicNumber() == magicsell)) {
            if (OrderType() == OP_BUY) {
               if (NormalizeDouble(Bid - OrderOpenPrice(), g_digits_568) < NormalizeDouble(breakevengain * gd_512, g_digits_568)) continue;
               if (NormalizeDouble(OrderStopLoss() - OrderOpenPrice(), g_digits_568) >= NormalizeDouble(breakeven * gd_512, g_digits_568)) continue;
               cg = OrderModify(OrderTicket(), OrderOpenPrice(), NormalizeDouble(OrderOpenPrice() + breakeven * gd_512, g_digits_568), OrderTakeProfit(), 0, Blue);
               return (0);
            }
            if (NormalizeDouble(OrderOpenPrice() - Ask, g_digits_568) >= NormalizeDouble(breakevengain * gd_512, g_digits_568)) {
               if (NormalizeDouble(OrderOpenPrice() - OrderStopLoss(), g_digits_568) < NormalizeDouble(breakeven * gd_512, g_digits_568)) {
                  cg = OrderModify(OrderTicket(), OrderOpenPrice(), NormalizeDouble(OrderOpenPrice() - breakeven * gd_512, g_digits_568), OrderTakeProfit(), 0, Red);
                  return (0);
               }
            }
         }
      }
   }
   if (trailingstop > 0.0 && maxtrades > 1) {
      for (int l_pos_4 = 0; l_pos_4 < g_ord_total_584; l_pos_4++) {
         cg = OrderSelect(l_pos_4, SELECT_BY_POS, MODE_TRADES);
         if (OrderType() <= OP_SELL && OrderSymbol() == Symbol() && (OrderMagicNumber() == magicbuy || OrderMagicNumber() == magicsell)) {
            if (OrderType() == OP_BUY) {
               if (!(NormalizeDouble(Ask, g_digits_568) > NormalizeDouble(OrderOpenPrice() + trailingstart * gd_512, g_digits_568) && (NormalizeDouble(OrderStopLoss(), g_digits_568) < NormalizeDouble(Bid - (trailingstop +
                  trailingstep) * gd_512, g_digits_568) || OrderStopLoss() == 0.0))) continue;
               cg = OrderModify(OrderTicket(), OrderOpenPrice(), NormalizeDouble(Bid - trailingstop * gd_512, g_digits_568), OrderTakeProfit(), 0, Blue);
               return (0);
            }
            if (NormalizeDouble(Bid, g_digits_568) < NormalizeDouble(OrderOpenPrice() - trailingstart * gd_512, g_digits_568) && (NormalizeDouble(OrderStopLoss(), g_digits_568) > NormalizeDouble(Ask +
               (trailingstop + trailingstep) * gd_512, g_digits_568) || OrderStopLoss() == 0.0)) {
               cg = OrderModify(OrderTicket(), OrderOpenPrice(), NormalizeDouble(Ask + trailingstop * gd_512, g_digits_568), OrderTakeProfit(), 0, Red);
               return (0);
            }
         }
      }
   }
   if (trailingstop > 0.0 && maxtrades == 1) {
      g_count_600 = 0;
      g_count_592 = 0;
      g_count_596 = 0;
      for (g_pos_612 = 0; g_pos_612 < g_ord_total_584; g_pos_612++) {
         cg = OrderSelect(g_pos_612, SELECT_BY_POS, MODE_TRADES);
         if (OrderSymbol() == Symbol() && (OrderMagicNumber() == magicbuy || OrderMagicNumber() == magicsell) && OrderCloseTime() == 0) {
            g_count_600++;
            g_ord_profit_544 = OrderProfit();
            if (OrderType() == OP_BUY) {
               g_ticket_488 = OrderTicket();
               g_ord_open_price_440 = OrderOpenPrice();
               g_datetime_424 = OrderOpenTime();
               g_ord_stoploss_456 = OrderStopLoss();
               g_ord_takeprofit_472 = OrderTakeProfit();
               gi_unused_604 = OrderProfit();
               g_count_592++;
            }
            if (OrderType() == OP_SELL) {
               g_ticket_492 = OrderTicket();
               g_ord_open_price_448 = OrderOpenPrice();
               g_datetime_428 = OrderOpenTime();
               g_ord_stoploss_464 = OrderStopLoss();
               g_ord_takeprofit_480 = OrderTakeProfit();
               gi_unused_608 = OrderProfit();
               g_count_596++;
            }
         }
      }
      if (NormalizeDouble(g_ord_takeprofit_472 - Bid, g_digits_568) > trailingstart * gd_512 && g_count_592 > 0) cg = OrderModify(g_ticket_488, g_ord_open_price_440, g_ord_stoploss_456, NormalizeDouble(g_ord_takeprofit_472 - trailingstop * gd_512, g_digits_568), 0, Blue);
      if (NormalizeDouble(Bid - g_ord_takeprofit_480, g_digits_568) > trailingstart * gd_512 && g_count_596 > 0) cg = OrderModify(g_ticket_492, g_ord_open_price_448, g_ord_stoploss_464, NormalizeDouble(g_ord_takeprofit_480 + trailingstop * gd_512, g_digits_568), 0, Red);
   }
   if (basketpercent) {
      ld_8 = profit * (AccountBalance() / 100.0);
      ld_16 = loss * (AccountBalance() / 100.0);
      gd_432 = AccountEquity() - AccountBalance();
      if (gd_432 >= ld_8 || gd_432 <= (-1.0 * ld_16)) {
         for (g_pos_552 = g_ord_total_584 - 1; g_pos_552 >= 0; g_pos_552--) {
            cg = OrderSelect(g_pos_552, SELECT_BY_POS, MODE_TRADES);
            if (OrderSymbol() == Symbol() && OrderMagicNumber() == magicbuy && OrderType() == OP_BUY) cg = OrderClose(OrderTicket(), OrderLots(), Bid, slippage * gd_512);
            if (OrderSymbol() == Symbol() && OrderMagicNumber() == magicsell && OrderType() == OP_SELL) cg = OrderClose(OrderTicket(), OrderLots(), Ask, slippage * gd_512);
         }
         return (0);
      }
   }
   double l_ima_24 = iMA(Symbol(), channeltf, uppermaperiod, 0, uppermamethod, uppermaprice, shift);
   double l_ima_32 = iMA(Symbol(), channeltf, lowermaperiod, 0, lowermamethod, lowermaprice, shift);
   bool li_40 = TRUE;
   bool li_44 = TRUE;
   bool li_48 = FALSE;
   bool li_52 = FALSE;
   if (lotsoptimized && (martingale == FALSE || (martingale && g_ord_profit_544 >= 0.0))) lots = NormalizeDouble(AccountBalance() / 1000.0 * minlot * risk, lotdigits);
   if (lots < minlot) lots = minlot;
   if (lots > maxlot) lots = maxlot;
   if (tradesperbar == 1 && (TimeCurrent() - g_datetime_424 < Period() || TimeCurrent() - g_datetime_428 < Period())) {
      g_count_576 = 1;
      g_count_580 = 1;
   }
   bool li_56 = FALSE;
   bool li_60 = FALSE;
   if (Bid + longmargin * gd_512 < l_ima_32 + lowermargin * gd_512 && li_40) {
      if (reversesignals) li_60 = TRUE;
      else li_56 = TRUE;
   }
   if (Bid + shortmargin * gd_512 > l_ima_24 + uppermargin * gd_512 && li_44) {
      if (reversesignals) li_56 = TRUE;
      else li_60 = TRUE;
   }
   if (g_bars_572 != Bars) {
      g_count_576 = 0;
      g_count_580 = 0;
      g_bars_572 = Bars;
   }
   if ((oppositeclose && li_60) || li_48) {
      for (g_pos_552 = g_ord_total_584 - 1; g_pos_552 >= 0; g_pos_552--) {
         cg = OrderSelect(g_pos_552, SELECT_BY_POS, MODE_TRADES);
         if (OrderSymbol() == Symbol() && OrderMagicNumber() == magicbuy && OrderType() == OP_BUY) cg = OrderClose(OrderTicket(), OrderLots(), Bid, slippage * gd_512);
      }
   }
   if ((oppositeclose && li_56) || li_52) {
      for (g_pos_556 = g_ord_total_584 - 1; g_pos_556 >= 0; g_pos_556--) {
         cg = OrderSelect(g_pos_556, SELECT_BY_POS, MODE_TRADES);
         if (OrderSymbol() == Symbol() && OrderMagicNumber() == magicsell && OrderType() == OP_SELL) cg = OrderClose(OrderTicket(), OrderLots(), Ask, slippage * gd_512);
      }
   }
   if (hidestop) {
      for (g_pos_560 = g_ord_total_584 - 1; g_pos_560 >= 0; g_pos_560--) {
         cg = OrderSelect(g_pos_560, SELECT_BY_POS, MODE_TRADES);
         if (OrderSymbol() == Symbol() && OrderMagicNumber() == magicbuy && OrderType() == OP_BUY && buystop > 0.0 && Bid < OrderOpenPrice() - buystop * gd_512) cg = OrderClose(OrderTicket(), OrderLots(), Bid, slippage * gd_512);
         if (OrderSymbol() == Symbol() && OrderMagicNumber() == magicsell && OrderType() == OP_SELL && sellstop > 0.0 && Ask > OrderOpenPrice() + sellstop * gd_512) cg = OrderClose(OrderTicket(), OrderLots(), Ask, slippage * gd_512);
      }
   }
   if (hidetarget) {
      for (g_pos_564 = g_ord_total_584 - 1; g_pos_564 >= 0; g_pos_564--) {
         cg = OrderSelect(g_pos_564, SELECT_BY_POS, MODE_TRADES);
         if (OrderSymbol() == Symbol() && OrderMagicNumber() == magicbuy && OrderType() == OP_BUY && buytarget > 0.0 && Bid > OrderOpenPrice() + buytarget * gd_512) cg = OrderClose(OrderTicket(), OrderLots(), Bid, slippage * gd_512);
         if (OrderSymbol() == Symbol() && OrderMagicNumber() == magicsell && OrderType() == OP_SELL && selltarget > 0.0 && Ask < OrderOpenPrice() - selltarget * gd_512) cg = OrderClose(OrderTicket(), OrderLots(), Ask, slippage * gd_512);
      }
   }
   if ((filter && ((Hour() == starthour + gmtshift && Minute() < startminute) || (Hour() < starthour + gmtshift && Hour() > endhour + gmtshift) || (Hour() == endhour +
      gmtshift && Minute() > endminute))) || (fridayfilter && DayOfWeek() == 5 && !(Hour() < fridayend + gmtshift)) || (tradesunday == FALSE && DayOfWeek() == 0)) return (0);
   if (Ask - Bid > maxspread * gd_512) return (0);
   int l_datetime_64 = 0;
   if (g_count_592 + g_count_596 < maxtrades) {
      if (li_56 && g_count_580 < tradesperbar && IsTradeAllowed()) {
         while (IsTradeContextBusy()) Sleep(3000);
         if (hidestop == FALSE && buystop > 0.0) g_price_496 = Ask - buystop * gd_512;
         else g_price_496 = 0;
         if (hidetarget == FALSE && buytarget > 0.0) g_price_504 = Ask + buytarget * gd_512;
         else g_price_504 = 0;
         if (martingale) g_lots_624 = NormalizeDouble(lots * martingalefactor(), 2);
         else g_lots_624 = lots;
         if (g_lots_624 < minlot) g_lots_624 = minlot;
         if (g_lots_624 > maxlot) g_lots_624 = maxlot;
         RefreshRates();
         g_ticket_588 = OrderSend(Symbol(), OP_BUY, g_lots_624, Ask, slippage * gd_520, g_price_496, g_price_504, comment + ". Magic: " + DoubleToStr(magicbuy, 0), magicbuy, l_datetime_64, Blue);
         if (g_ticket_588 <= 0) Print("Error Occured : " + errordescription(GetLastError()));
         else {
            g_count_580++;
            Print("Order opened : " + Symbol() + " Buy @ " + Ask + " SL @ " + g_price_496 + " TP @" + g_price_504 + " ticket =" + g_ticket_588);
         }
      }
      if (li_60 && g_count_576 < tradesperbar && IsTradeAllowed()) {
         while (IsTradeContextBusy()) Sleep(3000);
         if (hidestop == FALSE && sellstop > 0.0) g_price_496 = Bid + sellstop * gd_512;
         else g_price_496 = 0;
         if (hidetarget == FALSE && selltarget > 0.0) g_price_504 = Bid - selltarget * gd_512;
         else g_price_504 = 0;
         if (martingale) g_lots_624 = NormalizeDouble(lots * martingalefactor(), 2);
         else g_lots_624 = lots;
         if (g_lots_624 < minlot) g_lots_624 = minlot;
         if (g_lots_624 > maxlot) g_lots_624 = maxlot;
         RefreshRates();
         g_ticket_588 = OrderSend(Symbol(), OP_SELL, g_lots_624, Bid, slippage * gd_520, g_price_496, g_price_504, comment + ". Magic: " + DoubleToStr(magicsell, 0), magicsell, l_datetime_64, Red);
         if (g_ticket_588 <= 0) Print("Error Occured : " + errordescription(GetLastError()));
         else {
            g_count_576++;
            Print("Order opened : " + Symbol() + " Sell @ " + Bid + " SL @ " + g_price_496 + " TP @" + g_price_504 + " ticket =" + g_ticket_588);
         }
      }
   }
   return (0);
}

int martingalefactor() {
   int l_hist_total_0 = OrdersHistoryTotal();
   if (l_hist_total_0 > 0) {
      for (int l_pos_4 = l_hist_total_0 - 1; l_pos_4 >= 0; l_pos_4--) {
         if (OrderSelect(l_pos_4, SELECT_BY_POS, MODE_HISTORY)) {
            if (OrderSymbol() == Symbol() && (OrderMagicNumber() == magicbuy || OrderMagicNumber() == magicsell)) {
               if (OrderProfit() < 0.0) {
                  gd_616 *= multiplier;
                  return (gd_616);
               }
               gd_616 = gd_632;
               if (gd_616 <= 0.0) gd_616 = 1;
               return (gd_616);
            }
         }
      }
   }
   return (gd_616);
}

string errordescription(int ai_0) {
   string ls_ret_4;
   switch (ai_0) {
   case 0:
   case 1:
      ls_ret_4 = "no error";
      break;
   case 2:
      ls_ret_4 = "common error";
      break;
   case 3:
      ls_ret_4 = "invalid trade parameters";
      break;
   case 4:
      ls_ret_4 = "trade server is busy";
      break;
   case 5:
      ls_ret_4 = "old version of the client terminal";
      break;
   case 6:
      ls_ret_4 = "no connection with trade server";
      break;
   case 7:
      ls_ret_4 = "not enough rights";
      break;
   case 8:
      ls_ret_4 = "too frequent requests";
      break;
   case 9:
      ls_ret_4 = "malfunctional trade operation";
      break;
   case 64:
      ls_ret_4 = "account disabled";
      break;
   case 65:
      ls_ret_4 = "invalid account";
      break;
   case 128:
      ls_ret_4 = "trade timeout";
      break;
   case 129:
      ls_ret_4 = "invalid price";
      break;
   case 130:
      ls_ret_4 = "invalid stops";
      break;
   case 131:
      ls_ret_4 = "invalid trade volume";
      break;
   case 132:
      ls_ret_4 = "market is closed";
      break;
   case 133:
      ls_ret_4 = "trade is disabled";
      break;
   case 134:
      ls_ret_4 = "not enough money";
      break;
   case 135:
      ls_ret_4 = "price changed";
      break;
   case 136:
      ls_ret_4 = "off quotes";
      break;
   case 137:
      ls_ret_4 = "broker is busy";
      break;
   case 138:
      ls_ret_4 = "requote";
      break;
   case 139:
      ls_ret_4 = "order is locked";
      break;
   case 140:
      ls_ret_4 = "long positions only allowed";
      break;
   case 141:
      ls_ret_4 = "too many requests";
      break;
   case 145:
      ls_ret_4 = "modification denied because order too close to market";
      break;
   case 146:
      ls_ret_4 = "trade context is busy";
      break;
   case 4000:
      ls_ret_4 = "no error";
      break;
   case 4001:
      ls_ret_4 = "wrong function pointer";
      break;
   case 4002:
      ls_ret_4 = "array index is out of range";
      break;
   case 4003:
      ls_ret_4 = "no memory for function call stack";
      break;
   case 4004:
      ls_ret_4 = "recursive stack overflow";
      break;
   case 4005:
      ls_ret_4 = "not enough stack for parameter";
      break;
   case 4006:
      ls_ret_4 = "no memory for parameter string";
      break;
   case 4007:
      ls_ret_4 = "no memory for temp string";
      break;
   case 4008:
      ls_ret_4 = "not initialized string";
      break;
   case 4009:
      ls_ret_4 = "not initialized string in array";
      break;
   case 4010:
      ls_ret_4 = "no memory for array\' string";
      break;
   case 4011:
      ls_ret_4 = "too long string";
      break;
   case 4012:
      ls_ret_4 = "remainder from zero divide";
      break;
   case 4013:
      ls_ret_4 = "zero divide";
      break;
   case 4014:
      ls_ret_4 = "unknown command";
      break;
   case 4015:
      ls_ret_4 = "wrong jump (never generated error)";
      break;
   case 4016:
      ls_ret_4 = "not initialized array";
      break;
   case 4017:
      ls_ret_4 = "dll calls are not allowed";
      break;
   case 4018:
      ls_ret_4 = "cannot load library";
      break;
   case 4019:
      ls_ret_4 = "cannot call function";
      break;
   case 4020:
      ls_ret_4 = "expert function calls are not allowed";
      break;
   case 4021:
      ls_ret_4 = "not enough memory for temp string returned from function";
      break;
   case 4022:
      ls_ret_4 = "system is busy (never generated error)";
      break;
   case 4050:
      ls_ret_4 = "invalid function parameters count";
      break;
   case 4051:
      ls_ret_4 = "invalid function parameter value";
      break;
   case 4052:
      ls_ret_4 = "string function internal error";
      break;
   case 4053:
      ls_ret_4 = "some array error";
      break;
   case 4054:
      ls_ret_4 = "incorrect series array using";
      break;
   case 4055:
      ls_ret_4 = "custom indicator error";
      break;
   case 4056:
      ls_ret_4 = "arrays are incompatible";
      break;
   case 4057:
      ls_ret_4 = "global variables processing error";
      break;
   case 4058:
      ls_ret_4 = "global variable not found";
      break;
   case 4059:
      ls_ret_4 = "function is not allowed in testing mode";
      break;
   case 4060:
      ls_ret_4 = "function is not confirmed";
      break;
   case 4061:
      ls_ret_4 = "send mail error";
      break;
   case 4062:
      ls_ret_4 = "string parameter expected";
      break;
   case 4063:
      ls_ret_4 = "integer parameter expected";
      break;
   case 4064:
      ls_ret_4 = "double parameter expected";
      break;
   case 4065:
      ls_ret_4 = "array as parameter expected";
      break;
   case 4066:
      ls_ret_4 = "requested history data in update state";
      break;
   case 4099:
      ls_ret_4 = "end of file";
      break;
   case 4100:
      ls_ret_4 = "some file error";
      break;
   case 4101:
      ls_ret_4 = "wrong file name";
      break;
   case 4102:
      ls_ret_4 = "too many opened files";
      break;
   case 4103:
      ls_ret_4 = "cannot open file";
      break;
   case 4104:
      ls_ret_4 = "incompatible access to a file";
      break;
   case 4105:
      ls_ret_4 = "no order selected";
      break;
   case 4106:
      ls_ret_4 = "unknown symbol";
      break;
   case 4107:
      ls_ret_4 = "invalid price parameter for trade function";
      break;
   case 4108:
      ls_ret_4 = "invalid ticket";
      break;
   case 4109:
      ls_ret_4 = "trade is not allowed";
      break;
   case 4110:
      ls_ret_4 = "longs are not allowed";
      break;
   case 4111:
      ls_ret_4 = "shorts are not allowed";
      break;
   case 4200:
      ls_ret_4 = "object is already exist";
      break;
   case 4201:
      ls_ret_4 = "unknown object property";
      break;
   case 4202:
      ls_ret_4 = "object is not exist";
      break;
   case 4203:
      ls_ret_4 = "unknown object type";
      break;
   case 4204:
      ls_ret_4 = "no object name";
      break;
   case 4205:
      ls_ret_4 = "object coordinates error";
      break;
   case 4206:
      ls_ret_4 = "no specified subwindow";
      break;
   default:
      ls_ret_4 = "unknown error";
   }
   return (ls_ret_4);
}

 

如您喜欢此文章请点下面分享按钮↴峰汇在线 » 欧元英镑5分钟剥头皮EA EURGBP_M5
上一篇:
下一篇:
分享到:更多 ()