Is it possible to receive event callbacks from Python integration?
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.
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 :)