Hello,
I have been struggling for some time now with this problem. It happens randomly and I tried almost everything I know to get through it.
basically, my script predicts a certain direction (with python) and then trigger (Buy or Sell). However, I keep getting randomly "Requote" error!
I increased the Slippage to 60 and the problem still exists:
and I get this in terminal:
and I get this in my Python module:
Any Idea how to solve this ?
Thanks,
The "Requote" error (retcode=10004) happens when the requested price is no longer available, meaning the market moved before your order was processed. Here’s how your friend can fix it:
Use Market Execution Instead of Instant Execution
-
In instant execution, the order is only executed at the requested price, causing requotes if the price changes.
-
Market execution will fill at the best available price.
Solution:
-
Check mt5.symbol_info(Symbol).filling_mode to see if market execution is supported.
-
Change type_filling from mt5.ORDER_FILLING_RETURN to mt5.ORDER_FILLING_IOC or mt5.ORDER_FILLING_FOK (depending on the broker).
request["type_filling"] = mt5.ORDER_FILLING_IOC # Immediate or Cancel
Hope it solves your problem.

- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Hello,
I have been struggling for some time now with this problem. It happens randomly and I tried almost everything I know to get through it.
basically, my script predicts a certain direction (with python) and then trigger (Buy or Sell). However, I keep getting randomly "Requote" error!
I increased the Slippage to 60 and the problem still exists:
and I get this in terminal:
and I get this in my Python module:
Any Idea how to solve this ?
Thanks,