Download MetaTrader 5

return code of the server 3396333104

To add comments, please log in or register
el3reef
208
el3reef  

Hello,

 i face this error and i can't find the solution

 return code of the server 3396333104

 i'm using this function 

 

uint SendRandomPendingOrder(long const magic_number,string Symbol_name,double open_price,string order_type,double lot,double Stop_Loss,double Take_Profit) 
  { 
//--- prepare a request 
   MqlTradeRequest request={0}; 
   request.action=TRADE_ACTION_PENDING;         // setting a pending order 
   request.magic=magic_number;                  // ORDER_MAGIC 
   request.symbol= Symbol_name;                      // symbol 
   request.volume=lot;                          // volume in 0.1 lots 
   request.sl= Stop_Loss;                                // Stop Loss is not specified 
   request.tp= Take_Profit;                                // Take Profit is not specified      
//--- form the order type 
   request.type=order_type;                // order type 
//--- form the price for the pending order 
   request.price=open_price;  // open price 
//--- send a trade request 
   MqlTradeResult result={0}; 
   OrderSend(request,result); 
//--- write the server reply to log   
   Print(__FUNCTION__,":",result.comment); 
   if(result.retcode==10016) Print(result.bid,result.ask,result.price); 
//--- return code of the trade server reply 
   return result.retcode; 
  }

thanks 

el3reef
208
el3reef  

now the above error disappeared and new error appeared ! 

return code of the server 32759
To add comments, please log in or register