Download MetaTrader 5

how to solve invalid request?

To add comments, please log in or register
LEE Chun Wing
831
LEE Chun Wing 2013.08.13 18:27 

when backtesting 

2013.08.14 00:19:46 Core 1 2013.08.02 17:01:17   failed exchange sell 0.10 EURUSD at 1.32667 sl: 1.32780 tp: 1.32467 [Invalid request]

how to solve this? 

THANKS
zek8217
3
zek8217 2013.08.13 18:58  

but now eurusd is down you cant wait or stop it

Simon Gniadkowski
Moderator
18002
Simon Gniadkowski 2013.08.14 00:43  
kelly:

when backtesting 

2013.08.14 00:19:46 Core 1 2013.08.02 17:01:17   failed exchange sell 0.10 EURUSD at 1.32667 sl: 1.32780 tp: 1.32467 [Invalid request]

how to solve this? 

THANKS
Are you checking the  mqltrderesult and reporting the error and any associated relevant variables ?
Alain Verleyen
Moderator
31134
Alain Verleyen 2013.08.14 11:06  
kelly:

when backtesting 

2013.08.14 00:19:46 Core 1 2013.08.02 17:01:17   failed exchange sell 0.10 EURUSD at 1.32667 sl: 1.32780 tp: 1.32467 [Invalid request]

how to solve this? 

THANKS
Show the code of your request if you need help.
LEE Chun Wing
831
LEE Chun Wing 2013.08.17 16:39  
Simon Gniadkowski
Moderator
18002
Simon Gniadkowski 2013.08.17 19:09  
RaptorUK:
Are you checking the  mqltrderesult and reporting the error and any associated relevant variables ?
Are you ?
LEE Chun Wing
831
LEE Chun Wing 2013.09.14 00:25  

one of the solution is

MqlTradeRequest mrequest = {0};  

 when get a trade return code 10015, Invalid price in the request.

Documentation on MQL5: Standard Constants, Enumerations and Structures / Data Structures / Trade Request Structure
Documentation on MQL5: Standard Constants, Enumerations and Structures / Data Structures / Trade Request Structure
  • www.mql5.com
Standard Constants, Enumerations and Structures / Data Structures / Trade Request Structure - Documentation on MQL5
To add comments, please log in or register