Expert/Script requires an open chart. The number of graphs, is limited by the terminal. Each rendering/updating of the graph, is a system message queue and an unnecessary resource load.
2. Heavy calculations in multiple threads(running copies of the service) so that they do not affect the trade.
3. Expert Advisor collects information from the cup, and the service periodically packs it into a zip archive.
4. Collection of all trading information when multiple Expert Advisors work, processing and saving it in the database or sending.
5. ...
What are your options?
For all of these tasks we will need to solve the problem of data exchange between a group of Expert Advisors and the service
the maximum I can suggest for the service is to listen to the socket on which the prices from another broker will go and forward it to the custom tick chart in order to arbitrage, and on the custom chart an Expert Advisor working by TS
for all of the above tasks, the task of exchanging data between the advisory group and the service will have to be solved
Perhaps the shared memory for data exchange between programmes will now be provided by DBs rather than resources, which will greatly simplify implementation and interaction.
Hi. I wanted to use a service to create a universal message sender (mail, telegram with screenshots) from all EAs from all charts. The idea was that EAs would send custom events with chart, message text and other parameters and the service would listen to the events, take screenshots of the specified charts and send the required messages. However, I've read that services can't accept events from charts. So, the solution is to use global variables of the terminal? Suppose a global array of structures, in which graphs will add elements, and the service, as processing (sending messages), remove them. What do you think of such an idea? Perhaps there are other ideas? I'm new to MQL, I'm reading more than writing. This idea appeared in order to release the Expert Advisor thread from the message sending operation. Also, it could be applied to sending messages by indicators.
1. Background loading of news
Expert/Script requires an open chart.
The number of graphs, is limited by the terminal.
Each rendering/updating of the graph, is a system message queue and an unnecessary resource load.
2-3 can be implemented via a script on OBJ_CHART.
The service starts when the terminal starts, the script can't do that.
This is not required in these two tasks.
1. Background news loading
For all of these tasks we will need to solve the problem of data exchange between a group of Expert Advisors and the service
the maximum I can suggest for the service is to listen to the socket on which the prices from another broker will go and forward it to the custom tick chart in order to arbitrage, and on the custom chart an Expert Advisor working by TS
for all of the above tasks, the task of exchanging data between the advisory group and the service will have to be solved
The main problem of Services is not the Terminal Handle - it's all margin cases.
An automatic reconnector cannot be realised without a Handle. And it's a very necessary thing for real trading.
Result.
you can send all events to the service from the EA via resources. And now, also through the database.