como soluciono esto

 

como puedo solucionar esto? lo que pasa esque al momento de colocar el bot en el metatrader 4 no abre nada ni parametros ni nada.

98        for(cnt=OrdersTotal()-1;cnt>=0;cnt--){                                                
99 "error"      OrderSelect(cnt,SELECT_BY_POS,MODE_TRADES);
100           if(OrderSymbol()!=Symbol()||OrderMagicNumber()!=MagicNumber)continue;
101           if(OrderSymbol()==Symbol()&&OrderMagicNumber()==MagicNumber)
102                if(OrderType()==OP_BUY)
103              {
104               LongTrade=true;
105               ShortTrade=false;
106               LastBuyLots=OrderLots();
107               break;
108              }
   total=CountTrades();
   AveragePrice=0;
   double Count=0;
   for(cnt=OrdersTotal()-1;cnt>=0;cnt--)
     {
240 "error"      OrderSelect(cnt, SELECT_BY_POS, MODE_TRADES);
      if(OrderSymbol()!=Symbol()||OrderMagicNumber()!=MagicNumber)
         continue;
      if(OrderSymbol()==Symbol()&&OrderMagicNumber()==MagicNumber)
         if(OrderType()==OP_BUY || OrderType()==OP_SELL)
           {
            AveragePrice=AveragePrice+OrderOpenPrice()*OrderLots();
            Count=Count + OrderLots();
           }
     }
   if(total > 0)
      AveragePrice=NormalizeDouble(AveragePrice/Count, Digits);
256 "error"         OrderSelect(cnt, SELECT_BY_POS, MODE_TRADES);
285 "error"            OrderSelect(cnt, SELECT_BY_POS, MODE_TRADES);
   if(NewOrdersPlaced)
      if(flag==1)// check if average has really changed
        {
         for(cnt=OrdersTotal()-1;cnt>=0;cnt--)
           {
            //     PriceTarget=total;
            OrderSelect(cnt, SELECT_BY_POS, MODE_TRADES);
            if(OrderSymbol()!=Symbol()||OrderMagicNumber()!=MagicNumber)
               continue;
            if(OrderSymbol()==Symbol()&&OrderMagicNumber()==MagicNumber)
               //      OrderModify(OrderTicket(),0,Stopper,PriceTarget,0,Yellow);// set all positions to averaged levels
290 "error"               OrderModify(OrderTicket(),AveragePrice,OrderStopLoss(),PriceTarget,0,Yellow);// set all positions to averaged levels
            NewOrdersPlaced=false;
           }
        }
  }
   if(NewOrdersPlaced)
      if(flag==1)// check if average has really changed
        {
         for(cnt=OrdersTotal()-1;cnt>=0;cnt--)
           {
            //     PriceTarget=total;
            OrderSelect(cnt, SELECT_BY_POS, MODE_TRADES);
            if(OrderSymbol()!=Symbol()||OrderMagicNumber()!=MagicNumber)
               continue;
            if(OrderSymbol()==Symbol()&&OrderMagicNumber()==MagicNumber)
               //      OrderModify(OrderTicket(),0,Stopper,PriceTarget,0,Yellow);// set all positions to averaged levels
               OrderModify(OrderTicket(),AveragePrice,OrderStopLoss(),PriceTarget,0,Yellow);// set all positions to averaged levels
            NewOrdersPlaced=false;
           }
        }
294 "error"  }

423 "error"               OrderSelect(trade,SELECT_BY_POS,MODE_TRADES);
440 "error"               OrderSelect(trade,SELECT_BY_POS,MODE_TRADES);
446 "error"                     OrderClose(OrderTicket(),OrderLots(),Bid,slip,Blue);
448 "error"                     OrderClose(OrderTicket(),OrderLots(),Ask,slip,Red);
458 "error"            int ticket=0;
655 "error"               OrderSelect(cnt, SELECT_BY_POS, MODE_TRADES);
694 "error"                        OrderModify(OrderTicket(),AvgPrice,stopcal,OrderTakeProfit(),0,Aqua);
705 "error"                        OrderModify(OrderTicket(),AvgPrice,stopcal,OrderTakeProfit(),0,Red);
729 "error"            int cnt, oldticketnumber=0, ticketnumber;
732 "error"               OrderSelect(cnt, SELECT_BY_POS, MODE_TRADES);
754 "error"            int cnt, oldticketnumber=0, ticketnumber;
757 "error"               OrderSelect(cnt, SELECT_BY_POS, MODE_TRADES);
Archivos adjuntos:
boterrores.jpg  190 kb
 
javiervillagran96:

como puedo solucionar esto? lo que pasa esque al momento de colocar el bot en el metatrader 4 no abre nada ni parametros ni nada.

https://www.mql5.com/es/job

Aplicaciones comerciales para MetaTrader 5 por encargo
Aplicaciones comerciales para MetaTrader 5 por encargo
  • www.mql5.com
Buenas Como te comenté, la tarea en realidad son varias modificaciones del trabajo que realizaste, la primera vez. En total son 6 tareas, por las que estoy dipuesto a pagar independientemente, aunque como verás algunas modificación son simplezas, pero valoro muy el trabajo bien echo. Si llegamos a un acuerdo, podemos empezar en cuanto sea...