MetaTrader Server Handling of Max Deviation

 

I have an EA that sent an order to the broker with a max deviation of 10 pips. I was requoted by the server at a price well within the max dev. This was an actual standard account trade. I had a demo do something worse, in my mind; it requoted at a BETTER price than requested and yet did not fill. I'm wondering exactly how the server end of MetaTrader handles these requests since I'm not getting the results I expect. These problems only seem to occur at news time trades. I do understand that requested prices are not necessarily available in fast moving markets but shouldn't a request be filled at a the best available price within the designated order parameters?

Are requotes generated automatically by MetaTrader Server or can the broker create them manaully?

Thanks for any insight here. I've attached a snippet example of the problem. Again, the max dev was set to easily include this requote

David M

Files:
example.txt  1 kb
 
On news your price can be so distant (example: more than 2 spread or too old prices) from the market that server gives the requote even though maximum deviation allows to make the deal.

02:30:46 '1454508': instant order buy 4.00 GBPUSD at 2.0525 sl: 0.0000 tp: 0.0000
02:30:58 '1454508': request was accepted by server
02:31:06 '1454508': requote 2.0514 / 2.0529 for open buy 4.00 GBPUSD at 2.0525 sl: 0.0000 tp: 0.0000
Your request was accepted by server after 8 seconds. What type of internet channel do you use? Dialup, GPRS, ADSL or .. ?
Your price was too old (you got requote after 20 seconds) on fast market (NFP?).
 
MetaQuotes:
On news your price can be so distant (example: more than 2 spread or too old prices) from the market that server gives the requote even though maximum deviation allows to make the deal.

02:30:46 '1454508': instant order buy 4.00 GBPUSD at 2.0525 sl: 0.0000 tp: 0.0000
02:30:58 '1454508': request was accepted by server
02:31:06 '1454508': requote 2.0514 / 2.0529 for open buy 4.00 GBPUSD at 2.0525 sl: 0.0000 tp: 0.0000
Your request was accepted by server after 8 seconds. What type of internet channel do you use? Dialup, GPRS, ADSL or .. ?
Your price was too old (you got requote after 20 seconds) on fast market (NFP?).
 

Yes, I see that now. I am using an 8Mb/s cable connection so I assume the broker created some sort of delay. Any way to speed things up on my end?

Also, I can't seem to get the messagebox() function to work on Windows Server 2003. MT4 Terminal just closes when the function is called. Any ideas?

Reason: