Hello,
Are you sure your broker would support that particular method? Been having same challenge but for volume filling policy
ENUM_ORDER_TYPE_FILLING
Hi,
I am using " ORDER_FILLING_IOC".. Thats working fine.
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Hi Guys,
First post here! I am writing an EA using the MT5 Python library. I am writing it directly in my python editor (PyCharm).
https://www.mql5.com/en/docs/integration/python_metatrader5
So far, I was able to connect to MT5 and able to send orders as long as they are "ORDER_TIME_GTC". However I wanted to try out "ORDER_TIME_SPECIFIED", and I tried to supply the expiry date/time in various formats and I keep getting an error saying "Invalid expiration".
What's the correct expiration datetime format that I need in Python so that MT5 can accept the order?
Thanks in advance!