Download MetaTrader 5

how to solve invalid request?

To add comments, please log in or register
LEE Chun Wing
831
LEE Chun Wing  

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  

but now eurusd is down you cant wait or stop it

Simon Gniadkowski
Moderator
18025
Simon Gniadkowski  
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
33334
Alain Verleyen  
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  
Simon Gniadkowski
Moderator
18025
Simon Gniadkowski  
RaptorUK:
Are you checking the  mqltrderesult and reporting the error and any associated relevant variables ?
Are you ?
LEE Chun Wing
831
LEE Chun Wing  

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