Mateusz Konieczny:
Please insert the code correctly: when editing a message, press the button and paste your code into the pop-up window.
Vladimir Karputov:
Sure, sorry
Please insert the code correctly: when editing a message, press the button and paste your code into the pop-up window.
Hi the order gives back the following
order_send failed, retcode=10016
retcode=10016
Because of invalid stops, check your stoploss and take profit. It should work fine. Any further questions let me know
Regards
Suhail
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
Hello, I try to practice some Algotrading by using MetaTrader5 with Python.
Here's my situation.
I try to send (buy) order request but I get 10030 error. I managed to deal with it by changing ORDER_FILLING_RETURN to ORDER_FILLING_IOC.
After that another error appeard, its 10016 and I guess it is related with ORDER_FILLING_IOC, but getting to the point I copied whole code from the MetaTrader for Python and of course I've changed everything what is specified for particular user but the code stil doesnt work, so is it the problem with my broker or code itself?
Here is my code, I've suported myself with docs and examples of course:
-----------------------------------------------------------------------------------------------------------------------