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.
Reason: