mahdi ghaffari: Hi, i'm new in mt5 algo trading and i want to learn python algo trading. but when i insert codes from 'integration -> metatrader for python -> order_send()' and inter the 'order_send()' command, i get this error: retcode: 10030 i repeat again that i didn't write the code and it's from the site. thank you for your help
You have to set the correct filling policy for the trade, depending on your broker's conditions, such as account type, symbol type and contract specifications.
Even if the source code is from the documentation example, you have to adjust it based on the conditions specific to your broker, account and symbol being traded.
Documentation on MQL5: Constants, Enumerations and Structures / Codes of Errors and Warnings / Trade Server Return Codes
10030
TRADE_RETCODE_INVALID_FILL
Invalid order filling type

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,
i'm new in mt5 algo trading and i want to learn python algo trading. but when i insert codes from 'integration -> metatrader for python -> order_send()' and inter the 'order_send()'
command, i get this error: retcode: 10030
i repeat again that i didn't write the code and it's from the site. thank you for your help