Discussion of article "MetaTrader 5 and Python integration: receiving and sending data" - page 4
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
I am trying to use this for MT4 and it says "SocketClose function not defined" ... do MQL5 functions also work for MQL4 ? I don't see anything on the documentation itself. is this supposed to run in MQL4? can you help me figure it out please?
hi i think socket functions don't work in metatrader4
you can use it in mt5, also you can use new MetaTrader5 package (see documentation)
for mt4 you can try zeromq
Hi, interesting article. Thanks for that.
Was wondering. Why did you decide to implement the server in Python and the EA as the client in MT5?
Wouldnt it be more natural to have the server as an EA in MT5 providing data and executing traders and the client(s) in python, processing the data and making the trade decisions that are sent to the server?
Is there some obvious advantage to using the client as an EA and the server in python, that I am missing?
If i remember correctly, from past experience with ZeroMQ the server was as an EA in MT5 and the client in python.
@Maxim Dmitrievsky
I just wanted to say thank you for making this available. I always wanted to be able to code my indicators in Python and since you began this thread I've been able to access realtime futures data and use it to develop and run my indicators. I use my Python to plot and analyze the live feed and I place trades through the MT5 platform - it works great. Please keep up the good work and I truly hope Python will be full embraced my the MT community.
Thank you and best regards!
Thank you for complete description.
i have a question:
is it possible for us to run a script of .ex5 type by a command in python environment?
i wanna run it through python, and the script save the results in an excel file, so can i use the excel data again in my website or android program.
Thanks a lot.
Hello - Can someone please help me!!!
I'm trying to execute this code in Python and keep getting an error:
Below is my code and it results in the error: