Error 130 order modify error

 

Hello,

Im new in mq4 languages..Can someone help me to remove this error from my EA?

2012.07.25 09:30:41 2011.09.12 00:36 EA Kapan Menunggu EURUSD,M1: OrderModify error 130

This is the line for modifiy order

if (gi_356) {
      if (gi_292 == TRUE) {
         for (g_pos_324 = OrdersTotal() - 1; g_pos_324 >= 0; g_pos_324--) {
            OrderSelect(g_pos_324, SELECT_BY_POS, MODE_TRADES);
            if (OrderSymbol() != Symbol() || OrderMagicNumber() != Magic) continue;
            if (OrderSymbol() == Symbol() && OrderMagicNumber() == Magic) OrderModify(OrderTicket(), g_price_244, OrderStopLoss(), g_price_212, 0, Yellow);
            gi_356 = FALSE;

Thanks


 
ihsanxx:

Hello,

Im new in mq4 languages..Can someone help me to remove this error from my EA?

2012.07.25 09:30:41 2011.09.12 00:36 EA Kapan Menunggu EURUSD,M1: OrderModify error 130

This is the line for modifiy order

Thanks



This is the another line for modify order

void TrailingAlls(int ai_0, int ai_4, double a_price_8) {
   int li_16;
   double l_ord_stoploss_20;
   double l_price_28;
   if (ai_4 != 0) {
      for (int l_pos_36 = OrdersTotal() - 1; l_pos_36 >= 0; l_pos_36--) {
         if (OrderSelect(l_pos_36, SELECT_BY_POS, MODE_TRADES)) {
            if (OrderSymbol() != Symbol() || OrderMagicNumber() != Magic) continue;
            if (OrderSymbol() == Symbol() || OrderMagicNumber() == Magic) {
               if (OrderType() == OP_BUY) {
                  li_16 = NormalizeDouble((Bid - a_price_8) / Point, 0);
                  if (li_16 < ai_0) continue;
                  l_ord_stoploss_20 = OrderStopLoss();
                  l_price_28 = Bid - ai_4 * Point;
                  if (l_ord_stoploss_20 == 0.0 || (l_ord_stoploss_20 != 0.0 && l_price_28 > l_ord_stoploss_20)) OrderModify(OrderTicket(), a_price_8, l_price_28, OrderTakeProfit(), 0, Aqua);
               }
               if (OrderType() == OP_SELL) {
                  li_16 = NormalizeDouble((a_price_8 - Ask) / Point, 0);
                  if (li_16 < ai_0) continue;
                  l_ord_stoploss_20 = OrderStopLoss();
                  l_price_28 = Ask + ai_4 * Point;
                  if (l_ord_stoploss_20 == 0.0 || (l_ord_stoploss_20 != 0.0 && l_price_28 < l_ord_stoploss_20)) OrderModify(OrderTicket(), a_price_8, l_price_28, OrderTakeProfit(), 0, Red);
               }

thanks in advance !

 

We don't help with De-Compiled Code.

 
ubzen:

We don't help with De-Compiled Code.


is it have to be decompile ? sorry i just want to remove error only
 
ihsanxx:

This is the original code..

thanks !

Its still the decompiled version. I suggest you remove it before allot of people gets mad at you.
 
ihsanxx:

Hello,

Im new in mq4 languages..Can someone help me to remove this error from my EA?

Your EA ? did you write it ? did you buy it ? was it given to you ? no ! you stole it or you downloaded it from someone that stole it . . .