Yes. You can create a generator to poll the server or you can use sockets to send messages from the EA event handlers to a python asyncio server. The later will have less CPU overhead since it will sit idle until it receives a message.
nicholish en:
Yes. You can create a generator to poll the server or you can use sockets to send messages from the EA event handlers to a python asyncio server. The later will have less CPU overhead since it will sit idle until it receives a message.
Thanks, I will try with the second approach :)
Yes. You can create a generator to poll the server or you can use sockets to send messages from the EA event handlers to a python asyncio server. The later will have less CPU overhead since it will sit idle until it receives a message.

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 everyone,
I was wondering if its possible to receive some of this events from Python code using the Python Integration. I've searched in the docs but found no clue of how to do it...
In the case of not being possible, is there any way to redirect MQL5 events to trigger Python code? If so, how?
Or maybe there is a pip library that I can install that does just that...
I'm pretty new to this platform and still have a lot to learn!
I apreciate a lot your help :)