As for using the MT4 gateway and handling requote issues, the manual suggests to adjust the slippage.

I did this by allowing a large slippage:

Code
brokerCommand(SET_SLIPPAGE, 1000);


I try to control the execution prices by sending limit orders, like '- priceClose()' for the 'enterLong()', where 'EntryTime = 60'.

However, every now and then I still receive requotes with this royal slippage setting.

From the Zorro log:
Quote
[Wed 22-05-11 10:59] 10304 -29.96 14/15 (1.05499)
(AUD/USD::L) Long 17@0.700640 Entry limit
(AUD/USD::L) Entry limit 0.700640 hit by 0.700640 at 10:59:00
Warning 075 (AUD/USD::L) - can't open 17@0.70064 at 10:59:00


and from the MT4 log:
Quote
0 12:59:01.024 '587488': instant order buy 0.17 AUDUSD at 0.70064 sl: 0.00000 tp: 0.00000
0 12:59:01.232 '587488': requote 0.70056 / 0.70065 for open buy 0.17 AUDUSD at 0.70064 sl: 0.00000 tp: 0.00000


Are there any other things I can do to prevent requote issues with MT4? Is sending market orders the only final solution for this?

Last edited by Grant; 05/11/22 15:32.