unable to create a limit buy stop order, I just get error 4756 any help

 
  
               MqlTradeRequest trequest;
               MqlTradeResult tresult;
               trequest.action=TRADE_ACTION_PENDING;
               trequest.type=ORDER_TYPE_BUY_STOP_LIMIT;
               trequest.volume=0.2;
               trequest.price=Ask+(10);
               trequest.sl=0;//
               trequest.tp=0;//
               trequest.deviation=30;
               trequest.stoplimit = Ask+(5);
               //trequest.magic=magicNo;
               //trequest.symbol=symbol;
               //trequest.type_filling=ORDER_FILLING_FOK;
               //trequest.comment = comment;
               //--- send
               OrderSend(trequest,tresult);
               
               if(tresult.retcode==10009 || tresult.retcode==10008) //Request successfully completed 
                 {
                  Alert("A Sell stop limit order has been successfully placed with Ticket#:",tresult.order,"!!");
                 }
               else
                 {
                  string errorMsg= "The Sell stop limit order request could not be completed";
                  int errorCode =GetLastError();
                  Print(errorMsg," ",errorCode);
                 }
 

Error 4756: Documentation on MQL5: Constants, Enumerations and Structures / Codes of Errors and Warnings / Runtime Errors

ERR_TRADE_SEND_FAILED

4756

Trade request sending failed

However you are not reporting the actual trade error "tresult.retcode", but I can see the following problems already ...

Let's say you are using EURUSD and current ask price is approximately 1.05315. Now lets consider 2 lines of your code:

trequest.price     = Ask + (10);   // This will give a open price of 1.05315 + 10 = 11.05315
trequest.stoplimit = Ask + (5);    // This will give a open price of 1.05315 +  5 =  6.05315

Do you see the problem?

Reason: