Stefano Cerbioni:
Hello, I have a problem with this library, socket-library-mt4-mt5.mqh. Basically, I built an EA that is supposed to send me the open and closed trades in real-time. Not wanting to rely on OnTick or OnTimer for performance reasons, I chose to use this library, socket-library-mt4-mt5.mqh, (https://www.mql5.com/en/blogs/post/706665) which should, let's say, bypass the limitations of OnTick and OnTimer.
If I open a server with Netcat and run my EA, I can see the 3 trades I already have open, but if I open additional trades afterward, it doesn’t send anything.
If anyone has experience with this library and could help me, I would be infinitely grateful.
Hello, I have a problem with this library, socket-library-mt4-mt5.mqh. Basically, I built an EA that is supposed to send me the open and closed trades in real-time. Not wanting to rely on OnTick or OnTimer for performance reasons, I chose to use this library, socket-library-mt4-mt5.mqh, (https://www.mql5.com/en/blogs/post/706665) which should, let's say, bypass the limitations of OnTick and OnTimer.
If I open a server with Netcat and run my EA, I can see the 3 trades I already have open, but if I open additional trades afterward, it doesn’t send anything.
If anyone has experience with this library and could help me, I would be infinitely grateful.
The code you posted sends the positions on demand. When the server sends a message the EA replies with the open positions.
You would need to put the sending code into OnTrade or OnTradeTransaction.
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
If I open a server with Netcat and run my EA, I can see the 3 trades I already have open, but if I open additional trades afterward, it doesn’t send anything.
If anyone has experience with this library and could help me, I would be infinitely grateful.