Can not open trade from python at metatrader5. - page 5

 
GHH_tug77 :
you said that it works at Jupyter notebook so it must be work at Spyder.

For the third time (and last), install pure Python ( ).

Can not open trade from python at metatrader5.
Can not open trade from python at metatrader5.
  • 2021.08.24
  • www.mql5.com
Hello, first of all thank for helping my issue. I can not open trade from python at metatrader5. I used mt5...
 
Vladimir Karputov:

For the third time (and last), install pure Python ( ).

could you try run at Spyder yourself at your computer?
 
Vladimir Karputov:

For the third time (and last), install pure Python ( ).

If i use Visual studio IDE. What is metaeditor's compile path?
 
Vladimir Karputov:

For the third time (and last), install pure Python ( ).

When python script attach to chart at metatrader5 it works successful but it can not open and close trade. Error is below. How to solve it. I realized this error this morning.


2021.08.25 09:53:50.196 python_1 (USDJPY,H1) MetaTrader5 package author:  MetaQuotes Software Corp.

2021.08.25 09:53:50.199 python_1 (USDJPY,H1) MetaTrader5 package version:  5.0.35

2021.08.25 09:53:50.211 python_1 (USDJPY,H1) 1. order_send(): by USDJPY 0.1 lots at 109.848 with deviation=20 points

2021.08.25 09:53:50.212 python_1 (USDJPY,H1) 2. order_send failed, retcode=10027

2021.08.25 09:53:50.212 python_1 (USDJPY,H1)    retcode=10027

2021.08.25 09:53:50.212 python_1 (USDJPY,H1)    deal=0

2021.08.25 09:53:50.212 python_1 (USDJPY,H1)    order=0

2021.08.25 09:53:50.212 python_1 (USDJPY,H1)    volume=0.0


 
Vladimir Karputov #:

I have a 4 year degree in computer science but integrating python and mt5 was quite the mountain climb. Your threads have helped me out a lot seeing other people have faced the problems I'm facing and you helped. Thanks.
 
Chessqn #:
Algo trading is enabled. At journal tab, this word has appeared ('python_1': python process thread create error [The system cannot find the file specified. (2)]). "python_1" is name of python script

Hi. Please check this: Fixing MT5 Python Wrong Version Issue. We hope it can help in solving the issue. Best
MQL5/Troubleshooting/Fixing_MT5_Python_Wrong_Version_Issue.md at main · barmenteros/MQL5
MQL5/Troubleshooting/Fixing_MT5_Python_Wrong_Version_Issue.md at main · barmenteros/MQL5
  • barmenteros
  • github.com
You're trying to use Python scripts in MetaTrader 5 (MT5), but you’re encountering issues where the wrong version of Python is being used (e.g., Python 3.12 instead of Python 3.9) or Python isn’t initializing correctly. You might see errors like "python process thread create error" or "ModuleNotFoundError" when running Python scripts in MT5...