OrderSend error 4756 retcode=10030 deal=0 order=0 New comment Basel_Salama 2024.03.08 21:42 Getting this error guys!!! "OrderSend error 4756 retcode=10030 deal=0 order=0 " what could possibly be wroing with this code: // OnInit function on start of the program int OnInit() { Print("Expert advisor is being tested - OnInit"); double R2R =2; double askPrice = SymbolInfoDouble(_Symbol, SYMBOL_ASK); double bidPrice = SymbolInfoDouble(_Symbol, SYMBOL_BID); MqlTradeRequest request={}; MqlTradeResult result={}; //--- parameters of request request.action = TRADE_ACTION_DEAL; request.symbol = Symbol(); request.volume = 1; request.sl = askPrice - 100*Point(); request.tp = askPrice - R2R*100*Point(); request.type = ORDER_TYPE_BUY; request.price = askPrice; if(OrderSend(request,result)){ Print("Order is executed "); } else { PrintFormat("OrderSend error %d ",GetLastError()); // if unable to send the request, output the error code //--- information about the operation PrintFormat("retcode=%u deal=%I64u order=%I64u ", result.retcode, result.deal, result.order); } return(INIT_SUCCEEDED); } Object Oriented Approach to MQL Questions from Beginners MQL5 MT5 MetaTrader 5 Automated trading problem dandybandy 2024.03.09 01:50 #1 retcode: 10030 10030 TRADE_RETCODE_INVALID_FILL Invalid order filling type New comment
Getting this error guys!!! "OrderSend error 4756 retcode=10030 deal=0 order=0 "
what could possibly be wroing with this code: