Discussion of article "MetaTrader 5 and Python integration: receiving and sending data" - page 2
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
MT5 finally interfaces with python!
It's not that MT5 supports Python natively.
My understanding is to use these two languages to develop server and client separately, and then communicate based on network protocols.
In that case, Python is fine, C/C++/C#/Java or whatever, it makes no difference.
when i trying to run the example of socketclientEA.mq5.The MT5 terminal come out with 'Connection localhost:9090 error 4014' ,
official statement document said that:
'The function can be called only from Expert Advisors and scripts, as they run in their own execution threads. If calling from an indicator, GetLastError() returns the error 4014 – "Function is not allowed for call".'
I do calling the example as a Expert Advisors,but it just come out with the same error 4014 as i mentioned above.
My terminal version is 5.00 build 2009 15 Mar 2019.
Plz help.
when i trying to run the example of socketclientEA.mq5.The MT5 terminal come out with 'Connection localhost:9090 error 4014' ,
official statement document said that:
'The function can be called only from Expert Advisors and scripts, as they run in their own execution threads. If calling from an indicator, GetLastError() returns the error 4014 – "Function is not allowed for call".'
I do calling the example as a Expert Advisors,but it just come out with the same error 4014 as i mentioned above.
My terminal version is 5.00 build 2009 15 Mar 2019.
Plz help.
Hi, pls add and allow 'localhost' in tools->options->EA's
New article MetaTrader 5 and Python integration: receiving and sending data has been published:
Author: Maxim Dmitrievsky
Hello, please help, how do I stream live bar data into a Pandas data frame. I'd like to use this for machine learning to predict binary options.
Its is very clear how to get historical data the integration part of documentation. what about live streaming the data?
Its is very clear how to get historical data the integration part of documentation. what about live streaming the data?
Hi, yo can do this same way. Just don't call shutdown() func and then receive data every new bar or tick, by timer etc.
Hi, yo can do this same way. Just don't call shutdown() func and then receive data every new bar or tick, by timer etc.
True, but then i have to rerun the script. Isn't the a shortcut of adding new data to an existing dataframe and labelling green candles 1 and red candles 0 in a newly added label column for this existing dataframe
Hi, pls add and allow 'localhost' in tools->options->EA's
Hi Maxim,
I'm getting error 4014 already in SocketCreate phase. What can be wrong?
Hi Maxim,
I'm getting error 4014 already in SocketCreate phase. What can be wrong?
Hi, try this https://www.mql5.com/en/forum/308679#comment_11299587
Hi, try this https://www.mql5.com/en/forum/308679#comment_11299587
I'm running EA, localhost is enabled.