Download MetaTrader 5
To add comments, please log in or register
Do you want to deposit to your account? Do this in any convenient way!
FXTrader_X
84
FXTrader_X 2011.09.02 23:41 

Hi,

the error messages below were generated in the journal while an EA was trying to place pending orders. Error 136 (off quotes) is captured by waiting for the refreshrates() in a loop and immediately sending the order again with the new prices; However, the process below keeps repeating itself. The EA works fine on other platforms; The message below was generated in a new dusascopy ecn demo account. Is there something wrong with the demo account or do I need to handle the error differently?

Thanks!

2011.09.02 21:05:01 '21453': order buy limit 0.01 EURUSD opening at 1.41773 sl: 0.00000 tp: 0.00000 failed [Off quotes]
2011.09.02 21:05:01 '21453': request in process
2011.09.02 21:05:01 '21453': request was accepted by server
2011.09.02 21:05:00 '21453': pending order buy limit 0.01 EURUSD at 1.41773 sl: 0.00000 tp: 0.00000
2011.09.02 21:05:00 '21453': order buy limit 0.01 EURUSD opening at 1.41773 sl: 0.00000 tp: 0.00000 failed [Off quotes]
2011.09.02 21:05:00 '21453': request in process
2011.09.02 21:04:59 '21453': request was accepted by server
2011.09.02 21:04:59 '21453': pending order buy limit 0.01 EURUSD at 1.41773 sl: 0.00000 tp: 0.00000
FXTrader_X
84
FXTrader_X 2011.09.03 00:14  

And another question: how is it possible to get off quote errors for pending orders?

Thanks.

Simon Gniadkowski
Moderator
17975
Simon Gniadkowski 2011.09.03 00:18  
Was the market open ?
FXTrader_X
84
FXTrader_X 2011.09.03 00:28  

Yes, the market was open (the time was gmt+2). Is it possible that there is something wrong with the demo account?

Thanks.

Simon Gniadkowski
Moderator
17975
Simon Gniadkowski 2011.09.03 00:32  
FXTrader_X:

Yes, the market was open (the time was gmt+2). Is it possible that there is something wrong with the demo account?

Thanks.

Could be . . . I've not seen that error before, could the account have expired ? is it getting new data, check a chart to see if it is up to date.
FXTrader_X
84
FXTrader_X 2011.09.03 00:40  

It's actually a new demo account (ducascopy, fair trading technologies). I developed the EA for a client and he's trying the functionality on a number of different demo-accounts. I think only the ducascopy demo-account has this problem.

Thanks!

whroeder1
13947
whroeder1 2011.09.03 01:04  
Are you sure the price is farther than Ask (buy)/Bid (sell) than MarketInfo(Symbol(), MODE_STOPLEVEL)*Point
FXTrader_X
84
FXTrader_X 2011.09.03 11:05  

The pending order gets placed at the start of a new bar at a specified number of pips lower/higher than the low/high of the previous bar. I assumed that the client would use a number of pips greater than the minimum distance for this value, the check is not explicitly made. I now perform the check in my last version.

However, if this was the problem then there would be an error 130 or maybe an error 3 but not the off quotes error. I am backtesting the (previous: no distance check) EA for the broker were the problem occured, but the strategytester does not show any errors.

Thanks!

Simon Gniadkowski
Moderator
17975
Simon Gniadkowski 2011.09.03 11:11  
I'm pretty sure the ST will never give you this kind of error . . . why would it ?
FXTrader_X
84
FXTrader_X 2011.09.03 11:19  

Sorry, what do you mean exactly? I don't know what "the ST" is?

thanks

FXTrader_X
84
FXTrader_X 2011.09.03 11:20  

Oh right.. strategytester; my bad :) it can give the 130 and 3 errors but not the off quotes indeed.

Still.. what to do about the off quotes? How is it possible that this error occurs for pending orders?

Thanks!

/ /12
To add comments, please log in or register